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