胡半仙 3 年之前
父节点
当前提交
ee5b6f5746

+ 2 - 1
src/main/java/com/steerinfo/dil/controller/AmstruckInwardRequirementController.java

@@ -146,7 +146,8 @@ public class AmstruckInwardRequirementController extends BaseRESTfulController {
             mapValue = new HashMap<>();
         }
         if (orgCode != null && !orgCode.equals("null")) {
-            mapValue.put("orgCode",orgCode);
+            String con = "%"+orgCode+"%";
+            mapValue.put("con",con);
         }
         mapValue.put("requirementStatus",requirementStatus);
         List<Map<String, Object>> list = amstruckInwardRequirementService.getTruckRequirementList(mapValue);

+ 4 - 4
src/main/resources/com/steerinfo/dil/mapper/AmstruckInwardRequirementMapper.xml

@@ -779,8 +779,8 @@
         WHERE
         AIR.DELETED = 0
         AND AIR.PURCHASE_ORDER_ID IS NULL
-        <if test="orgCode !=null ">
-            AND AIR.INSERT_USERNAME = #{orgCode}
+        <if test="con !=null ">
+            AND AIR.INSERT_USERNAME LIKE #{con}
         </if>
         <if test="requirementStatus ==0 ">
             AND AIR.REQUIREMENT_STATUS = 0
@@ -908,8 +908,8 @@
         WHERE
         AIR.REQUIREMENT_STATUS = #{ requirementStatus }
         AND AIR.DELETED = 0
-        <if test="orgCode !=null ">
-            AND AIR.INSERT_USERNAME = #{orgCode}
+        <if test="con !=null ">
+            AND AIR.INSERT_USERNAME LIKE #{con}
         </if>
         )
         <where>