每日生产状态报表调整

master
zpl 3 years ago
parent b2590dd89e
commit 7347fb4911

@ -165,20 +165,24 @@
AND ZSD.SFC = #{sfc} AND ZSD.SFC = #{sfc}
</if> </if>
<if test="routerType != null and routerType != ''" > <if test="routerType != null and routerType != ''" >
<if test="routerType = 'C'.toString()" > <choose>
AND RU.ROUTER_TYPE = #{routerType} <when test="routerType != 'OTHER'.toString()">
</if> AND RU.ROUTER_TYPE = #{routerType}
<if test="routerType != 'C'.toString()" > </when>
AND RU.ROUTER_TYPE != #{routerType} <otherwise>
</if> AND RU.ROUTER_TYPE != 'C'
</otherwise>
</choose>
</if> </if>
<if test="operationStatus != null and operationStatus != ''" > <if test="operationStatus != null and operationStatus != ''" >
<if test="operationStatus = 'OTHER'.toString()" > <choose>
AND ZSD.DISPATCH_STATUS != 'START' AND ZSD.DISPATCH_STATUS != 'COMPLETE' AND ZSD.DISPATCH_STATUS != 'CANCEL' <when test="operationStatus != 'OTHER'.toString()">
</if> AND ZSD.DISPATCH_STATUS = #{operationStatus}
<if test="operationStatus != 'OTHER'.toString()" > </when>
AND ZSD.DISPATCH_STATUS = #{operationStatus} <otherwise>
</if> AND ZSD.DISPATCH_STATUS != 'START' AND ZSD.DISPATCH_STATUS != 'COMPLETE' AND ZSD.DISPATCH_STATUS != 'CANCEL'
</otherwise>
</choose>
</if> </if>
<if test="startFromDate != null and startFromDate != ''" > <if test="startFromDate != null and startFromDate != ''" >
AND ZSD.PLANNED_START_DATE >= TO_DATE(#{startFromDate}, 'YYYY-MM-DD') - 8/24 AND ZSD.PLANNED_START_DATE >= TO_DATE(#{startFromDate}, 'YYYY-MM-DD') - 8/24

Loading…
Cancel
Save