Commit 1b3c665a76a121042ea82761f960f6e114e07e61
1 parent
36391a4111
Exists in
master
and in
7 other branches
修改产检时间
Showing 3 changed files with 32 additions and 4 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PatientsService.java
View file @
1b3c665
| ... | ... | @@ -117,6 +117,34 @@ |
| 117 | 117 | iPatientDao.updatePatientOneCol(id, colValue); |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | + /** | |
| 121 | + * 修改下次检查时间 | |
| 122 | + * | |
| 123 | + * @param nextCheckTime | |
| 124 | + * @param id | |
| 125 | + */ | |
| 126 | + public void updateNextCheckTime(String nextCheckTime,String id){ | |
| 127 | + if(StringUtils.isNotEmpty(id)){ | |
| 128 | + Patients patients= findOnePatientById(id); | |
| 129 | + //修改主档 | |
| 130 | + if(null!=patients&&StringUtils.isNotEmpty(patients.getSource())){ | |
| 131 | + Patients p = findOnePatientById(patients.getSource()); | |
| 132 | + updatePatientOneCol(p.getId(),com.lyms.platform.common.utils.StringUtils.isEmpty(nextCheckTime) == true ? null : DateUtil.parseYMD(nextCheckTime)); | |
| 133 | + }else if(null!=patients){ | |
| 134 | + PatientsQuery patientsQuery1=new PatientsQuery(); | |
| 135 | + patientsQuery1.setSource(id); | |
| 136 | + patientsQuery1.setYn(YnEnums.YES.getId()); | |
| 137 | + List<Patients> list= queryPatient(patientsQuery1); | |
| 138 | + if(CollectionUtils.isNotEmpty(list)){ | |
| 139 | + for(Patients p:list){ | |
| 140 | + updatePatientOneCol(p.getId(),com.lyms.platform.common.utils.StringUtils.isEmpty(nextCheckTime) == true ? null : DateUtil.parseYMD(nextCheckTime)); | |
| 141 | + } | |
| 142 | + } | |
| 143 | + } | |
| 144 | + updatePatientOneCol(id,com.lyms.platform.common.utils.StringUtils.isEmpty(nextCheckTime) == true ? null : DateUtil.parseYMD(nextCheckTime)); | |
| 145 | + } | |
| 146 | + } | |
| 147 | + | |
| 120 | 148 | public void updatePatientLastCheckEmployeeIdOne(String id, String lastCheckEmployeeId) { |
| 121 | 149 | iPatientDao.updatePatientLastCheckEmployeeIdOne(id, lastCheckEmployeeId); |
| 122 | 150 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
1b3c665
| ... | ... | @@ -369,7 +369,7 @@ |
| 369 | 369 | //修改患者风险等级 |
| 370 | 370 | // updatePatientRiskLevel(antExChuModel, patients); |
| 371 | 371 | patientsService.updatePatient(patients); |
| 372 | - patientsService.updatePatientOneCol(patients.getId(), com.lyms.platform.common.utils.StringUtils.isEmpty(excAddRequest.getNextCheckTime()) == true ? null : DateUtil.parseYMD(excAddRequest.getNextCheckTime())); | |
| 372 | + patientsService.updateNextCheckTime(patients.getId(), excAddRequest.getNextCheckTime()); | |
| 373 | 373 | |
| 374 | 374 | //修改本系统最后的高危 |
| 375 | 375 | updateLastRisk(patients.getId()); |
| 376 | 376 | |
| ... | ... | @@ -432,9 +432,9 @@ |
| 432 | 432 | //修改患者风险等级 |
| 433 | 433 | |
| 434 | 434 | patients.setLastCheckEmployeeId(excAddRequest.getProdDoctor()); |
| 435 | -// updatePatientRiskLevel(antExChuModel, patients); | |
| 435 | + | |
| 436 | 436 | patientsService.updatePatient(patients); |
| 437 | - patientsService.updatePatientOneCol(patients.getId(), com.lyms.platform.common.utils.StringUtils.isEmpty(excAddRequest.getNextCheckTime()) == true ? null : DateUtil.parseYMD(excAddRequest.getNextCheckTime())); | |
| 437 | + patientsService.updateNextCheckTime(patients.getId(), excAddRequest.getNextCheckTime()); | |
| 438 | 438 | updateLastRisk(patients.getId()); |
| 439 | 439 | |
| 440 | 440 | //修改本院最后一次定义高危 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PostReviewFacade.java
View file @
1b3c665
| ... | ... | @@ -143,7 +143,7 @@ |
| 143 | 143 | patientsService.updatePatient(patients2); |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | - patientsService.updatePatientOneCol(patients.getId(), com.lyms.platform.common.utils.StringUtils.isEmpty(postReviewRequest.getNextCheckTime()) == true ? null : DateUtil.parseYMD(postReviewRequest.getNextCheckTime())); | |
| 146 | + patientsService.updateNextCheckTime(patients.getId(), postReviewRequest.getNextCheckTime()); | |
| 147 | 147 | |
| 148 | 148 | if (null != patients.getBuildType() && patients.getBuildType() == 3) { |
| 149 | 149 | ReferralApplyOrderQuery referralApplyOrderQuery = new ReferralApplyOrderQuery(); |