|  |  | 
 |  |  | import org.apache.dubbo.common.utils.PojoUtils; | 
 |  |  | import org.springframework.stereotype.Service; | 
 |  |  |  | 
 |  |  | import java.time.LocalDate; | 
 |  |  | import java.time.LocalDateTime; | 
 |  |  | import java.util.List; | 
 |  |  | import java.util.Map; | 
 |  |  |  | 
 |  |  | 
 |  |  |     public QueryResultVo<List<VoOpenCloseValve>> getOpenCloseValveReports_history(OpenCloseValveQO qo) { | 
 |  |  |         String timeStart_open = qo.getTimeStart_open(); | 
 |  |  |         String timeStop_open = qo.getTimeStop_open(); | 
 |  |  |         if(timeStart_open != null) { | 
 |  |  |         if(timeStart_open != null && timeStart_open != "") { | 
 |  |  |             timeStart_open = timeStart_open + " 00:00:00"; | 
 |  |  |             qo.setTimeStop_open(timeStart_open); | 
 |  |  |         } else { | 
 |  |  |             timeStart_open = LocalDate.now() + " 00:00:00"; | 
 |  |  |         } | 
 |  |  |         if(timeStop_open != null) { | 
 |  |  |         qo.setTimeStop_open(timeStart_open); | 
 |  |  |  | 
 |  |  |         if(timeStop_open != null && timeStop_open != "") { | 
 |  |  |             timeStop_open = timeStop_open + " 23:59:59"; | 
 |  |  |             qo.setTimeStop_open(timeStop_open); | 
 |  |  |         }else { | 
 |  |  |             timeStop_open = LocalDate.now() + " 23:59:59"; | 
 |  |  |         } | 
 |  |  |         qo.setTimeStop_open(timeStop_open); | 
 |  |  |  | 
 |  |  |         String timeStart_close = qo.getTimeStart_close(); | 
 |  |  |         String timeStop_close = qo.getTimeStop_close(); | 
 |  |  |         if(timeStart_close != null) { | 
 |  |  |         if(timeStart_close != null && timeStart_close != "") { | 
 |  |  |             timeStart_close = timeStart_close + " 00:00:00"; | 
 |  |  |             qo.setTimeStart_close(timeStart_close); | 
 |  |  |         } else { | 
 |  |  |             timeStart_close = LocalDate.now() + " 00:00:00"; | 
 |  |  |         } | 
 |  |  |         if(timeStop_close != null) { | 
 |  |  |         qo.setTimeStart_close(timeStart_close); | 
 |  |  |  | 
 |  |  |         if(timeStop_close != null && timeStop_close != "") { | 
 |  |  |             timeStop_close = timeStop_close + " 23:59:59"; | 
 |  |  |             qo.setTimeStop_close(timeStop_close); | 
 |  |  |         }else { | 
 |  |  |             timeStop_close = LocalDate.now() + " 23:59:59"; | 
 |  |  |         } | 
 |  |  |         qo.setTimeStop_close(timeStop_close); | 
 |  |  |  | 
 |  |  |         Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(qo); | 
 |  |  |         Long itemTotal = rmOpenCloseValveHistoryMapper.getOpenCloseValveReportsCount_history(params); |