| | |
| | | package com.dy.pipIrrRemote.report; |
| | | |
| | | import com.dy.common.mw.protocol.p206V1_0_0.CommonV1_0_1; |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pipIrrGlobal.daoRm.*; |
| | | import com.dy.pipIrrGlobal.voRm.VoOnHour; |
| | |
| | | if(timeStart_open != null && timeStart_open != "") { |
| | | timeStart_open = timeStart_open + " 00:00:00"; |
| | | } else { |
| | | timeStart_open = LocalDateTime.of(2024, 1, 1, 0, 0, 0).toString(); |
| | | timeStart_open = LocalDateTime.now().minusDays(30) + " 00:00:00"; |
| | | } |
| | | qo.setTimeStop_open(timeStart_open); |
| | | qo.setTimeStart_open(timeStart_open); |
| | | |
| | | if(timeStop_open != null && timeStop_open != "") { |
| | | timeStop_open = timeStop_open + " 23:59:59"; |
| | |
| | | if(timeStart_close != null && timeStart_close != "") { |
| | | timeStart_close = timeStart_close + " 00:00:00"; |
| | | } else { |
| | | timeStart_close = LocalDateTime.of(2024, 1, 1, 0, 0, 0).toString(); |
| | | timeStart_close = LocalDate.now().minusDays(30) + " 00:00:00"; |
| | | } |
| | | qo.setTimeStart_close(timeStart_close); |
| | | |
| | |
| | | rsVo.pageCurr = qo.pageCurr ; |
| | | |
| | | rsVo.calculateAndSet(itemTotal, params); |
| | | rsVo.obj = rmOpenCloseValveHistoryMapper.getOpenCloseValveReports_history(params); |
| | | List<VoOpenCloseValve> list = rmOpenCloseValveHistoryMapper.getOpenCloseValveReports_history(params); |
| | | if (list != null && list.size() > 0) { |
| | | for (VoOpenCloseValve vo : list) { |
| | | vo.setOpenType(CommonV1_0_1.openCloseValveType(vo.getOpenType_()==null?(byte)100:vo.getOpenType_())); |
| | | vo.setCloseType(CommonV1_0_1.openCloseValveType(vo.getCloseType_()==null?(byte)100:vo.getCloseType_())); |
| | | } |
| | | } |
| | | rsVo.obj = list; |
| | | return rsVo ; |
| | | } |
| | | |
| | |
| | | String timeStop_open = qo.getTimeStop_open(); |
| | | if(timeStart_open != null) { |
| | | timeStart_open = timeStart_open + " 00:00:00"; |
| | | qo.setTimeStop_open(timeStart_open); |
| | | qo.setTimeStart_open(timeStart_open); |
| | | } |
| | | if(timeStop_open != null) { |
| | | timeStop_open = timeStop_open + " 23:59:59"; |
| | |
| | | rsVo.pageCurr = qo.pageCurr ; |
| | | |
| | | rsVo.calculateAndSet(itemTotal, params); |
| | | rsVo.obj = rmOpenCloseValveLastMapper.getOpenCloseValveReports_last(params); |
| | | List<VoOpenCloseValve> list = rmOpenCloseValveLastMapper.getOpenCloseValveReports_last(params); |
| | | if (list != null && list.size() > 0) { |
| | | for (VoOpenCloseValve vo : list) { |
| | | vo.setOpenType(CommonV1_0_1.openCloseValveType(vo.getOpenType_()==null?(byte)100:vo.getOpenType_())); |
| | | vo.setCloseType(CommonV1_0_1.openCloseValveType(vo.getCloseType_()==null?(byte)100:vo.getCloseType_())); |
| | | } |
| | | } |
| | | rsVo.obj = list; |
| | | return rsVo ; |
| | | } |
| | | |