Commit 81bb97c4a72c440bce06eb08c928424d91e90748
1 parent
712e575e0f
Exists in
master
and in
6 other branches
改同步逻辑
Showing 1 changed file with 3 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
81bb97c
... | ... | @@ -375,7 +375,9 @@ |
375 | 375 | patientWeight.setDayWeigthsJson(null); |
376 | 376 | patientWeight.setCreated(new Date(Long.parseLong(patientWeight.getCreated2()))); |
377 | 377 | patientWeight.setCreated2(null); |
378 | - mongoTemplate.save(patientWeight); | |
378 | + if(StringUtils.isNotEmpty(patientWeight.getId())) { | |
379 | + mongoTemplate.save(patientWeight); | |
380 | + } | |
379 | 381 | return RespBuilder.buildSuccess(patientWeight.getId()); |
380 | 382 | } |
381 | 383 |