|
@@ -2089,7 +2089,7 @@
|
|
|
TWR.RESULT_NET_WEIGHT "resultNetWeight",
|
|
|
TWR.RESULT_POUND_NO "resultPoundNo",
|
|
|
TWR.INSERT_UPDATE_REMARK "insertUpdateRemark",
|
|
|
- RC.CAPACITY_NUMBER
|
|
|
+ RC.CAPACITY_NUMBER || RM.MATERIAL_NAME "likeCon"
|
|
|
from TMSTRUCK_WEIGHT_RESULT TWR
|
|
|
left join TMSTRUCK_TOTAL_RESULT TTR
|
|
|
on TWR.RESULT_TOTAL_ID = TTR.RESULT_TOTAL_ID
|
|
@@ -2107,10 +2107,20 @@
|
|
|
on RM.MATERIAL_ID = OOM.MATERIAL_ID
|
|
|
where TWR.RESULT_NET_WEIGHT IS NOT NULL
|
|
|
and OO.ORDER_TYPE = #{orderTypee}
|
|
|
+ <if test="oneDate != null">
|
|
|
+ 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
|
|
|
+ and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= TWR.RESULT_GROSS_WEIGHT_TIME
|
|
|
+ </if>
|
|
|
)
|
|
|
<where>
|
|
|
+ <if test="con != null">
|
|
|
+ and "likeCon" like #{con}
|
|
|
+ </if>
|
|
|
<if test="materialName != null">
|
|
|
- <foreach collection="materialName" item="item" open="(" separator="or" close=")">
|
|
|
+ and <foreach collection="materialName" item="item" open="(" separator="or" close=")">
|
|
|
"materialName" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
@@ -2132,48 +2142,6 @@
|
|
|
"truckCalculateNumber" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="resultGrossWeight != null">
|
|
|
- and
|
|
|
- <foreach collection="resultGrossWeight" item="item" open="(" separator="or" close=")">
|
|
|
- "resultGrossWeight" like '%${item}%'
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="resultGrossWeightTime != null">
|
|
|
- and
|
|
|
- <foreach collection="resultGrossWeightTime" item="item" open="(" separator="or" close=")">
|
|
|
- to_char("resultGrossWeightTime",'yyyy-mm-dd hh24:mi:ss') like '%${item}%'
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="resultTareWeight != null">
|
|
|
- and
|
|
|
- <foreach collection="resultTareWeight" item="item" open="(" separator="or" close=")">
|
|
|
- "resultTareWeight" like '%${item}%'
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="resultPoundNo != null">
|
|
|
- and
|
|
|
- <foreach collection="resultPoundNo" item="item" open="(" separator="or" close=")">
|
|
|
- "resultPoundNo" like '%${item}%'
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="resultTareWeightTime != null">
|
|
|
- and
|
|
|
- <foreach collection="resultTareWeightTime" item="item" open="(" separator="or" close=")">
|
|
|
- to_char("resultTareWeightTime",'yyyy-mm-dd hh24:mi:ss') like '%${item}%'
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="resultNetWeight != null">
|
|
|
- and
|
|
|
- <foreach collection="resultNetWeight" item="item" open="(" separator="or" close=")">
|
|
|
- "resultNetWeight" like '%${item}%'
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- <if test="netWeightTime != null">
|
|
|
- and
|
|
|
- <foreach collection="netWeightTime" item="item" open="(" separator="or" close=")">
|
|
|
- to_char("netWeightTime",'yyyy-mm-dd hh24:mi:ss') like '%${item}%'
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
</where>
|
|
|
<include refid="orderBy"></include>
|
|
|
<if test="orderField == null ">
|