ソースを参照

增加备案详情查询接口

renyu 2 年 前
コミット
e7de5a6c9c
共有1 個のファイルを変更した5 個の追加2 個の削除を含む
  1. 5 2
      src/main/java/com/chinaitop/depot/fumigation/controller/FumigationForRecordController.java

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

@@ -253,8 +253,11 @@ public class FumigationForRecordController {
253 253
             TFumigationForrecord tFumigationForrecord = fumigationFroRecordService.getById(forRecordId);
254 254
             modelMap.put("record",tFumigationForrecord);
255 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 263
         return modelMap;