| | |
| | | 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; |
| | | } |
| | | } |