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);