|
@@ -1139,7 +1139,6 @@
|
|
TWR.RESULT_POUND_NO "resultPoundNo",
|
|
TWR.RESULT_POUND_NO "resultPoundNo",
|
|
RCON. CONSIGNEE_COMPANY_NAME "consigneeCompanyName",
|
|
RCON. CONSIGNEE_COMPANY_NAME "consigneeCompanyName",
|
|
RS.SHIPPER_NAME "shipperName"
|
|
RS.SHIPPER_NAME "shipperName"
|
|
-
|
|
|
|
from TMSTRUCK_WEIGHT_RESULT TWR
|
|
from TMSTRUCK_WEIGHT_RESULT TWR
|
|
left join TMSTRUCK_TOTAL_RESULT TTR
|
|
left join TMSTRUCK_TOTAL_RESULT TTR
|
|
on TWR.RESULT_TOTAL_ID = TTR.RESULT_TOTAL_ID
|
|
on TWR.RESULT_TOTAL_ID = TTR.RESULT_TOTAL_ID
|
|
@@ -1167,6 +1166,14 @@
|
|
where RESULT_TARE_WEIGHT_TIME is not null and OO.ORDER_TYPE in (1, 2)
|
|
where RESULT_TARE_WEIGHT_TIME is not null and OO.ORDER_TYPE in (1, 2)
|
|
)
|
|
)
|
|
<where>
|
|
<where>
|
|
|
|
+ <if test="startDate!=null">
|
|
|
|
+ to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <=
|
|
|
|
+ to_date(to_char("resultTareWeightTime",'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="endDate!=null">
|
|
|
|
+ and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >=
|
|
|
|
+ to_date(to_char("resultTareWeightTime",'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
|
|
|
|
+ </if>
|
|
<if test="purchaseOrderNo != null">
|
|
<if test="purchaseOrderNo != null">
|
|
<foreach collection="purchaseOrderNo" item="item" open="(" separator="or" close=")">
|
|
<foreach collection="purchaseOrderNo" item="item" open="(" separator="or" close=")">
|
|
"purchaseOrderNo" like '%${item}%'
|
|
"purchaseOrderNo" like '%${item}%'
|