Commit a130e6bc5624eadf13483e931e6fa3b41ee77daf

Authored by zhangchao
1 parent efd4679865
Exists in dev

#fix:优化血糖报告打印问题

Showing 4 changed files with 11 additions and 3 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/IBloodSugarDao.java View file @ a130e6b
... ... @@ -18,5 +18,7 @@
18 18 int queryBloodSugarListCount(MongoQuery mongoQuery);
19 19  
20 20 List<BloodSugar> queryBloodSugarList(MongoQuery mongoQuery);
  21 +
  22 + BloodSugar findOneById(String id);
21 23 }
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/dal/impl/BloodSugarDaoImpl.java View file @ a130e6b
... ... @@ -32,5 +32,10 @@
32 32 return find(mongoQuery.convertToMongoQuery());
33 33 }
34 34  
  35 + @Override
  36 + public BloodSugar findOneById(String id) {
  37 + return findById(id);
  38 + }
  39 +
35 40 }
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/BloodSugarService.java View file @ a130e6b
... ... @@ -54,6 +54,8 @@
54 54 return Double.parseDouble(bloodSugar) > 6.7D ? 3 : Double.parseDouble(bloodSugar) < 4.4D ? 2 : 1;
55 55 }
56 56 }
57   -
  57 + public BloodSugar findOneById(String id) {
  58 + return bloodSugarDao.findOneById(id);
  59 + }
58 60 }
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java View file @ a130e6b
... ... @@ -4233,8 +4233,7 @@
4233 4233 patientWeightService2.update(Query.query(Criteria.where("id").is(id)),patientWeight );
4234 4234 break;
4235 4235 case 2:
4236   - BloodSugar bloodSugar=new BloodSugar();
4237   - bloodSugar.setId(id);
  4236 + BloodSugar bloodSugar=bloodSugarService.findOneById(id);
4238 4237 bloodSugar.setIsPrint(1);
4239 4238 bloodSugarService.update(bloodSugar);
4240 4239 break;