Commit 36a3a564ea14e3424fc22c43241900fe4e63bb63

Authored by liquanyu
1 parent bbc7be0a4b

同步数据

Showing 4 changed files with 7 additions and 6 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/IPatientDao.java View file @ 36a3a56
... ... @@ -31,6 +31,6 @@
31 31  
32 32 void findAndModify(MongoQuery query,Patients obj);
33 33  
34   - void updatePatientOneCol(String id, String colName, Object colValue);
  34 + void updatePatientOneCol(String id, Object colValue);
35 35 }
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/PatientDaoImpl.java View file @ 36a3a56
... ... @@ -38,8 +38,8 @@
38 38 }
39 39  
40 40 @Override
41   - public void updatePatientOneCol(String id, String colName, Object colValue) {
42   - this.mongoTemplate.updateFirst(new Query(Criteria.where("id").is(id)), Update.update(colName, colValue), Patients.class);
  41 + public void updatePatientOneCol(String id, Object colValue) {
  42 + this.mongoTemplate.updateFirst(new Query(Criteria.where("id").is(id)), Update.update("nextCheckTime", colValue), Patients.class);
43 43 }
44 44  
45 45 @Override
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/PatientsService.java View file @ 36a3a56
... ... @@ -101,9 +101,9 @@
101 101 return iPatientDao.getPatient(id);
102 102 }
103 103  
104   - public void updatePatientOneCol(String id,String colName,Object colValue)
  104 + public void updatePatientOneCol(String id,Object colValue)
105 105 {
106   - iPatientDao.updatePatientOneCol(id,colName,colValue);
  106 + iPatientDao.updatePatientOneCol(id,colValue);
107 107 }
108 108  
109 109 /**
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java View file @ 36a3a56
... ... @@ -333,7 +333,8 @@
333 333 nextTime = ae.getNextCheckTime();
334 334 }
335 335 }
336   - patientsService.updatePatientOneCol(pat.getId(), "nextCheckTime", nextTime);
  336 + patientsService.updatePatientOneCol(pat.getId(), nextTime);
  337 +
337 338 }
338 339  
339 340 }