Commit acfcad37cef44d0817519ba53d2a2cb2cc7349a8
1 parent
33de293d98
Exists in
master
and in
6 other branches
改app的曲线返回
Showing 1 changed file with 1 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
acfcad3
... | ... | @@ -288,7 +288,7 @@ |
288 | 288 | if(StringUtils.isEmpty(patientWeight.getId()) && patients != null) { |
289 | 289 | patientWeight.setCreated(new Date()); |
290 | 290 | patientWeight.setHospitalId(patients.getHospitalId()); |
291 | - if(StringUtils.isNotBlank(patientWeight.getPatientId())) { | |
291 | + if(StringUtils.isNotBlank(patientWeight.getPatientId()) && StringUtils.isNotEmpty(patientWeight.getNowWeight())) { | |
292 | 292 | weights.put(DateUtil.getWeek(patients.getLastMenses(), new Date()), nowWeight); |
293 | 293 | patientWeight.setWeights(weights); |
294 | 294 | } |