Commit 88465612f4f747a9d01d33f9611ba7e39e150c96
1 parent
2a2dd5d427
Exists in
master
and in
6 other branches
更新时间
Showing 5 changed files with 10 additions and 0 deletions
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/MatDeliverDaoImpl.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/PatientCourseDaoImpl.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/PatientDaoImpl.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/PatientWeightDaoImpl.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/PersonDaoImpl.java
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/MatDeliverDaoImpl.java
View file @
8846561
| ... | ... | @@ -8,6 +8,7 @@ |
| 8 | 8 | import com.lyms.platform.pojo.MaternalDeliverModel; |
| 9 | 9 | import org.springframework.stereotype.Repository; |
| 10 | 10 | |
| 11 | +import java.util.Date; | |
| 11 | 12 | import java.util.List; |
| 12 | 13 | |
| 13 | 14 | /** |
| ... | ... | @@ -39,6 +40,7 @@ |
| 39 | 40 | * @param deliverModel |
| 40 | 41 | */ |
| 41 | 42 | public void updateOneById(MaternalDeliverModel deliverModel, String id) { |
| 43 | + deliverModel.setModified(new Date()); | |
| 42 | 44 | update(new MongoQuery(new MongoCondition("id", id, MongoOper.IS)).convertToMongoQuery(), deliverModel); |
| 43 | 45 | } |
| 44 | 46 |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/PatientCourseDaoImpl.java
View file @
8846561
| ... | ... | @@ -8,6 +8,7 @@ |
| 8 | 8 | import com.lyms.platform.pojo.PatientCourseModel; |
| 9 | 9 | import org.springframework.stereotype.Repository; |
| 10 | 10 | |
| 11 | +import java.util.Date; | |
| 11 | 12 | import java.util.List; |
| 12 | 13 | |
| 13 | 14 | /** |
| ... | ... | @@ -32,6 +33,7 @@ |
| 32 | 33 | |
| 33 | 34 | @Override |
| 34 | 35 | public void updatePatientCourse(MongoQuery mongoQuery,PatientCourseModel model) { |
| 36 | + model.setModified(new Date()); | |
| 35 | 37 | update(mongoQuery.convertToMongoQuery(),model); |
| 36 | 38 | } |
| 37 | 39 |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/PatientDaoImpl.java
View file @
8846561
| ... | ... | @@ -17,6 +17,7 @@ |
| 17 | 17 | import org.springframework.data.mongodb.core.query.Update; |
| 18 | 18 | import org.springframework.stereotype.Repository; |
| 19 | 19 | |
| 20 | +import java.util.Date; | |
| 20 | 21 | import java.util.HashMap; |
| 21 | 22 | import java.util.List; |
| 22 | 23 | |
| ... | ... | @@ -93,6 +94,7 @@ |
| 93 | 94 | |
| 94 | 95 | @Override |
| 95 | 96 | public void updatePatient(Patients obj, String id) { |
| 97 | + obj.setModified(new Date()); | |
| 96 | 98 | update(new MongoQuery(new MongoCondition("id", id, MongoOper.IS)).convertToMongoQuery(), obj); |
| 97 | 99 | } |
| 98 | 100 |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/PatientWeightDaoImpl.java
View file @
8846561
| ... | ... | @@ -6,6 +6,7 @@ |
| 6 | 6 | import org.springframework.data.mongodb.core.query.Query; |
| 7 | 7 | import org.springframework.stereotype.Repository; |
| 8 | 8 | |
| 9 | +import java.util.Date; | |
| 9 | 10 | import java.util.List; |
| 10 | 11 | |
| 11 | 12 | /** |
| ... | ... | @@ -21,6 +22,7 @@ |
| 21 | 22 | |
| 22 | 23 | @Override |
| 23 | 24 | public void updatePatient(Query query, PatientWeight patientWeight) { |
| 25 | + patientWeight.setModified(new Date()); | |
| 24 | 26 | update(query, patientWeight); |
| 25 | 27 | } |
| 26 | 28 |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/PersonDaoImpl.java
View file @
8846561
| ... | ... | @@ -8,6 +8,7 @@ |
| 8 | 8 | import com.lyms.platform.pojo.PersonModel; |
| 9 | 9 | import org.springframework.stereotype.Repository; |
| 10 | 10 | |
| 11 | +import java.util.Date; | |
| 11 | 12 | import java.util.List; |
| 12 | 13 | |
| 13 | 14 | @Repository("personDao") |
| ... | ... | @@ -20,6 +21,7 @@ |
| 20 | 21 | |
| 21 | 22 | @Override |
| 22 | 23 | public void updatePerson(PersonModel obj, String id) { |
| 24 | + obj.setModified(new Date()); | |
| 23 | 25 | update(new MongoQuery(new MongoCondition("id", id, MongoOper.IS)).convertToMongoQuery(), obj); |
| 24 | 26 | } |
| 25 | 27 |