|
@@ -5098,6 +5098,8 @@
|
|
|
ORI.THEORY_WEIGHT "inventoryTheoryWeight",
|
|
|
ORI.SINGLE_WEIGHT "singleWeight",
|
|
|
ORI.METER "meter",
|
|
|
+ a_s_order.INSERT_USERNAME "insertUserName",
|
|
|
+ R_SALER.SALER_NAME "saler",
|
|
|
NVL(TT."unloadMaterialNumber",0) "unloadMaterialNumber"
|
|
|
FROM AMS_SALE_ORDER a_s_order
|
|
|
LEFT JOIN RMS_SHIPPER r_shipper
|
|
@@ -5143,18 +5145,20 @@
|
|
|
<if test="consigneeSsoId != null" >
|
|
|
and r_consignee.CONSIGNEE_SSO_ID = #{consigneeSsoId}
|
|
|
</if>
|
|
|
- <if test="saler != null " >
|
|
|
- and R_SALER.INSERT_UPDATE_REMARK like #{saler}
|
|
|
- </if>
|
|
|
<if test="consigneeName != null">
|
|
|
and r_consignee.CONSIGNEE_COMPANY_NAME = #{consigneeName}
|
|
|
</if>
|
|
|
+ <if test="saleAreaRemark != null">
|
|
|
+ and <foreach collection="saleAreaRemark" item="item" open="(" separator="or" close=")">
|
|
|
+ a_s_order.SALE_REMARK like '%${item}%'
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
<if test="oneDate != null">
|
|
|
- and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= a_s_order.UPDATE_TIME
|
|
|
+ and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= a_s_order.insert_time
|
|
|
</if>
|
|
|
<if test="startDate != null">
|
|
|
- and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= a_s_order.UPDATE_TIME
|
|
|
- and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= a_s_order.UPDATE_TIME
|
|
|
+ and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= a_s_order.insert_time
|
|
|
+ and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= a_s_order.insert_time
|
|
|
</if>
|
|
|
ORDER BY a_s_order.SALE_ORDER_ID DESC ,ASOM.SALE_ORDER_MATERIAL_TRUCK_NO asc
|
|
|
)
|