|
@@ -114,11 +114,14 @@ public class CasesEntryHospitalFacade extends CasesEntryHospitalServiceImpl {
|
|
|
casesEntryHospitalQueryWrapper
|
|
|
.eq("is_deleted",IsDeleteEnum.N.getKey())
|
|
|
.in("hospital_id",updateByHospitalVO.getHospitalIds());
|
|
|
- this.remove(casesEntryHospitalQueryWrapper);
|
|
|
+
|
|
|
+ boolean res = this.remove(casesEntryHospitalQueryWrapper);
|
|
|
//添加新的
|
|
|
- casesEntryHospitalService.saveBatch(updateByHospitalVO.getCasesEntryHospitals());
|
|
|
+ if(res){
|
|
|
+ res = casesEntryHospitalService.saveAll(updateByHospitalVO.getCasesEntryHospitals());
|
|
|
+ }
|
|
|
|
|
|
- return true;
|
|
|
+ return res;
|
|
|
}
|
|
|
|
|
|
/**
|