Commit a0ea61ef1453e83e66a27d7dabc44f971ddba69c

Authored by tranny
1 parent 500e1b35b1

遵化

Showing 4 changed files with 16 additions and 0 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/IPatientDao.java View file @ a0ea61e
... ... @@ -40,5 +40,7 @@
40 40 List<PredictedStatisticsCountModel> predictedStatistics();
41 41  
42 42 List<HashMap> aggregateOne(MongoQuery mongoQuery);
  43 +
  44 + public void updatePatientHusbandBirth(String id, Object colValue);
43 45 }
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/PatientDaoImpl.java View file @ a0ea61e
... ... @@ -42,6 +42,13 @@
42 42 public void updatePatientOneCol(String id, Object colValue) {
43 43 this.mongoTemplate.updateFirst(new Query(Criteria.where("id").is(id)), Update.update("nextCheckTime", colValue), Patients.class);
44 44 //为了使修改为空的时候能够同步到线上
  45 + updatePatient(findById(id), id);
  46 + }
  47 +
  48 + @Override
  49 + public void updatePatientHusbandBirth(String id, Object colValue) {
  50 + this.mongoTemplate.updateFirst(new Query(Criteria.where("id").is(id)), Update.update("husbandBirth", colValue), Patients.class);
  51 + //为了使修改为空的时候能够同步到线上
45 52 updatePatient( findById(id), id);
46 53 }
47 54  
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PatientsService.java View file @ a0ea61e
... ... @@ -65,6 +65,11 @@
65 65 }
66 66  
67 67  
  68 + public void updatePatientHusbandBirth(String id,String value) {
  69 + iPatientDao.updatePatientHusbandBirth(id,value);
  70 + }
  71 +
  72 +
68 73 public void findAndModify(PatientsQuery query, Patients obj) {
69 74 iPatientDao.findAndModify(query.convertToQuery(), obj);
70 75 }
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java View file @ a0ea61e
... ... @@ -1851,6 +1851,8 @@
1851 1851 patient.setHareaRegisterId("");
1852 1852 patient.setHstreetRegisterId("");
1853 1853 patient.setHlevelTypeId("");
  1854 + patient.setHusbandBirth(null);
  1855 + patientsService.updatePatientHusbandBirth(patient.getId(),null);
1854 1856 }
1855 1857 else
1856 1858 {