| | |
| | | rsVo.obj = rmLossDayLastMapper.getMonthLossAmount(params); |
| | | return rsVo ; |
| | | } |
| | | |
| | | /** |
| | | * 最近未报数的取水口 |
| | | * @param qo |
| | | * @return |
| | | */ |
| | | public QueryResultVo<List<VoIntakeUnReported>> getUnReportedIntakes(CommonQO qo) { |
| | | String timeStart = qo.getTimeStart(); |
| | | String timeStop = qo.getTimeStop(); |
| | | if(timeStart == "") { |
| | | timeStart = null; |
| | | } |
| | | if(timeStop == "") { |
| | | timeStop = null; |
| | | } |
| | | if(timeStart != null && timeStart != "") { |
| | | timeStart = timeStart + " 00:00:00"; |
| | | } |
| | | qo.setTimeStart(timeStart); |
| | | |
| | | if(timeStop != null && timeStop != "") { |
| | | timeStop = timeStop + " 23:59:59"; |
| | | } |
| | | qo.setTimeStop(timeStop); |
| | | |
| | | |
| | | Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(qo); |
| | | Long itemTotal = rmOnHourReportLastMapper.getUnReportedIntakesCount(params); |
| | | |
| | | QueryResultVo<List<VoIntakeUnReported>> rsVo = new QueryResultVo<>() ; |
| | | rsVo.pageSize = qo.pageSize ; |
| | | rsVo.pageCurr = qo.pageCurr ; |
| | | |
| | | rsVo.calculateAndSet(itemTotal, params); |
| | | rsVo.obj = rmOnHourReportLastMapper.getUnReportedIntakes(params); |
| | | return rsVo ; |
| | | } |
| | | } |