瀏覽代碼

查询SQL函数使用错误修正

xiaosonghong 8 月之前
父節點
當前提交
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