| | |
| | | */ |
| | | @GetMapping(path = "/getNotOnlineIntakes") |
| | | @SsoAop() |
| | | public BaseResponse<QueryResultVo<List<VoIntake>>> getNotOnlineIntakes(@Valid CommonQO qo, BindingResult bindingResult) throws Exception { |
| | | public BaseResponse<QueryResultVo<List<VoIntake>>> getNotOnlineIntakes(@Valid CommonQO qo, BindingResult bindingResult) { |
| | | if(bindingResult != null && bindingResult.hasErrors()){ |
| | | return BaseResponseUtils.buildErrorMsg(Objects.requireNonNull(bindingResult.getFieldError()).getDefaultMessage()); |
| | | } |
| | |
| | | */ |
| | | @GetMapping(path = "/getUnReportedIntakes") |
| | | @SsoAop() |
| | | public BaseResponse<QueryResultVo<List<VoIntakeUnReported>>> getUnReportedIntakes(CommonQO qo) { |
| | | public BaseResponse<QueryResultVo<List<VoIntakeUnReported>>> getUnReportedIntakes(@Valid CommonQO qo, BindingResult bindingResult) { |
| | | if(bindingResult != null && bindingResult.hasErrors()){ |
| | | return BaseResponseUtils.buildErrorMsg(Objects.requireNonNull(bindingResult.getFieldError()).getDefaultMessage()); |
| | | } |
| | | String timeStart = qo.getTimeStart(); |
| | | if(timeStart != null && !timeStart.trim().equals("")) { |
| | | qo.setTimeStart(timeStart + " 00:00:00") ; |
| | | } |
| | | try { |
| | | QueryResultVo<List<VoIntakeUnReported>> res = intakeSv.getUnReportedIntakes(qo); |
| | | return BaseResponseUtils.buildSuccess(res); |