Commit 6715306f148627f68175581395ac5f507010708a
1 parent
169ebc1af5
Exists in
master
and in
6 other branches
测量
Showing 1 changed file with 25 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MeasureInfoFacade.java
View file @
6715306
... | ... | @@ -1048,6 +1048,31 @@ |
1048 | 1048 | |
1049 | 1049 | BaseObjectResponse objectResponse = new BaseObjectResponse(); |
1050 | 1050 | BloodSugar one = mongoTemplate.findOne(Query.query(Criteria.where("pid").is(mongoUtil.getPid(bloodSugar.getParentId())).and("created").gt(DateUtil.getYMDTime()).and("bloodSugarType").is(bloodSugar.getBloodSugarType())), BloodSugar.class); |
1051 | + | |
1052 | + Patients patients = patientsService.findOnePatientById(bloodSugar.getParentId()); | |
1053 | + | |
1054 | + | |
1055 | + MeasureInfoRequest measureInfoRequest = new MeasureInfoRequest(); | |
1056 | + measureInfoRequest.setCertNo(patients.getCardNo()); | |
1057 | + measureInfoRequest.setCertType(patients.getPcerteTypeId()); | |
1058 | + measureInfoRequest.setVcCardNo(patients.getVcCardNo()); | |
1059 | + measureInfoRequest.setHospitalId(bloodSugar.getHospitalId()); | |
1060 | + measureInfoRequest.setPhone(patients.getPhone()); | |
1061 | + measureInfoRequest.setSex(0); | |
1062 | + measureInfoRequest.setUserName(patients.getUsername()); | |
1063 | + measureInfoRequest.setAge(DateUtil.getAge(patients.getBirth()) + ""); | |
1064 | + addMeasureUserInfo(measureInfoRequest); | |
1065 | + | |
1066 | + MeasureInfoRequest request = new MeasureInfoRequest(); | |
1067 | + request.setCertNo(patients.getCardNo()); | |
1068 | + request.setCertType(patients.getPcerteTypeId()); | |
1069 | + request.setHospitalId(bloodSugar.getHospitalId()); | |
1070 | + request.setValueType(4);//血糖 | |
1071 | + request.setValueOne(bloodSugar.getBloodSugar()); | |
1072 | + request.setRemarkValue(bloodSugar.getBloodSugarType() + ""); | |
1073 | + | |
1074 | + addToDataInfo(request); | |
1075 | + | |
1051 | 1076 | if(one != null) { |
1052 | 1077 | one.setModified(new Date()); |
1053 | 1078 | one.setBloodSugar(bloodSugar.getBloodSugar()); |