Commit 65843e0b866a81d35aac6623382bc6250864e146
1 parent
f97736644e
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 2 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BabyDeathServerImpl.java
View file @
65843e0
| ... | ... | @@ -248,8 +248,9 @@ |
| 248 | 248 | query.addCriteria(Criteria.where("cardNo").is(cardNo)); |
| 249 | 249 | } |
| 250 | 250 | BabyDeathModel model = mongoTemplate.findOne(query.with(new Sort(Sort.Direction.DESC, "created")), BabyDeathModel.class); |
| 251 | - BabyDeathModelResult result = new BabyDeathModelResult(); | |
| 251 | + BabyDeathModelResult result = null; | |
| 252 | 252 | if (model != null) { |
| 253 | + result = new BabyDeathModelResult(); | |
| 253 | 254 | getOtherStr(result, model); |
| 254 | 255 | BaseResponse baseResponse = new BaseResponse(); |
| 255 | 256 | baseResponse.setObject(result); |