Commit c6e83fc8c36bc84d4622e0070377eca8ce8c6eb5
1 parent
71bf542ded
Exists in
master
and in
1 other branch
修改新电子病历
Showing 2 changed files with 16 additions and 1 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/AntExChuDaoImpl.java
View file @
c6e83fc
| ... | ... | @@ -47,7 +47,7 @@ |
| 47 | 47 | public void updateOneAntEx(MongoQuery mongoQuery,AntExChuModel antExChuModel){ |
| 48 | 48 | antExChuModel.setModified(new Date()); |
| 49 | 49 | |
| 50 | - findAndModify(mongoQuery.convertToMongoQuery(),antExChuModel); | |
| 50 | + updateMulti(mongoQuery.convertToMongoQuery(),antExChuModel); | |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/YunBookbuildingService.java
View file @
c6e83fc
| 1 | 1 | package com.lyms.platform.biz.service; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.biz.dal.IAntExChuDao; | |
| 3 | 4 | import com.lyms.platform.common.dao.operator.MongoQuery; |
| 4 | 5 | import com.lyms.platform.common.enums.YnEnums; |
| 6 | +import com.lyms.platform.pojo.AntExChuModel; | |
| 7 | +import com.lyms.platform.query.AntExChuQuery; | |
| 5 | 8 | import com.lyms.platform.query.PatientsQuery; |
| 6 | 9 | import org.springframework.beans.factory.annotation.Autowired; |
| 7 | 10 | import org.springframework.data.domain.Sort; |
| ... | ... | @@ -17,6 +20,8 @@ |
| 17 | 20 | |
| 18 | 21 | @Autowired |
| 19 | 22 | private IYunBookBuildingDao yunBookBuildingDao; |
| 23 | + @Autowired | |
| 24 | + private IAntExChuDao antExChuDao; | |
| 20 | 25 | public Patients addPregnantBookbuilding(Patients patient) { |
| 21 | 26 | return yunBookBuildingDao.addYunBookbuilding(patient); |
| 22 | 27 | } |
| ... | ... | @@ -31,6 +36,16 @@ |
| 31 | 36 | patient.setYn(YnEnums.YES.getId()); |
| 32 | 37 | patient.setId(id); |
| 33 | 38 | yunBookBuildingDao.updatePatient(patient, id); |
| 39 | + | |
| 40 | + AntExChuQuery antExChuQuery=new AntExChuQuery(); | |
| 41 | + antExChuQuery.setParentId(id); | |
| 42 | + antExChuQuery.setYn(YnEnums.YES.getId()); | |
| 43 | + | |
| 44 | + AntExChuModel antExChuModel=new AntExChuModel(); | |
| 45 | + antExChuModel.setLastMenses(patient.getLastMenses()); | |
| 46 | + antExChuModel.setParentId(id); | |
| 47 | + | |
| 48 | + antExChuDao.updateOneAntEx(antExChuQuery.convertToQuery(),antExChuModel); | |
| 34 | 49 | |
| 35 | 50 | } |
| 36 | 51 |