Commit 744be0397b852fc2b71fe768783ab90f1ac9d3cd
1 parent
731b3596b6
Exists in
master
and in
1 other branch
New changelist
Showing 1 changed file with 3 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/FolicAcidController.java
View file @
744be03
... | ... | @@ -42,7 +42,7 @@ |
42 | 42 | //获取单个发放记录 |
43 | 43 | @RequestMapping(value = "/getFolicAcid", method = RequestMethod.GET) |
44 | 44 | @ResponseBody |
45 | - @TokenRequired | |
45 | +// @TokenRequired | |
46 | 46 | public BaseObjectResponse getFolicAcid(@Valid FolicAcidQueryRequest folicAcidQueryRequest, |
47 | 47 | HttpServletRequest request) { |
48 | 48 | return folicAcidFacade.getFolicAcid(folicAcidQueryRequest); |
... | ... | @@ -54,7 +54,8 @@ |
54 | 54 | @TokenRequired |
55 | 55 | public BaseListResponse queryFolicAcid(@Valid FolicAcidQueryRequest folicAcidQueryRequest, |
56 | 56 | HttpServletRequest request) { |
57 | - return folicAcidFacade.queryFolicAcid(folicAcidQueryRequest); | |
57 | + LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
58 | + return folicAcidFacade.queryFolicAcid(folicAcidQueryRequest,loginState.getId()); | |
58 | 59 | } |
59 | 60 | |
60 | 61 | //删除叶酸发放记录 |