diff --git a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/ultrasonicController.java b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/ultrasonicController.java index b5d32bab1..1bb26cd0d 100644 --- a/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/ultrasonicController.java +++ b/yudao-module-ultrasoniccom/yudao-module-ultrasoniccom-biz/src/main/java/cn/iocoder/yudao/module/ultrasoniccom/controller/admin/ultrasonic/ultrasonicController.java @@ -281,8 +281,12 @@ public class ultrasonicController { demedicalimgDO.setRegId(updateReqVO.get(0).getRegid()); demedicalimgDO.setSelected("0"); } - dedoList.add(demedicalimgDO); - doList.add(medicalimgDO); + if(demedicalimgDO.getRegId()!=null) + { + dedoList.add(demedicalimgDO); + } + doList.add(medicalimgDO); + } //先进行更新 if (!dedoList.isEmpty()) {