|
@@ -501,6 +501,13 @@
|
|
|
<if test="carrierSsoId != null">
|
|
|
and RCA.CARRIER_SSO_ID = #{carrierSsoId}
|
|
|
</if>
|
|
|
+ <if test="oneDate != null">
|
|
|
+ and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ </if>
|
|
|
+ <if test="startDate != null">
|
|
|
+ and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ </if>
|
|
|
)
|
|
|
<where>
|
|
|
<if test="purchaseOrderNo != null">
|
|
@@ -641,6 +648,13 @@
|
|
|
ON RCON.CONSIGNEE_ID = ASO.RECEIVE_ID
|
|
|
WHERE TLFR.RESULT_OUT_GATE_TIME IS NOT NULL
|
|
|
AND OO.ORDER_TYPE IN (1, 2, 3)
|
|
|
+ <if test="oneDate != null">
|
|
|
+ and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ </if>
|
|
|
+ <if test="startDate != null">
|
|
|
+ and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ </if>
|
|
|
)
|
|
|
<where>
|
|
|
<if test="saleNum != null">
|
|
@@ -799,6 +813,13 @@
|
|
|
ON RG.GATEPOST_ID = TLFR.GATEPOST_ID
|
|
|
WHERE OO.ORDER_TYPE = 4
|
|
|
AND TLFR.RESULT_OUT_GATE_TIME IS NOT NULL
|
|
|
+ <if test="oneDate != null">
|
|
|
+ and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ </if>
|
|
|
+ <if test="startDate != null">
|
|
|
+ and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ </if>
|
|
|
)
|
|
|
<where>
|
|
|
<if test="dayplanNo != null">
|
|
@@ -880,6 +901,13 @@
|
|
|
|
|
|
where RESULT_OUT_GATE_TIME is not null
|
|
|
and OO.ORDER_TYPE = 9
|
|
|
+ <if test="oneDate != null">
|
|
|
+ and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ </if>
|
|
|
+ <if test="startDate != null">
|
|
|
+ and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ </if>
|
|
|
)
|
|
|
<where>
|
|
|
<if test="purchaseOrderNo != null">
|
|
@@ -961,6 +989,13 @@
|
|
|
on RG.GATEPOST_ID = TLFR.GATEPOST_ID
|
|
|
where RESULT_OUT_GATE_TIME is not null
|
|
|
and OO.ORDER_TYPE = 11
|
|
|
+ <if test="oneDate != null">
|
|
|
+ and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ </if>
|
|
|
+ <if test="startDate != null">
|
|
|
+ and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ </if>
|
|
|
)
|
|
|
<where>
|
|
|
<if test="orderNumber != null">
|
|
@@ -1129,6 +1164,13 @@
|
|
|
where "orderNumber" like #{con} or "capacityNumber" like #{con}
|
|
|
or "gatepostName" like #{con} or "materialName" like #{con}
|
|
|
</if>
|
|
|
+ <if test="oneDate != null">
|
|
|
+ and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') <= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ </if>
|
|
|
+ <if test="startDate != null">
|
|
|
+ and to_date(#{startDate}, 'yyyy-mm-dd hh24:mi:ss') <= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= TLFR.RESULT_OUT_GATE_TIME
|
|
|
+ </if>
|
|
|
)
|
|
|
<where>
|
|
|
<if test="orderNumber != null">
|