Commit 9aec99c838ba69893f8cd5ec7c0df4ee0db4a22b
1 parent
1b97459527
Exists in
master
and in
6 other branches
血糖报告
Showing 1 changed file with 8 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodSugarServiceImpl.java
View file @
9aec99c
| ... | ... | @@ -953,6 +953,14 @@ |
| 953 | 953 | |
| 954 | 954 | |
| 955 | 955 | PatientWeight patientWeight = mongoTemplate.findOne(Query.query(Criteria.where("patientId").is(patientId)), PatientWeight.class); |
| 956 | + | |
| 957 | + if (patientWeight == null) | |
| 958 | + { | |
| 959 | + resp.setErrorcode(ResponseCode.DATA_ERROR.getCode()); | |
| 960 | + resp.setErrormsg("没有体重测量记录"); | |
| 961 | + return resp; | |
| 962 | + } | |
| 963 | + | |
| 956 | 964 | Map<String, String> dayWeights = patientWeight.getDayWeights(); |
| 957 | 965 | |
| 958 | 966 | //当天没有体重测量 |