Commit 500197eb12bf46feace90eb60dcf1b2cecd1fb59
1 parent
40be753f44
Exists in
master
and in
1 other branch
修改产检删除
Showing 1 changed file with 27 additions and 2 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PatientsService.java
View file @
500197e
... | ... | @@ -239,12 +239,37 @@ |
239 | 239 | * @param patients |
240 | 240 | */ |
241 | 241 | public void validata(Patients patients) { |
242 | - //修改产筛 | |
242 | + //修改产筛s | |
243 | 243 | updateSieve(patients); |
244 | 244 | //修改转诊 |
245 | 245 | updateRefer(patients); |
246 | - | |
246 | + //修改产检管理信息 | |
247 | 247 | updateExRecord(patients); |
248 | + } | |
249 | + | |
250 | + /** | |
251 | + * 修改非建档医院基本信息 | |
252 | + */ | |
253 | + private void updateBaseData(Patients patients){ | |
254 | + PatientsQuery patientsQuery2=new PatientsQuery(); | |
255 | + patientsQuery2.setPid(patients.getPid()); | |
256 | + patientsQuery2.setEnable("0"); | |
257 | + | |
258 | + //查询出其他医院的隐藏建档 | |
259 | + List<Patients> patientses=queryPatient(patientsQuery2); | |
260 | + if(CollectionUtils.isNotEmpty(patientses)){ | |
261 | + for(Patients patients1:patientses){ | |
262 | + patients.setId(patients1.getId()); | |
263 | + patients.setBookbuildingDate(patients1.getBookbuildingDate()); | |
264 | + patients.setHospitalId(patients1.getHospitalId()); | |
265 | + patients.setBookbuildingDoctor(patients1.getBookbuildingDoctor()); | |
266 | + patients.setCreated(patients1.getCreated()); | |
267 | + //修改隐藏建档的基本信息 | |
268 | + updatePatient(patients); | |
269 | + //修改其他依赖此建档的信息 | |
270 | + validata(patients); | |
271 | + } | |
272 | + } | |
248 | 273 | } |
249 | 274 | //修改产检管理的孕妇基本信息 |
250 | 275 | private void updateExRecord(Patients patients){ |