| | |
| | | import com.dy.common.webUtil.BaseResponse; |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pipIrrGlobal.voSt.VoDayIntakeAmount; |
| | | import com.dy.pipIrrGlobal.voSt.VoStClientAmountDay; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * @Date: 2024/12/30 15:22 |
| | | * @Description |
| | | */ |
| | | |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping(path="stClient") |
| | |
| | | this.sv = sv ; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询指定年月农户各日用水量 |
| | | * @param qo |
| | |
| | | */ |
| | | @GetMapping(path = "/amountOfDay") |
| | | @SsoAop() |
| | | public BaseResponse<QueryResultVo<List<VoDayIntakeAmount>>> amountOfDay(StClientQo qo) throws Exception { |
| | | public BaseResponse<QueryResultVo<List<VoStClientAmountDay>>> amountOfDay(StClientQo qo) throws Exception { |
| | | String yearMonth = qo.getYearMonth(); |
| | | if(yearMonth == null || yearMonth.trim().equals("")) { |
| | | return BaseResponseUtils.buildErrorMsg("查询条件年月不能为空"); |
| | | } |
| | | |
| | | int[] ymd = DateTime.yyyy_MM_ymdGroup(yearMonth) ; |
| | | qo.year = ymd[0] ; |
| | | qo.month = ymd[1] ; |
| | | |
| | | return BaseResponseUtils.buildSuccess(this.sv.selectStClientAmountDay(qo)); |
| | | } |
| | | } |