소스 검색

查询SQL函数使用错误修正

xiaosonghong 11 달 전
부모
커밋
409c889f82
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/resources/com/steerinfo/dil/mapper/TmstrainLoadingResultMapper.xml

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

@@ -1519,7 +1519,7 @@
     and db.RESULT_FOREIGN_SHIP_NAME is not null
     and rsu.SUPPLIER_NAME is not null
     <if test="productName!=null and productName!=''.toString()">
-      and INSTR(#{productName}, db.RESULT_FOREIGN_SHIP_NAME) > 0
+      and INSTR(db.RESULT_FOREIGN_SHIP_NAME, #{productName}) > 0
     </if>
     <if test="materialName!=null and materialName!=''.toString()">
       and INSTR(rm.MATERIAL_NAME,#{materialName}) > 0