Commit 662fe8b531ca68c2d47704a89b011f0f8f297403
1 parent
714fe7120a
Exists in
master
and in
2 other branches
威县统计功能开发
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/WxStatisticsController.java
View file @
662fe8b
... | ... | @@ -27,13 +27,13 @@ |
27 | 27 | |
28 | 28 | @Autowired |
29 | 29 | WxStatisticsService wxStatisticsService; |
30 | - //@TokenRequired | |
30 | + @TokenRequired | |
31 | 31 | @ResponseBody |
32 | 32 | @RequestMapping(value = "/zhuifang", method = RequestMethod.GET) |
33 | 33 | public BaseResponse statistics(HttpServletRequest httpServletRequest, Integer type, String startDate, String endDate){ |
34 | 34 | BaseResponse baseResponse = new BaseResponse(); |
35 | 35 | baseResponse.setErrorcode(ErrorCodeConstants.SUCCESS); |
36 | - Integer userId = 1000000185;//((LoginContext) httpServletRequest.getAttribute("loginContext")).getId(); | |
36 | + Integer userId = ((LoginContext) httpServletRequest.getAttribute("loginContext")).getId(); | |
37 | 37 | Map<String,String> map = new HashMap<>(); |
38 | 38 | if(type == 1){ |
39 | 39 | map =wxStatisticsService.postReviewStatistic(startDate,endDate,userId); |