Commit d1a264094e4c32f5e589b9a719a65702254f8e69
1 parent
a3e652bac0
Exists in
master
and in
2 other branches
增加购买孕周时,孕周累加
Showing 1 changed file with 11 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceFacade.java
View file @
d1a2640
... | ... | @@ -605,6 +605,17 @@ |
605 | 605 | //修改服务时增加孕周内容 cfl 20231019 |
606 | 606 | Patients patients = patientsService.findOnePatientById(ps.getParentid()); |
607 | 607 | setServiceRecordUpdate(ps,patients); |
608 | + //增加购买孕周 cfl | |
609 | + if(before.getSerStatus() == 1 && ps.getSerStatus() ==1){ | |
610 | + if (ps.getServiceWeek() != null && ps.getServiceWeek() > 0) | |
611 | + { | |
612 | + ps.setServiceWeek(ps.getServiceWeek() + (before.getServiceWeek() != null ? before.getServiceWeek():0)); | |
613 | + } | |
614 | + if (ps.getDoctorWeek() != null && ps.getDoctorWeek() > 0) | |
615 | + { | |
616 | + ps.setDoctorWeek(ps.getDoctorWeek() + (before.getDoctorWeek() != null ? before.getDoctorWeek():0)); | |
617 | + } | |
618 | + } | |
608 | 619 | |
609 | 620 | patientServiceService.updatePatientService(ps); |
610 | 621 |