Commit 75cea31f52e90089c268dea465890a85b029a6ab
Exists in
master
and in
6 other branches
Merge remote-tracking branch 'origin/master'
Showing 1 changed file
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyNutritionFacade.java
View file @
75cea31
... | ... | @@ -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) { |