Browse Source

增加备案详情查询接口

renyu 2 years ago
parent
commit
e7de5a6c9c

+ 5 - 2
src/main/java/com/chinaitop/depot/fumigation/controller/FumigationForRecordController.java

@@ -253,8 +253,11 @@ public class FumigationForRecordController {
253
             TFumigationForrecord tFumigationForrecord = fumigationFroRecordService.getById(forRecordId);
253
             TFumigationForrecord tFumigationForrecord = fumigationFroRecordService.getById(forRecordId);
254
             modelMap.put("record",tFumigationForrecord);
254
             modelMap.put("record",tFumigationForrecord);
255
             Map<String, Object> pesticide = fumigationFroRecordService.findYjxxById(forRecordId);
255
             Map<String, Object> pesticide = fumigationFroRecordService.findYjxxById(forRecordId);
256
-            modelMap.put("drugName",pesticide.get("drugname"));//获取药剂名称
257
-            modelMap.put("reagentType",pesticide.get("reagenttype"));//获取药剂剂型名称
256
+            if(pesticide!=null){
257
+                modelMap.put("drugName",pesticide.get("drugname"));//获取药剂名称
258
+                modelMap.put("reagentType",pesticide.get("reagenttype"));//获取药剂剂型名称
259
+            }
260
+
258
         }
261
         }
259
 
262
 
260
         return modelMap;
263
         return modelMap;