| package com.dy.pipIrrGlobal.daoOp; | 
|   | 
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
| import com.dy.pipIrrGlobal.pojoOp.OpeInspect; | 
| import com.dy.pipIrrGlobal.voOp.VoInspect; | 
| import org.apache.ibatis.annotations.Mapper; | 
| import org.apache.ibatis.annotations.Param; | 
|   | 
| import java.util.List; | 
| import java.util.Map; | 
|   | 
| /** | 
|  * @author ZhuBaoMin | 
|  * @date 2024-09-24 10:07 | 
|  * @LastEditTime 2025-02-17 15:11 | 
|  * @Description | 
|  */ | 
|   | 
| @Mapper | 
| public interface OpeInspectMapper extends BaseMapper<OpeInspect> { | 
|     int deleteByPrimaryKey(Long id); | 
|   | 
|     int insert(OpeInspect record); | 
|   | 
|     int insertSelective(OpeInspect record); | 
|   | 
|     OpeInspect selectByPrimaryKey(Long id); | 
|   | 
|     int updateByPrimaryKeySelective(OpeInspect record); | 
|   | 
|     int updateByPrimaryKey(OpeInspect record); | 
|   | 
|     /** | 
|      * 巡检查询 | 
|      * @param params | 
|      * @return | 
|      */ | 
|     Long getInspectsCount(Map<String, Object> params); | 
|   | 
|     /** | 
|      * 巡检查询 | 
|      * @param params | 
|      * @return | 
|      */ | 
|     List<VoInspect> getInspects(Map<String, Object> params); | 
|   | 
|     /** | 
|      * 更新指定巡检记录的巡检距离 | 
|      * @param inspectId | 
|      * @param distance | 
|      * @return | 
|      */ | 
|     int updateInspectDistance(@Param("inspectId") Long inspectId, @Param("distance")Double distance ); | 
|   | 
|     /** | 
|      * 根据巡检员ID获取巡检记录数量 | 
|      * @param params | 
|      * @return | 
|      */ | 
|     Long getInstectsCountByInspectorId(Map<?, ?> params); | 
|   | 
|     /** | 
|      * 根据巡检员ID获取巡检列表 | 
|      * @param params | 
|      * @return | 
|      */ | 
|     List<VoInspect> getInstectsByInspectorId(Map<?, ?> params); | 
| } |