|
@@ -17,6 +17,8 @@
|
|
|
RC.CAPACITY_NUMBER "capacityNumber",
|
|
|
TER.RESULT_ENTRY_GATE_TIME "resultEntryGateTime",
|
|
|
TWR.RESULT_NET_WEIGHT "resultNetWeight",
|
|
|
+ TWR.RESULT_GROSS_WEIGHT "resultGrossWeight",
|
|
|
+ TWR.RESULT_TARE_WEIGHT "resultTareWeight",
|
|
|
TQR.RESULT_DEDUCTION "resultDeduction",
|
|
|
TUR.RESULT_END_TIME "resultEndTime",
|
|
|
RW.WAREHOUSE_NAME "warehouseName",
|
|
@@ -74,66 +76,75 @@
|
|
|
|
|
|
where OO.ORDER_STATUS in (5, 8, 9, 1, 2)
|
|
|
and OO.ORDER_TYPE = #{orderTypee}
|
|
|
- <if test="oneDate != null">
|
|
|
- and to_char(TER.RESULT_ENTRY_GATE_TIME, 'YYYY-MM-DD') = #{oneDate}
|
|
|
- </if>
|
|
|
- <if test="startDate != null">
|
|
|
- and to_date(#{startDate}, 'yyyy-mm-dd') <= TER.RESULT_ENTRY_GATE_TIME
|
|
|
- and to_date(#{endDate}, 'yyyy-mm-dd') >= TER.RESULT_ENTRY_GATE_TIME
|
|
|
- </if>
|
|
|
+ <if test="oneDate != null">
|
|
|
+ and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= TWR.RESULT_TARE_WEIGHT_TIME
|
|
|
+ </if>
|
|
|
+ <if test="startDate != null">
|
|
|
+ and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= TWR.RESULT_TARE_WEIGHT_TIME
|
|
|
+ and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= TWR.RESULT_TARE_WEIGHT_TIME
|
|
|
+ </if>
|
|
|
)
|
|
|
<where>
|
|
|
- <if test="orderNumber != null">
|
|
|
- <foreach collection="orderNumber" item="item" open="(" separator="or" close=")">
|
|
|
- "orderNumber" like '%${item}%'
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
<if test="capacityNumber != null">
|
|
|
and
|
|
|
<foreach collection="capacityNumber" item="item" open="(" separator="or" close=")">
|
|
|
"capacityNumber" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="resultEntryGateTime != null">
|
|
|
+ <if test="warehouseName != null">
|
|
|
and
|
|
|
- <foreach collection="resultEntryGateTime" item="item" open="(" separator="or" close=")">
|
|
|
- "resultEntryGateTime" like '%${item}%'
|
|
|
+ <foreach collection="warehouseName" item="item" open="(" separator="or" close=")">
|
|
|
+ "warehouseName" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="resultNetWeight != null">
|
|
|
+
|
|
|
+ <if test="resultGrossWeight != null">
|
|
|
and
|
|
|
- <foreach collection="resultNetWeight" item="item" open="(" separator="or" close=")">
|
|
|
- "resultNetWeight" like '%${item}%'
|
|
|
+ <foreach collection="resultGrossWeight" item="item" open="(" separator="or" close=")">
|
|
|
+ "resultGrossWeight" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="resultDeduction != null">
|
|
|
+
|
|
|
+ <if test="resultTareWeight != null">
|
|
|
and
|
|
|
- <foreach collection="resultDeduction" item="item" open="(" separator="or" close=")">
|
|
|
- "resultDeduction" like '%${item}%'
|
|
|
+ <foreach collection="resultTareWeight" item="item" open="(" separator="or" close=")">
|
|
|
+ "resultTareWeight" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="resultEndTime != null">
|
|
|
+ <if test="enGatepostName != null">
|
|
|
and
|
|
|
- <foreach collection="resultEndTime" item="item" open="(" separator="or" close=")">
|
|
|
- "resultEndTime" like '%${item}%'
|
|
|
+ <foreach collection="enGatepostName" item="item" open="(" separator="or" close=")">
|
|
|
+ "enGatepostName" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="warehouseName != null">
|
|
|
+ <if test="outGatepostName != null">
|
|
|
and
|
|
|
- <foreach collection="warehouseName" item="item" open="(" separator="or" close=")">
|
|
|
- "warehouseName" like '%${item}%'
|
|
|
+ <foreach collection="outGatepostName" item="item" open="(" separator="or" close=")">
|
|
|
+ "outGatepostName" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="insertTime != null">
|
|
|
+ <if test="materialName != null">
|
|
|
and
|
|
|
- <foreach collection="insertTime" item="item" open="(" separator="or" close=")">
|
|
|
- "insertTime" like '%${item}%'
|
|
|
+ <foreach collection="materialName" item="item" open="(" separator="or" close=")">
|
|
|
+ "materialName" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="resultOutGateTime != null">
|
|
|
+ <if test="purchaseOrderNo != null">
|
|
|
and
|
|
|
- <foreach collection="resultOutGateTime" item="item" open="(" separator="or" close=")">
|
|
|
- "resultOutGateTime" like '%${item}%'
|
|
|
+ <foreach collection="purchaseOrderNo" item="item" open="(" separator="or" close=")">
|
|
|
+ "purchaseOrderNo" like '%${item}%'
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="supplierName != null">
|
|
|
+ and
|
|
|
+ <foreach collection="supplierName" item="item" open="(" separator="or" close=")">
|
|
|
+ "supplierName" like '%${item}%'
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="receiveName != null">
|
|
|
+ and
|
|
|
+ <foreach collection="receiveName" item="item" open="(" separator="or" close=")">
|
|
|
+ "receiveName" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
</where>
|
|
@@ -214,7 +225,7 @@
|
|
|
and RCA.CARRIER_SSO_ID = #{carrierSsoId}
|
|
|
</if>
|
|
|
<if test="oneDate != null">
|
|
|
- and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= TER.RESULT_ENTRY_GATE_TIME
|
|
|
+ and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= TWR.RESULT_GROSS_WEIGHT_TIME
|
|
|
</if>
|
|
|
<if test="startDate != null">
|
|
|
and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= TWR.RESULT_GROSS_WEIGHT_TIME
|
|
@@ -257,7 +268,7 @@
|
|
|
<if test="materialRemark != null">
|
|
|
and
|
|
|
<foreach collection="materialRemark" item="item" open="(" separator="or" close=")">
|
|
|
- "materialRemark" like '%${item}%'
|
|
|
+ "materialRemark" = #{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="sendName != null">
|