|
@@ -845,6 +845,24 @@
|
|
|
"requirementType" like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ <if test="materialName != null">
|
|
|
+ and
|
|
|
+ <foreach collection="materialName" item="item" open="(" separator="or" close=")">
|
|
|
+ "materialName" like '%${item}%'
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="loadName != null">
|
|
|
+ and
|
|
|
+ <foreach collection="loadName" item="item" open="(" separator="or" close=")">
|
|
|
+ "loadName" like '%${item}%'
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="unloadName != null">
|
|
|
+ and
|
|
|
+ <foreach collection="unloadName" item="item" open="(" separator="or" close=")">
|
|
|
+ "unloadName" like '%${item}%'
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
<if test="requirementTruckTime != null">
|
|
|
and
|
|
|
<foreach collection="requirementTruckTime" item="item" open="(" separator="or" close=")">
|
|
@@ -1269,7 +1287,8 @@
|
|
|
RM.MATERIAL_NAME "materialName",
|
|
|
RCR.CARRIER_NAME "carrierName",
|
|
|
AIP.PLAN_EABLE_STATUS "enable",
|
|
|
- AIR.INSERT_TIME "insertTime"
|
|
|
+ AIR.INSERT_TIME "insertTime",
|
|
|
+ DB.RESULT_FOREIGN_SHIP_NAME "shipName"
|
|
|
FROM AMSTRUCK_INWARD_REQUIREMENT AIR
|
|
|
LEFT JOIN AMS_PURCHASE_ORDER APO
|
|
|
ON APO.PURCHASE_ORDER_ID = AIR.PURCHASE_ORDER_ID
|
|
@@ -1291,6 +1310,8 @@
|
|
|
ON RCR.CARRIER_ID = AIP.CARRIER_ID
|
|
|
LEFT JOIN RMS_TRANS_RANGE RTR
|
|
|
ON RTR.TRANS_RANGE_ID = AIR.LINE_ID
|
|
|
+ LEFT JOIN DIL_BATCH DB
|
|
|
+ ON DB.BATCH_ID = APO.BATCH_ID
|
|
|
WHERE AIR.PURCHASE_ORDER_ID IS NOT NULL
|
|
|
AND AIR.REQUIREMENT_STATUS = #{requirementStatus}
|
|
|
AND AIR.DELETED = 0
|