|
@@ -500,7 +500,9 @@
|
|
|
ON ada.PORT_ID = rpe.PORT_ID
|
|
|
LEFT JOIN RMS_CAPACITY rc
|
|
|
ON rc.CAPACITY_ID = oic.CAPACITY_ID
|
|
|
- WHERE tsl.DELETED = 0 and tlsr.DELETED = 0 and ada.DELETED=0 and oic.DELETED=0 and osi.DELETED=0
|
|
|
+ LEFT JOIN AMSSHIP_DELIVERY_NOTICE ADN
|
|
|
+ ON ADN.BATCH_ID=dbi.BATCH_INFACOTRY_ID
|
|
|
+ WHERE tsl.DELETED = 0 and tlsr.DELETED = 0 and ada.DELETED=0 and oic.DELETED=0 and osi.DELETED=0 and adn.DELETED=0
|
|
|
<if test="con!=null">
|
|
|
and (instr(rc.CAPACITY_NUMBER,#{con}) > 0 or instr(rm.MATERIAL_NAME,#{con}) > 0 or instr(db.RESULT_FOREIGN_SHIP_NAME,#{con}) > 0 )
|
|
|
</if>
|