소스 검색

虫害检测-检查害虫方法

hanqingsong 1 년 전
부모
커밋
0afe15cd18

+ 0 - 5
src/main/java/com/chinaitop/depot/storage/controller/InsectPestDetectionController.java

@@ -125,14 +125,9 @@ public class InsectPestDetectionController {
125 125
             @ApiImplicitParam(name = "insectPests", value = "虫数据", paramType = "form")
126 126
     })
127 127
     public ResponseEntity addInsectPestData(String insectPests) {
128
-
129
-//        Map<String, Object> modelMap = new HashMap<String, Object>();
130
-        
131 128
         try {
132 129
 			insectPestDetectionService.saveOrUpdate(insectPests);
133
-//			modelMap.put("msg", "保存成功");
134 130
 		} catch (Exception e) {
135
-//			modelMap.put("msg", "保存失败");
136 131
 			e.printStackTrace();
137 132
             ResponseEntity.failed("保存失败");
138 133
 		}

+ 1 - 1
src/main/java/com/chinaitop/depot/storage/service/impl/InsectPestDetectionServiceImpl.java

@@ -232,7 +232,7 @@ public class InsectPestDetectionServiceImpl implements InsectPestDetectionServic
232 232
     	if (null == tCcdata.getId() || "".equals(tCcdata)) {
233 233
     		tCcdata.setId(uuidUtils.getCodeId(tCcdata.getOrgId(), "t_ccdata"));
234 234
     		tCcdata.setDataSource("1");//数据来源0是自动检测,1是手工录入
235
-            tCcdata.setJchcff("0");
235
+//            tCcdata.setJchcff("0");
236 236
             //害虫检测单号
237 237
             String jcdhLast = tCcdataMapper.getLastJCDH();
238 238
             // 获取廒间编码