Commit 470931bb35b33ad8409aa59b9c54fd0532e8d330
1 parent
c0f9f7e22f
Exists in
master
and in
1 other branch
增加统计
Showing 4 changed files with 27 additions and 0 deletions
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AntExRecordService.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AntenatalExaminationService.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PatientsService.java
- platform-dal/src/main/java/com/lyms/platform/pojo/AntExRecordModel.java
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AntExRecordService.java
View file @
470931b
| ... | ... | @@ -19,6 +19,7 @@ |
| 19 | 19 | import org.springframework.stereotype.Service; |
| 20 | 20 | |
| 21 | 21 | import java.util.ArrayList; |
| 22 | +import java.util.Date; | |
| 22 | 23 | import java.util.List; |
| 23 | 24 | |
| 24 | 25 | /** |
| ... | ... | @@ -109,6 +110,7 @@ |
| 109 | 110 | antExRecordModel.setCheckDoctor(antEx.getCheckDoctor()); |
| 110 | 111 | antExRecordModel.setCheckTime(antEx.getCheckDate()); |
| 111 | 112 | antExRecordModel.setPid(antEx.getPid()); |
| 113 | + antExRecordModel.setModified(new Date()); | |
| 112 | 114 | Patients patients = patientsService.findOnePatientById(antEx.getParentId()); |
| 113 | 115 | if (null != patients) { |
| 114 | 116 | if (patients.getType() == 1) { |
| ... | ... | @@ -138,6 +140,7 @@ |
| 138 | 140 | antExRecordModel.setParentId(antExChuModel.getParentId()); |
| 139 | 141 | antExRecordModel.setType(2); |
| 140 | 142 | antExRecordModel.setPid(antExChuModel.getPid()); |
| 143 | + antExRecordModel.setModified(new Date()); | |
| 141 | 144 | Patients patients = patientsService.findOnePatientById(antExChuModel.getParentId()); |
| 142 | 145 | if (null != patients) { |
| 143 | 146 | if (patients.getType() == 1) { |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/AntenatalExaminationService.java
View file @
470931b
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PatientsService.java
View file @
470931b
| ... | ... | @@ -239,6 +239,8 @@ |
| 239 | 239 | updateSieve(patients); |
| 240 | 240 | //修改转诊 |
| 241 | 241 | updateRefer(patients); |
| 242 | + | |
| 243 | + updateExRecord(patients); | |
| 242 | 244 | } |
| 243 | 245 | //修改产检管理的孕妇基本信息 |
| 244 | 246 | private void updateExRecord(Patients patients){ |
| ... | ... | @@ -256,6 +258,7 @@ |
| 256 | 258 | }else { |
| 257 | 259 | antExRecordModel.setStatus(1); |
| 258 | 260 | } |
| 261 | + antExRecordModel.setModified(new Date()); | |
| 259 | 262 | |
| 260 | 263 | iAntExRecordDao.batchUpdateRecord(antExRecordModel, antExRecordQuery.convertToQuery()); |
| 261 | 264 | } |
platform-dal/src/main/java/com/lyms/platform/pojo/AntExRecordModel.java
View file @
470931b
| ... | ... | @@ -45,6 +45,26 @@ |
| 45 | 45 | //末次月经 |
| 46 | 46 | private Date lastMenses; |
| 47 | 47 | |
| 48 | + private Date modified; | |
| 49 | + | |
| 50 | + private Date created; | |
| 51 | + | |
| 52 | + public Date getModified() { | |
| 53 | + return modified; | |
| 54 | + } | |
| 55 | + | |
| 56 | + public void setModified(Date modified) { | |
| 57 | + this.modified = modified; | |
| 58 | + } | |
| 59 | + | |
| 60 | + public Date getCreated() { | |
| 61 | + return created; | |
| 62 | + } | |
| 63 | + | |
| 64 | + public void setCreated(Date created) { | |
| 65 | + this.created = created; | |
| 66 | + } | |
| 67 | + | |
| 48 | 68 | public Date getBuildTime() { |
| 49 | 69 | return buildTime; |
| 50 | 70 | } |