liyg 2 年之前
父節點
當前提交
8c3a4d71df
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/com/steerinfo/dil/mapper/AmsPurchaseOrderMapper.xml

+ 1 - 1
src/main/resources/com/steerinfo/dil/mapper/AmsPurchaseOrderMapper.xml

@@ -522,7 +522,7 @@
     ON apo.RECEIVE_UNIT_ID = rsr.SHIPPER_ID
     where
       apo.DELETED = 0
-      <if test="con != null" >
+      <if test="con != null and con !=''.toString()" >
         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