Explorar o código

Merge branch 'master' of https://git.steerinfo.com/DAL-DAZHOU1/DAL-TMS-TRUCK-API

luobang %!s(int64=2) %!d(string=hai) anos
pai
achega
e46f34b816

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

@@ -852,7 +852,7 @@ public class StatisticalReportController extends BaseRESTfulController {
             map.put("salers",saler);
             map.put("salers",saler);
         }
         }
         if (easPrimaryId != null && !"".equals(easPrimaryId) && !"null".equals(easPrimaryId)) {
         if (easPrimaryId != null && !"".equals(easPrimaryId) && !"null".equals(easPrimaryId)) {
-            map.put("easPrimaryId",easPrimaryId);
+            map.put("easPrimaryId","%" + easPrimaryId+ "%");
         }
         }
         //分页数据
         //分页数据
         List<Map<String, Object>> report = statisticalReportService.getSaleSteelReportNew(map);
         List<Map<String, Object>> report = statisticalReportService.getSaleSteelReportNew(map);
@@ -971,7 +971,7 @@ public class StatisticalReportController extends BaseRESTfulController {
             map.put("salers",saler);
             map.put("salers",saler);
         }
         }
         if (easPrimaryId != null && !"".equals(easPrimaryId) && !"null".equals(easPrimaryId)) {
         if (easPrimaryId != null && !"".equals(easPrimaryId) && !"null".equals(easPrimaryId)) {
-            map.put("easPrimaryId",easPrimaryId);
+            map.put("easPrimaryId","%" +easPrimaryId+ "%");
         }
         }
         //分页数据
         //分页数据
         List<Map<String, Object>> report = statisticalReportService.getSettledSaleSteelReportNew(map);
         List<Map<String, Object>> report = statisticalReportService.getSettledSaleSteelReportNew(map);

+ 2 - 2
src/main/resources/com/steerinfo/dil/mapper/StatisticalReportMapper.xml

@@ -2406,7 +2406,7 @@
             and RSR.SALER_NAME = #{salers}
             and RSR.SALER_NAME = #{salers}
         </if>
         </if>
         <if test="easPrimaryId != null">
         <if test="easPrimaryId != null">
-            and ASM.EAS_PRIMARY_ID = #{easPrimaryId}
+            and ASM.EAS_PRIMARY_ID like #{easPrimaryId}
         </if>
         </if>
         <if test="capacityNum != null">
         <if test="capacityNum != null">
             and  RCA.CAPACITY_NUMBER like #{capacityNum}
             and  RCA.CAPACITY_NUMBER like #{capacityNum}
@@ -2679,7 +2679,7 @@
             and RSR.SALER_NAME = #{salers}
             and RSR.SALER_NAME = #{salers}
         </if>
         </if>
         <if test="easPrimaryId != null">
         <if test="easPrimaryId != null">
-            and ASM.EAS_PRIMARY_ID = #{easPrimaryId}
+            and ASM.EAS_PRIMARY_ID like #{easPrimaryId}
         </if>
         </if>
         <if test="capacityNum != null">
         <if test="capacityNum != null">
             and  RCA.CAPACITY_NUMBER like #{capacityNum}
             and  RCA.CAPACITY_NUMBER like #{capacityNum}