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