Commit e5891dccd7adfc783aeef8687395c51b0ef7ce34
1 parent
14d587ea33
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 5 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyNutritionFacade.java
View file @
e5891dc
... | ... | @@ -152,8 +152,11 @@ |
152 | 152 | model.setCreated(new Date()); |
153 | 153 | babyNutritionService.addBabyNutrition(model); |
154 | 154 | } |
155 | - | |
156 | - return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); | |
155 | + BaseResponse baseResponse = new BaseResponse(); | |
156 | + baseResponse.setErrormsg("成功"); | |
157 | + baseResponse.setErrorcode(ErrorCodeConstants.SUCCESS); | |
158 | + baseResponse.setObject(model); | |
159 | + return baseResponse; | |
157 | 160 | } |
158 | 161 | |
159 | 162 | public BaseObjectResponse queryBabyNutritionById(String id) { |