|
|
@@ -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
|
}
|