From 63bbbb38c0bf78089bb5ae08e07652e502f9771b Mon Sep 17 00:00:00 2001 From: gengxiaokai Date: Wed, 19 Sep 2018 09:19:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=AD=9B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/operate/web/controller/BabySieveController.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabySieveController.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabySieveController.java index ad103a5..9cf489a 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabySieveController.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabySieveController.java @@ -35,6 +35,7 @@ public class BabySieveController extends BaseController{ * @param request * @return */ + @TokenRequired @ResponseBody @RequestMapping(value = "/queryBabySieve",method = RequestMethod.GET) public BaseResponse querySieve(@RequestParam(required = false)String cardNo,@RequestParam(required = false)String vcCardNo,HttpServletRequest request) { @@ -50,6 +51,7 @@ public class BabySieveController extends BaseController{ * @param babySieveAddRequest * @return */ + @TokenRequired @ResponseBody @RequestMapping(value = "/AddbabySieve",method = RequestMethod.POST) public BaseResponse addOneSieve(@RequestBody @Valid BabySieveAddRequest babySieveAddRequest,HttpServletRequest request) { @@ -83,11 +85,12 @@ public class BabySieveController extends BaseController{ * @param babySieveAddRequest * @return */ + @TokenRequired @ResponseBody @RequestMapping(value = "/babySieveList",method = RequestMethod.GET) public BaseResponse babySieveList(BabySieveAddRequest babySieveAddRequest,HttpServletRequest request) { - //babySieveAddRequest.setOperatorId(((LoginContext) request.getAttribute("loginContext")).getId()); - babySieveAddRequest.setOperatorId(1000000185); + babySieveAddRequest.setOperatorId(((LoginContext) request.getAttribute("loginContext")).getId()); + //babySieveAddRequest.setOperatorId(1000000185); return babySieveFacede.queryBabySieveList(babySieveAddRequest); } @@ -108,6 +111,7 @@ public class BabySieveController extends BaseController{ * @param id * @return */ + @TokenRequired @ResponseBody @RequestMapping(value = "/updateSieveStatus",method = RequestMethod.GET) public List updateSieveStatus(String id,HttpServletRequest request) { @@ -132,6 +136,7 @@ public class BabySieveController extends BaseController{ * @param babySieveAddRequest * @return */ + @TokenRequired @ResponseBody @RequestMapping(value = "/babySieveLab",method = RequestMethod.GET) public BaseResponse babySieveLab(BabySieveAddRequest babySieveAddRequest,HttpServletRequest request) { -- 1.8.3.1