lvzhikai 5 anni fa
parent
commit
5944c0d7f2

+ 1 - 1
src/main/java/com/chinaitop/depot/agent/basic/controller/AgentStorehouseController.java

@@ -113,7 +113,7 @@ public class AgentStorehouseController {
113 113
         	}
114 114
         }
115 115
         //如果是粮情数据,那就不要油罐的信息
116
-        if (ParameterUtil.isequal(is_lq,"1")) {
116
+        if (ParameterUtil.isnotnull(is_lq) && ParameterUtil.isequal(is_lq,"1")) {
117 117
         	if (null != new_list && new_list.size() > 0) {
118 118
         		List<Map<String,Object>> list2 = new ArrayList<Map<String, Object>>();
119 119
         		Iterator<Map<String,Object>> ite = list.iterator();

+ 3 - 4
src/main/java/com/chinaitop/depot/agent/basic/service/impl/AgentTankServiceImpl.java

@@ -11,10 +11,7 @@ import org.apache.commons.lang.StringUtils;
11 11
 import org.springframework.stereotype.Service;
12 12
 
13 13
 import javax.annotation.Resource;
14
-import java.util.Date;
15
-import java.util.HashMap;
16
-import java.util.List;
17
-import java.util.Map;
14
+import java.util.*;
18 15
 
19 16
 @Service
20 17
 public class AgentTankServiceImpl implements agentTankService {
@@ -190,6 +187,8 @@ public class AgentTankServiceImpl implements agentTankService {
190 187
                 }
191 188
 
192 189
             }
190
+            String tank_id = "YG" + UUID.randomUUID().toString().replace("-", "");
191
+            agent.setId(tank_id.trim());
193 192
             BusinessAgentTankMapper.insert(agent);
194 193
         }
195 194
         return msg;

+ 16 - 8
src/main/java/com/chinaitop/depot/agent/quality/controller/AgentQualityController.java

@@ -224,7 +224,10 @@ public class AgentQualityController {
224 224
         retMap.put("qualitycheck",qualitycheck);
225 225
 
226 226
         if(qualitycheck!=null){
227
-            BusinessAgentQualityInspection qualitycheckInspection = agentQualityService.loadDataByTankId(id);
227
+            BusinessAgentQualityInspectionExample example = new BusinessAgentQualityInspectionExample();
228
+            BusinessAgentQualityInspectionExample.Criteria criteria = example.createCriteria();
229
+            criteria.andQualitycheckIdEqualTo(id);
230
+            BusinessAgentQualityInspection qualitycheckInspection = agentQualityService.loadDataByQualityId(example);
228 231
             retMap.put("qualitycheckInspection",qualitycheckInspection);
229 232
         }
230 233
 
@@ -305,15 +308,19 @@ public class AgentQualityController {
305 308
             @ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
306 309
             @ApiImplicitParam(name = "warehouseId", value = "货位ID", paramType = "query"),
307 310
             @ApiImplicitParam(name = "type", value = "检查类型", paramType = "query"),
308
-            @ApiImplicitParam(name = "sealStatus", value = "封仓类型", paramType = "query")
311
+            @ApiImplicitParam(name = "checkResult", value = "封仓类型", paramType = "query"),
312
+            @ApiImplicitParam(name = "orgId", value = "组织机构id", paramType = "query")
309 313
     })
310
-    public BusinessAgentQuality findByStoreWarehouse(Integer houseId, Integer warehouseId, String type,String sealStatus) {
314
+    public BusinessAgentQuality findByStoreWarehouse(String houseId, Integer warehouseId, String type,String checkResult, Integer orgId) {
311 315
     	BusinessAgentQuality qualityCheckExample = new BusinessAgentQuality();
312 316
         BusinessAgentQuality qualitycheck = null;
313 317
         try {
314
-            if (houseId != null && !"".equals(houseId)) {
315
-                qualityCheckExample.setStorehouseId(houseId);
316
-
318
+            if (ParameterUtil.isnotnull(houseId)) {
319
+                if(ParameterUtil.isNumeric(houseId)){
320
+                    qualityCheckExample.setStorehouseId(Integer.parseInt(houseId));
321
+                }else{
322
+                    qualityCheckExample.setTankId(houseId);
323
+                }
317 324
             }
318 325
             if(warehouseId != null && !"".equals(warehouseId)){
319 326
                 qualityCheckExample.setWarehouseId(warehouseId);
@@ -322,11 +329,12 @@ public class AgentQualityController {
322 329
                 qualityCheckExample.setType(type);//传入查找的质量类型
323 330
             }
324 331
 
325
-            if(StringUtils.isNotBlank(sealStatus)){
326
-                qualityCheckExample.setSealStatus(sealStatus);//传入查找的质量类型
332
+            if(StringUtils.isNotBlank(checkResult)){
333
+                qualityCheckExample.setSealStatus(checkResult);//传入查找的质量类型
327 334
             }
328 335
             //0:最新数据  1:历史数据
329 336
             qualityCheckExample.setHistoryStatus(0);
337
+            qualityCheckExample.setOrgId(orgId);
330 338
             List<BusinessAgentQuality> list = agentQualityService.queryByQualitycheck(qualityCheckExample);
331 339
             if (null != list && list.size() > 0) {
332 340
             	qualitycheck = list.get(0);

+ 3 - 4
src/main/java/com/chinaitop/depot/agent/quality/mapper/BusinessAgentQualityMapper.java

@@ -2,11 +2,11 @@ package com.chinaitop.depot.agent.quality.mapper;
2 2
 
3 3
 import com.chinaitop.depot.agent.quality.model.BusinessAgentQuality;
4 4
 import com.chinaitop.depot.agent.quality.model.BusinessAgentQualityExample;
5
-import org.apache.ibatis.annotations.Param;
6
-
7 5
 import java.util.List;
8 6
 import java.util.Map;
9 7
 
8
+import org.apache.ibatis.annotations.Param;
9
+
10 10
 public interface BusinessAgentQualityMapper {
11 11
     int countByExample(BusinessAgentQualityExample example);
12 12
 
@@ -40,8 +40,7 @@ public interface BusinessAgentQualityMapper {
40 40
      * @param qualitycheck
41 41
      * @return
42 42
      */
43
-    List<BusinessAgentQuality> getWareHouseIdList(
44
-            BusinessAgentQuality qualitycheck);
43
+    List<BusinessAgentQuality> getWareHouseIdList(BusinessAgentQuality qualitycheck);
45 44
     List<BusinessAgentQuality> getThirdCheckList(BusinessAgentQuality qualitycheck);
46 45
     List<BusinessAgentQuality> getQualitycheckListByFoodbasicinfoCheck(BusinessAgentQuality qualitycheck);
47 46
     BusinessAgentQuality queryPrimaryKey(Integer id);

+ 36 - 21
src/main/java/com/chinaitop/depot/agent/quality/mapper/BusinessAgentQualityMapper.xml

@@ -13,6 +13,7 @@
13 13
     <result column="sub_type_detailed" property="subTypeDetailed" jdbcType="INTEGER" />
14 14
     <result column="check_time" property="checkTime" jdbcType="TIMESTAMP" />
15 15
     <result column="check_result" property="checkResult" jdbcType="VARCHAR" />
16
+    <result column="checker" property="checker" jdbcType="VARCHAR" />
16 17
     <result column="level" property="level" jdbcType="INTEGER" />
17 18
     <result column="capacity" property="capacity" jdbcType="VARCHAR" />
18 19
     <result column="water" property="water" jdbcType="VARCHAR" />
@@ -151,9 +152,9 @@
151 152
   </sql>
152 153
   <sql id="Base_Column_List" >
153 154
     id, agent_id, agent_depot_id, tank_id, storehouse_id, warehouse_id, type, sub_type, 
154
-    sub_type_detailed, check_time, check_result, level, capacity, water, impurity, mineral, 
155
-    badpart, colorsmell, keeper_advices, keeper_advices_time, keeper_advices_paint, chief_advices, 
156
-    chief_advices_time, chiet_advices_paint, vice_manager_advices, vice_manager_advices_time, 
155
+    sub_type_detailed, check_time, check_result, checker, level, capacity, water, impurity, 
156
+    mineral, badpart, colorsmell, keeper_advices, keeper_advices_time, keeper_advices_paint, 
157
+    chief_advices, chief_advices_time, chiet_advices_paint, vice_manager_advices, vice_manager_advices_time, 
157 158
     vice_manager_advices_paint, manager_advices, manager_advices_time, manager_advices_paint, 
158 159
     improve_result, improve_time, improve_paint, is_firstchecklevel_right, accept_unite, 
159 160
     input_time, number, location, keeper, harvest_time, goodpart, chooser, choose_time, 
@@ -196,18 +197,18 @@
196 197
       <include refid="Example_Where_Clause" />
197 198
     </if>
198 199
   </delete>
199
-  <insert id="insert" useGeneratedKeys="true" keyProperty="id" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQuality">
200
+  <insert id="insert" useGeneratedKeys="true" keyProperty="id"  parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQuality" >
200 201
     insert into business_agent_quality (id, agent_id, agent_depot_id, 
201 202
       tank_id, storehouse_id, warehouse_id, 
202 203
       type, sub_type, sub_type_detailed, 
203
-      check_time, check_result, level, 
204
-      capacity, water, impurity, 
205
-      mineral, badpart, colorsmell, 
206
-      keeper_advices, keeper_advices_time, keeper_advices_paint, 
207
-      chief_advices, chief_advices_time, chiet_advices_paint, 
208
-      vice_manager_advices, vice_manager_advices_time, 
209
-      vice_manager_advices_paint, manager_advices, 
210
-      manager_advices_time, manager_advices_paint, 
204
+      check_time, check_result, checker, 
205
+      level, capacity, water, 
206
+      impurity, mineral, badpart, 
207
+      colorsmell, keeper_advices, keeper_advices_time, 
208
+      keeper_advices_paint, chief_advices, chief_advices_time, 
209
+      chiet_advices_paint, vice_manager_advices, 
210
+      vice_manager_advices_time, vice_manager_advices_paint, 
211
+      manager_advices, manager_advices_time, manager_advices_paint, 
211 212
       improve_result, improve_time, improve_paint, 
212 213
       is_firstchecklevel_right, accept_unite, input_time, 
213 214
       number, location, keeper, 
@@ -231,14 +232,14 @@
231 232
     values (#{id,jdbcType=INTEGER}, #{agentId,jdbcType=INTEGER}, #{agentDepotId,jdbcType=INTEGER}, 
232 233
       #{tankId,jdbcType=VARCHAR}, #{storehouseId,jdbcType=INTEGER}, #{warehouseId,jdbcType=INTEGER}, 
233 234
       #{type,jdbcType=VARCHAR}, #{subType,jdbcType=INTEGER}, #{subTypeDetailed,jdbcType=INTEGER}, 
234
-      #{checkTime,jdbcType=TIMESTAMP}, #{checkResult,jdbcType=VARCHAR}, #{level,jdbcType=INTEGER}, 
235
-      #{capacity,jdbcType=VARCHAR}, #{water,jdbcType=VARCHAR}, #{impurity,jdbcType=VARCHAR}, 
236
-      #{mineral,jdbcType=VARCHAR}, #{badpart,jdbcType=VARCHAR}, #{colorsmell,jdbcType=VARCHAR}, 
237
-      #{keeperAdvices,jdbcType=VARCHAR}, #{keeperAdvicesTime,jdbcType=VARCHAR}, #{keeperAdvicesPaint,jdbcType=VARCHAR}, 
238
-      #{chiefAdvices,jdbcType=VARCHAR}, #{chiefAdvicesTime,jdbcType=TIMESTAMP}, #{chietAdvicesPaint,jdbcType=VARCHAR}, 
239
-      #{viceManagerAdvices,jdbcType=VARCHAR}, #{viceManagerAdvicesTime,jdbcType=TIMESTAMP}, 
240
-      #{viceManagerAdvicesPaint,jdbcType=VARCHAR}, #{managerAdvices,jdbcType=VARCHAR}, 
241
-      #{managerAdvicesTime,jdbcType=TIMESTAMP}, #{managerAdvicesPaint,jdbcType=VARCHAR}, 
235
+      #{checkTime,jdbcType=TIMESTAMP}, #{checkResult,jdbcType=VARCHAR}, #{checker,jdbcType=VARCHAR}, 
236
+      #{level,jdbcType=INTEGER}, #{capacity,jdbcType=VARCHAR}, #{water,jdbcType=VARCHAR}, 
237
+      #{impurity,jdbcType=VARCHAR}, #{mineral,jdbcType=VARCHAR}, #{badpart,jdbcType=VARCHAR}, 
238
+      #{colorsmell,jdbcType=VARCHAR}, #{keeperAdvices,jdbcType=VARCHAR}, #{keeperAdvicesTime,jdbcType=VARCHAR}, 
239
+      #{keeperAdvicesPaint,jdbcType=VARCHAR}, #{chiefAdvices,jdbcType=VARCHAR}, #{chiefAdvicesTime,jdbcType=TIMESTAMP}, 
240
+      #{chietAdvicesPaint,jdbcType=VARCHAR}, #{viceManagerAdvices,jdbcType=VARCHAR}, 
241
+      #{viceManagerAdvicesTime,jdbcType=TIMESTAMP}, #{viceManagerAdvicesPaint,jdbcType=VARCHAR}, 
242
+      #{managerAdvices,jdbcType=VARCHAR}, #{managerAdvicesTime,jdbcType=TIMESTAMP}, #{managerAdvicesPaint,jdbcType=VARCHAR}, 
242 243
       #{improveResult,jdbcType=VARCHAR}, #{improveTime,jdbcType=TIMESTAMP}, #{improvePaint,jdbcType=VARCHAR}, 
243 244
       #{isFirstchecklevelRight,jdbcType=VARCHAR}, #{acceptUnite,jdbcType=VARCHAR}, #{inputTime,jdbcType=TIMESTAMP}, 
244 245
       #{number,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, #{keeper,jdbcType=VARCHAR}, 
@@ -296,6 +297,9 @@
296 297
       <if test="checkResult != null" >
297 298
         check_result,
298 299
       </if>
300
+      <if test="checker != null" >
301
+        checker,
302
+      </if>
299 303
       <if test="level != null" >
300 304
         level,
301 305
       </if>
@@ -562,6 +566,9 @@
562 566
       <if test="checkResult != null" >
563 567
         #{checkResult,jdbcType=VARCHAR},
564 568
       </if>
569
+      <if test="checker != null" >
570
+        #{checker,jdbcType=VARCHAR},
571
+      </if>
565 572
       <if test="level != null" >
566 573
         #{level,jdbcType=INTEGER},
567 574
       </if>
@@ -837,6 +844,9 @@
837 844
       <if test="record.checkResult != null" >
838 845
         check_result = #{record.checkResult,jdbcType=VARCHAR},
839 846
       </if>
847
+      <if test="record.checker != null" >
848
+        checker = #{record.checker,jdbcType=VARCHAR},
849
+      </if>
840 850
       <if test="record.level != null" >
841 851
         level = #{record.level,jdbcType=INTEGER},
842 852
       </if>
@@ -1086,6 +1096,7 @@
1086 1096
       sub_type_detailed = #{record.subTypeDetailed,jdbcType=INTEGER},
1087 1097
       check_time = #{record.checkTime,jdbcType=TIMESTAMP},
1088 1098
       check_result = #{record.checkResult,jdbcType=VARCHAR},
1099
+      checker = #{record.checker,jdbcType=VARCHAR},
1089 1100
       level = #{record.level,jdbcType=INTEGER},
1090 1101
       capacity = #{record.capacity,jdbcType=VARCHAR},
1091 1102
       water = #{record.water,jdbcType=VARCHAR},
@@ -1200,6 +1211,9 @@
1200 1211
       <if test="checkResult != null" >
1201 1212
         check_result = #{checkResult,jdbcType=VARCHAR},
1202 1213
       </if>
1214
+      <if test="checker != null" >
1215
+        checker = #{checker,jdbcType=VARCHAR},
1216
+      </if>
1203 1217
       <if test="level != null" >
1204 1218
         level = #{level,jdbcType=INTEGER},
1205 1219
       </if>
@@ -1446,6 +1460,7 @@
1446 1460
       sub_type_detailed = #{subTypeDetailed,jdbcType=INTEGER},
1447 1461
       check_time = #{checkTime,jdbcType=TIMESTAMP},
1448 1462
       check_result = #{checkResult,jdbcType=VARCHAR},
1463
+      checker = #{checker,jdbcType=VARCHAR},
1449 1464
       level = #{level,jdbcType=INTEGER},
1450 1465
       capacity = #{capacity,jdbcType=VARCHAR},
1451 1466
       water = #{water,jdbcType=VARCHAR},
@@ -1632,7 +1647,7 @@
1632 1647
     sqk.seal_status, sqk.auth_code, sqk.org_id, sqk.history_status,
1633 1648
     sqk.intermixing_rate,sqk.smelltaste,sqk.transparency,sqk.peroxide_value,
1634 1649
     sqk.smoke_point,sqk.reeze_test,sqk.residual_solvent,sqk.lead,sqk.total_arsenic,sqk.aflatoxin,sqk.butyl_phenol,
1635
-    sqk.updatetime
1650
+    sqk.updatetime,sqk.tank_id
1636 1651
     <!--云南新增的字段,先注释掉方便调试-->
1637 1652
     /*, sqk.intermixing_rate,sqk.smelltaste,sqk.transparency,sqk.peroxide_value,
1638 1653
     sqk.smoke_point,sqk.reeze_test,sqk.residual_solvent,sqk.lead,sqk.total_arsenic,sqk.aflatoxin,sqk.butyl_phenol*/

+ 19 - 0
src/main/java/com/chinaitop/depot/agent/quality/model/BusinessAgentQuality.java

@@ -26,6 +26,8 @@ public class BusinessAgentQuality {
26 26
 
27 27
     private String checkResult;
28 28
 
29
+    private String checker;
30
+
29 31
     private Integer level;
30 32
 
31 33
     private String capacity;
@@ -206,6 +208,7 @@ public class BusinessAgentQuality {
206 208
     private String stateType;
207 209
 
208 210
     private String tankName;
211
+
209 212
     /**
210 213
      * 质量检查信息表
211 214
      * @return id 质量检查信息表
@@ -383,6 +386,22 @@ public class BusinessAgentQuality {
383 386
     }
384 387
 
385 388
     /**
389
+     * 检验人
390
+     * @return checker 检验人
391
+     */
392
+    public String getChecker() {
393
+        return checker;
394
+    }
395
+
396
+    /**
397
+     * 检验人
398
+     * @param checker 检验人
399
+     */
400
+    public void setChecker(String checker) {
401
+        this.checker = checker == null ? null : checker.trim();
402
+    }
403
+
404
+    /**
386 405
      * 等级
387 406
      * @return level 等级
388 407
      */

+ 72 - 2
src/main/java/com/chinaitop/depot/agent/quality/model/BusinessAgentQualityExample.java

@@ -74,7 +74,7 @@ public class BusinessAgentQualityExample {
74 74
     }
75 75
 
76 76
     /**
77
-     * business_agent_quality 2020-03-11
77
+     * business_agent_quality 2020-05-25
78 78
      */
79 79
     protected abstract static class GeneratedCriteria {
80 80
         protected List<Criterion> criteria;
@@ -807,6 +807,76 @@ public class BusinessAgentQualityExample {
807 807
             return (Criteria) this;
808 808
         }
809 809
 
810
+        public Criteria andCheckerIsNull() {
811
+            addCriterion("checker is null");
812
+            return (Criteria) this;
813
+        }
814
+
815
+        public Criteria andCheckerIsNotNull() {
816
+            addCriterion("checker is not null");
817
+            return (Criteria) this;
818
+        }
819
+
820
+        public Criteria andCheckerEqualTo(String value) {
821
+            addCriterion("checker =", value, "checker");
822
+            return (Criteria) this;
823
+        }
824
+
825
+        public Criteria andCheckerNotEqualTo(String value) {
826
+            addCriterion("checker <>", value, "checker");
827
+            return (Criteria) this;
828
+        }
829
+
830
+        public Criteria andCheckerGreaterThan(String value) {
831
+            addCriterion("checker >", value, "checker");
832
+            return (Criteria) this;
833
+        }
834
+
835
+        public Criteria andCheckerGreaterThanOrEqualTo(String value) {
836
+            addCriterion("checker >=", value, "checker");
837
+            return (Criteria) this;
838
+        }
839
+
840
+        public Criteria andCheckerLessThan(String value) {
841
+            addCriterion("checker <", value, "checker");
842
+            return (Criteria) this;
843
+        }
844
+
845
+        public Criteria andCheckerLessThanOrEqualTo(String value) {
846
+            addCriterion("checker <=", value, "checker");
847
+            return (Criteria) this;
848
+        }
849
+
850
+        public Criteria andCheckerLike(String value) {
851
+            addCriterion("checker like", value, "checker");
852
+            return (Criteria) this;
853
+        }
854
+
855
+        public Criteria andCheckerNotLike(String value) {
856
+            addCriterion("checker not like", value, "checker");
857
+            return (Criteria) this;
858
+        }
859
+
860
+        public Criteria andCheckerIn(List<String> values) {
861
+            addCriterion("checker in", values, "checker");
862
+            return (Criteria) this;
863
+        }
864
+
865
+        public Criteria andCheckerNotIn(List<String> values) {
866
+            addCriterion("checker not in", values, "checker");
867
+            return (Criteria) this;
868
+        }
869
+
870
+        public Criteria andCheckerBetween(String value1, String value2) {
871
+            addCriterion("checker between", value1, value2, "checker");
872
+            return (Criteria) this;
873
+        }
874
+
875
+        public Criteria andCheckerNotBetween(String value1, String value2) {
876
+            addCriterion("checker not between", value1, value2, "checker");
877
+            return (Criteria) this;
878
+        }
879
+
810 880
         public Criteria andLevelIsNull() {
811 881
             addCriterion("level is null");
812 882
             return (Criteria) this;
@@ -6069,7 +6139,7 @@ public class BusinessAgentQualityExample {
6069 6139
     }
6070 6140
 
6071 6141
     /**
6072
-     * business_agent_quality 2020-03-11
6142
+     * business_agent_quality 2020-05-25
6073 6143
      */
6074 6144
     public static class Criterion {
6075 6145
         private String condition;

+ 2 - 5
src/main/java/com/chinaitop/depot/agent/quality/service/AgentQualityService.java

@@ -1,9 +1,6 @@
1 1
 package com.chinaitop.depot.agent.quality.service;
2 2
 
3
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQuality;
4
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualityExample;
5
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualityInspection;
6
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualitySon;
3
+import com.chinaitop.depot.agent.quality.model.*;
7 4
 
8 5
 import java.util.List;
9 6
 import java.util.Map;
@@ -126,5 +123,5 @@ public interface AgentQualityService {
126 123
 	 */
127 124
 	void tankSave(BusinessAgentQualityInspection qualityInspection);
128 125
 
129
-	BusinessAgentQualityInspection loadDataByTankId(Integer id);
126
+	BusinessAgentQualityInspection loadDataByQualityId(BusinessAgentQualityInspectionExample example);
130 127
 }

+ 3 - 6
src/main/java/com/chinaitop/depot/agent/quality/service/impl/AgentQualityServiceImpl.java

@@ -4,10 +4,7 @@ import com.chinaitop.depot.agent.basic.mapper.BusinessAgentMapper;
4 4
 import com.chinaitop.depot.agent.quality.mapper.BusinessAgentQualityInspectionMapper;
5 5
 import com.chinaitop.depot.agent.quality.mapper.BusinessAgentQualityMapper;
6 6
 import com.chinaitop.depot.agent.quality.mapper.BusinessAgentQualitySonMapper;
7
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQuality;
8
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualityExample;
9
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualityInspection;
10
-import com.chinaitop.depot.agent.quality.model.BusinessAgentQualitySon;
7
+import com.chinaitop.depot.agent.quality.model.*;
11 8
 import com.chinaitop.depot.agent.quality.service.AgentQualityService;
12 9
 import com.chinaitop.utils.ParameterUtil;
13 10
 import org.apache.commons.lang3.StringUtils;
@@ -1276,7 +1273,7 @@ public class AgentQualityServiceImpl implements AgentQualityService {
1276 1273
     }
1277 1274
 
1278 1275
     @Override
1279
-    public BusinessAgentQualityInspection loadDataByTankId(Integer id) {
1280
-        return businessAgentQualityInspectionMapper.selectByPrimaryKey(id);
1276
+    public BusinessAgentQualityInspection loadDataByQualityId(BusinessAgentQualityInspectionExample example) {
1277
+        return businessAgentQualityInspectionMapper.selectByExample(example).get(0);
1281 1278
     }
1282 1279
 }

+ 10 - 0
src/main/java/com/chinaitop/utils/ParameterUtil.java

@@ -280,4 +280,14 @@ public class ParameterUtil {
280 280
         // 返回
281 281
         return sbf.toString();
282 282
     }
283
+
284
+    //判断字符串是否是数字
285
+    public static boolean isNumeric(String str){
286
+        for (int i = str.length();--i>=0;){
287
+            if (!Character.isDigit(str.charAt(i))){
288
+                return false;
289
+            }
290
+        }
291
+        return true;
292
+    }
283 293
 }