renyu 2 yıl önce
ebeveyn
işleme
798b2818af

+ 24 - 0
src/main/java/com/chinaitop/depot/fumigation/controller/FumigationForRecordController.java

@@ -237,6 +237,30 @@ public class FumigationForRecordController {
237 237
     }
238 238
 
239 239
     /**
240
+     * 根据id查询熏蒸备案
241
+     * @param id 主键id
242
+     * @return
243
+     */
244
+    @RequestMapping(value="/getInfo", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
245
+    @ApiOperation(value="根据熏蒸备案id查询熏蒸备案数据", notes = "根据熏蒸备案id查询熏蒸备案数据")
246
+    @ApiImplicitParams({
247
+            @ApiImplicitParam(name = "forRecordId", value = "主键id", paramType = "query")
248
+    })
249
+    public Map<String, Object> getInfo(String forRecordId){
250
+        Map<String, Object> modelMap = new HashMap<String, Object>();
251
+
252
+        if (forRecordId != null) {
253
+            TFumigationForrecord tFumigationForrecord = fumigationFroRecordService.getById(forRecordId);
254
+            modelMap.put("record",tFumigationForrecord);
255
+            Map<String, Object> pesticide = fumigationFroRecordService.findYjxxById(forRecordId);
256
+            modelMap.put("drugName",pesticide.get("drugname"));//获取药剂名称
257
+            modelMap.put("reagentType",pesticide.get("reagenttype"));//获取药剂剂型名称
258
+        }
259
+
260
+        return modelMap;
261
+    }
262
+
263
+    /**
240 264
      * 保存熏蒸备案信息
241 265
      * @param fumigation
242 266
      * @return