Sfoglia il codice sorgente

虫害检测-检查害虫方法

hanqingsong 1 anno fa
parent
commit
0afe15cd18

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

@@ -125,14 +125,9 @@ public class InsectPestDetectionController {
125
             @ApiImplicitParam(name = "insectPests", value = "虫数据", paramType = "form")
125
             @ApiImplicitParam(name = "insectPests", value = "虫数据", paramType = "form")
126
     })
126
     })
127
     public ResponseEntity addInsectPestData(String insectPests) {
127
     public ResponseEntity addInsectPestData(String insectPests) {
128
-
129
-//        Map<String, Object> modelMap = new HashMap<String, Object>();
130
-        
131
         try {
128
         try {
132
 			insectPestDetectionService.saveOrUpdate(insectPests);
129
 			insectPestDetectionService.saveOrUpdate(insectPests);
133
-//			modelMap.put("msg", "保存成功");
134
 		} catch (Exception e) {
130
 		} catch (Exception e) {
135
-//			modelMap.put("msg", "保存失败");
136
 			e.printStackTrace();
131
 			e.printStackTrace();
137
             ResponseEntity.failed("保存失败");
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
     	if (null == tCcdata.getId() || "".equals(tCcdata)) {
232
     	if (null == tCcdata.getId() || "".equals(tCcdata)) {
233
     		tCcdata.setId(uuidUtils.getCodeId(tCcdata.getOrgId(), "t_ccdata"));
233
     		tCcdata.setId(uuidUtils.getCodeId(tCcdata.getOrgId(), "t_ccdata"));
234
     		tCcdata.setDataSource("1");//数据来源0是自动检测,1是手工录入
234
     		tCcdata.setDataSource("1");//数据来源0是自动检测,1是手工录入
235
-            tCcdata.setJchcff("0");
235
+//            tCcdata.setJchcff("0");
236
             //害虫检测单号
236
             //害虫检测单号
237
             String jcdhLast = tCcdataMapper.getLastJCDH();
237
             String jcdhLast = tCcdataMapper.getLastJCDH();
238
             // 获取廒间编码
238
             // 获取廒间编码