| | |
| | | //完善查询充值记录的起止时间 |
| | | String timeStart = queryVo.getTimeStart(); |
| | | String timeStop = queryVo.getTimeStop(); |
| | | if (timeStart != null && timeStart != "") { |
| | | |
| | | if (timeStart == null || timeStart == "" || timeStop == null || timeStop == "") { |
| | | queryVo.setTimeStart(null); |
| | | queryVo.setTimeStop(null); |
| | | } else { |
| | | timeStart = timeStart + " 00:00:00"; |
| | | queryVo.setTimeStart(timeStart); |
| | | } |
| | | if (timeStop != null && timeStop != "") { |
| | | timeStop = timeStop + " 23:59:59"; |
| | | queryVo.setTimeStop(timeStop); |
| | | } |
| | |
| | | public int updateInspectDistance(Long inspectId, double distance ) { |
| | | return opeInspectMapper.updateInspectDistance(inspectId, distance); |
| | | } |
| | | |
| | | /** |
| | | * 根据巡检员ID获取巡检列表 |
| | | * @param queryVo |
| | | * @return |
| | | */ |
| | | public QueryResultVo<List<VoInspect>> getInstectsByInspectorId(QoInspect queryVo) { |
| | | Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(queryVo); |
| | | |
| | | Long itemTotal = opeInspectMapper.getInstectsCountByInspectorId(params); |
| | | |
| | | QueryResultVo<List<VoInspect>> rsVo = new QueryResultVo<>(); |
| | | rsVo.pageSize = queryVo.pageSize; |
| | | rsVo.pageCurr = queryVo.pageCurr; |
| | | |
| | | rsVo.calculateAndSet(itemTotal, params); |
| | | rsVo.obj = opeInspectMapper.getInstectsByInspectorId(params); |
| | | return rsVo; |
| | | } |
| | | } |