|
@@ -524,12 +524,12 @@
|
|
apo.DELETED = 0
|
|
apo.DELETED = 0
|
|
<if test="con != null" >
|
|
<if test="con != null" >
|
|
and instr(apo.PURCHASE_ORDER_NO, #{con}) > 0 or instr(rsu.SUPPLIER_NAME, #{con}) > 0
|
|
and instr(apo.PURCHASE_ORDER_NO, #{con}) > 0 or instr(rsu.SUPPLIER_NAME, #{con}) > 0
|
|
|
|
+ or instr(rsb.SHIPPER_NAME, #{con}) > 0 or instr(rm.MATERIAL_NAME, #{con}) > 0
|
|
|
|
+ or instr(db.RESULT_FOREIGN_SHIP_NAME, #{con}) > 0
|
|
</if>
|
|
</if>
|
|
<if test="sendCompId != null and con == null">
|
|
<if test="sendCompId != null and con == null">
|
|
and apo.SUPPLIER_UNIT_ID = #{sendCompId}
|
|
and apo.SUPPLIER_UNIT_ID = #{sendCompId}
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
-
|
|
|
|
)
|
|
)
|
|
<where>
|
|
<where>
|
|
<if test="purchaseOrderNo!= null">
|
|
<if test="purchaseOrderNo!= null">
|