zuoxiao
5 天以前 cc21e79cd80345b97cc899ddff02c962d4f432fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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);
}