Browse Source

查询SQL函数使用错误修正

xiaosonghong 8 months ago
parent
commit
409c889f82

+ 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