Commit 511aed064023b4c083c52f4a3018832b62fca3a5
1 parent
5da3b6d10b
Exists in
master
and in
1 other branch
增加字段
Showing 2 changed files with 9 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PostReviewController.java
View file @
511aed0
1 | 1 | package com.lyms.platform.operate.web.controller; |
2 | 2 | |
3 | +import com.lyms.platform.common.annotation.TokenRequired; | |
3 | 4 | import com.lyms.platform.common.base.BaseController; |
5 | +import com.lyms.platform.common.base.LoginContext; | |
4 | 6 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
5 | 7 | import com.lyms.platform.common.result.BaseResponse; |
6 | 8 | import com.lyms.platform.operate.web.facade.PostReviewFacade; |
... | ... | @@ -11,6 +13,7 @@ |
11 | 13 | import org.springframework.stereotype.Controller; |
12 | 14 | import org.springframework.web.bind.annotation.*; |
13 | 15 | |
16 | +import javax.servlet.http.HttpServletRequest; | |
14 | 17 | import javax.validation.Valid; |
15 | 18 | |
16 | 19 | /** |
... | ... | @@ -32,8 +35,10 @@ |
32 | 35 | */ |
33 | 36 | @RequestMapping(method = RequestMethod.POST,value = "/postreview") |
34 | 37 | @ResponseBody |
35 | - public BaseResponse addPostReview(@Valid @RequestBody PostReviewRequest postReviewRequest){ | |
36 | - return postReviewFacade.addPostReview(postReviewRequest); | |
38 | + @TokenRequired | |
39 | + public BaseResponse addPostReview(@Valid @RequestBody PostReviewRequest postReviewRequest,HttpServletRequest request){ | |
40 | + LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
41 | + return postReviewFacade.addPostReview(postReviewRequest,loginState.getId()); | |
37 | 42 | } |
38 | 43 | |
39 | 44 | /** |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/AntexListResult.java
View file @
511aed0
... | ... | @@ -138,11 +138,11 @@ |
138 | 138 | } |
139 | 139 | List<AntData> dataList = new ArrayList<>(); |
140 | 140 | if(null!=antExChuModel){ |
141 | - dataList.add(new AntData(antExChuModel)); | |
141 | + dataList.add(new AntData(antExChuModel,"")); | |
142 | 142 | } |
143 | 143 | if(CollectionUtils.isNotEmpty(destModel)){ |
144 | 144 | for(AntenatalExaminationModel model:destModel){ |
145 | - dataList.add(new AntData(model)); | |
145 | + dataList.add(new AntData(model,"")); | |
146 | 146 | } |
147 | 147 | } |
148 | 148 | setData(dataList); |