From ce0a43c01a6f7bb9e5e2ab09cb1217723cee48dd Mon Sep 17 00:00:00 2001 From: liquanyu Date: Mon, 20 Aug 2018 11:00:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=82=B2=E9=BE=84=E6=9C=8D=E5=8A=A1=E7=94=9F?= =?UTF-8?q?=E5=AD=A9=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operate/web/controller/MatDeliverController.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java index 9fa670f..a5d139b 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java @@ -365,11 +365,11 @@ public class MatDeliverController extends BaseController{ @ResponseBody @RequestMapping(value = "getChildbearAgeCount", method = RequestMethod.GET) public BaseObjectResponse getChildbearAgeCount(HttpServletRequest request, - @RequestParam String birth, - @RequestParam String hospitalId, - @RequestParam String proviceId, - @RequestParam String cityId, - @RequestParam String areaId) { + @RequestParam(required = false) String birth, + @RequestParam(required = false) String hospitalId, + @RequestParam(required = false) String proviceId, + @RequestParam(required = false) String cityId, + @RequestParam(required = false) String areaId) { LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); return matDeliverFacade.getChildbearAgeCount(birth,loginState.getId(),hospitalId,proviceId,cityId,areaId); } @@ -384,11 +384,11 @@ public class MatDeliverController extends BaseController{ @ResponseBody @RequestMapping(value = "exportChildbearAgeCount", method = RequestMethod.GET) public void exportChildbearAgeCount(HttpServletRequest request, - @RequestParam String birth, - @RequestParam String hospitalId, - @RequestParam String proviceId, - @RequestParam String cityId, - @RequestParam String areaId, + @RequestParam(required = false) String birth, + @RequestParam(required = false) String hospitalId, + @RequestParam(required = false) String proviceId, + @RequestParam(required = false) String cityId, + @RequestParam(required = false) String areaId, HttpServletResponse httpServletResponse) { LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); matDeliverFacade.exportChildbearAgeCount(birth, loginState.getId(), hospitalId, proviceId, cityId, areaId, httpServletResponse); -- 1.8.3.1