Commit df94e7cf86caec6a8b9b5ffad09669f35e52bdf0
1 parent
771397a12e
Exists in
dev
#fix:优化儿童保健已经反馈管理功能
Showing 1 changed file with 5 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/FeedbackController.java
View file @
df94e7c
1 | 1 | package com.lyms.platform.operate.web.controller; |
2 | 2 | |
3 | 3 | import com.lyms.platform.common.annotation.TokenRequired; |
4 | +import com.lyms.platform.common.base.BaseController; | |
4 | 5 | import com.lyms.platform.common.base.LoginContext; |
5 | 6 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
6 | 7 | import com.lyms.platform.common.result.BaseResponse; |
7 | 8 | |
... | ... | @@ -9,13 +10,14 @@ |
9 | 10 | import com.lyms.platform.pojo.BabyFeedbackModel; |
10 | 11 | import org.springframework.beans.factory.annotation.Autowired; |
11 | 12 | import org.springframework.stereotype.Controller; |
13 | +import org.springframework.util.Assert; | |
12 | 14 | import org.springframework.web.bind.annotation.*; |
13 | 15 | |
14 | 16 | import javax.servlet.http.HttpServletRequest; |
15 | 17 | |
16 | 18 | @Controller |
17 | 19 | @RequestMapping("/baby/feedback") |
18 | -public class FeedbackController { | |
20 | +public class FeedbackController extends BaseController { | |
19 | 21 | @Autowired |
20 | 22 | private FeedbackFacade feedbackFacade; |
21 | 23 | |
22 | 24 | |
... | ... | @@ -46,12 +48,11 @@ |
46 | 48 | Integer type, |
47 | 49 | String startTime,String endTime, |
48 | 50 | HttpServletRequest request) { |
49 | - LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
50 | - return feedbackFacade.getPageList(page,limit,type,startTime,endTime,loginState.getId()); | |
51 | + return feedbackFacade.getPageList(page,limit,type,startTime,endTime,getUserId(request)); | |
51 | 52 | } |
52 | 53 | |
53 | 54 | /* |
54 | - * 编辑消息 | |
55 | + * 编辑 | |
55 | 56 | * */ |
56 | 57 | @RequestMapping(method = RequestMethod.POST, value = "/update") |
57 | 58 | @ResponseBody |