|
@@ -492,8 +492,10 @@
|
|
|
on RM.MATERIAL_ID = DB.MATERIAL_ID
|
|
|
left join RMS_PORT RP
|
|
|
on RP.PORT_ID = WOR.HARBOR_ID
|
|
|
- where (instr(RM.MATERIAL_NAME , #{con}) > 0 or instr( TLT.RESULT_WAGON_NO, #{con}) > 0 or
|
|
|
- instr(DB.RESULT_FOREIGN_SHIP_NAME,#{con}) > 0 or instr( RP.PORT_NAME,#{con}) > 0)
|
|
|
+ <if test="con!=null">
|
|
|
+ where instr(RM.MATERIAL_NAME , #{con}) > 0 or instr( TLT.RESULT_WAGON_NO, #{con}) > 0 or
|
|
|
+ instr(DB.RESULT_FOREIGN_SHIP_NAME,#{con}) > 0 or instr( RP.PORT_NAME,#{con}) > 0
|
|
|
+ </if>
|
|
|
Order By WOR.RESULT_NUMBER desc
|
|
|
</select>
|
|
|
</mapper>
|