TInspectionDataMapper.java 1.97 KB
Newer Older
1 2
package com.zehong.system.mapper;

3
import java.util.List;
4

5
import com.zehong.system.domain.TInspectionData;
6
import org.apache.ibatis.annotations.Param;
7

8 9 10 11
/**
 * 巡检记录Mapper接口
 * 
 * @author zehong
12
 * @date 2021-07-21
13 14 15 16 17 18 19 20 21
 */
public interface TInspectionDataMapper 
{
    /**
     * 查询巡检记录
     * 
     * @param dataId 巡检记录ID
     * @return 巡检记录
     */
22 23
    public TInspectionData selectTInspectionDataById(int dataId);

王晓倩's avatar
王晓倩 committed
24 25 26
    /**
     * 查询巡检记录
     *
27 28
     * @param planId
     * @param deviceId
王晓倩's avatar
王晓倩 committed
29 30
     * @return 巡检记录
     */
31
    public TInspectionData selectTInspectionDataByDeviceId(@Param("planId")int planId, @Param("deviceId")int deviceId);
王晓倩's avatar
王晓倩 committed
32

33 34 35 36 37 38 39
    /**
     * 查询巡检记录
     *
     * @param planId 巡检计划ID
     * @return 完成的巡检记录数量
     */
    public int selectFinishTInspectionData(int planId);
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 69 70

    /**
     * 查询巡检记录列表
     * 
     * @param tInspectionData 巡检记录
     * @return 巡检记录集合
     */
    public List<TInspectionData> selectTInspectionDataList(TInspectionData tInspectionData);

    /**
     * 新增巡检记录
     * 
     * @param tInspectionData 巡检记录
     * @return 结果
     */
    public int insertTInspectionData(TInspectionData tInspectionData);

    /**
     * 修改巡检记录
     * 
     * @param tInspectionData 巡检记录
     * @return 结果
     */
    public int updateTInspectionData(TInspectionData tInspectionData);

    /**
     * 删除巡检记录
     * 
     * @param dataId 巡检记录ID
     * @return 结果
     */
71
    public int deleteTInspectionDataById(int dataId);
72

73 74 75 76 77 78 79 80
    /**
     * 根据巡检计划id删除巡检记录
     *
     * @param planId 巡检计划ID
     * @return 结果
     */
    public int deleteTInspectionDataByPlanId(int planId);

81 82 83 84 85 86
    /**
     * 批量删除巡检记录
     * 
     * @param dataIds 需要删除的数据ID
     * @return 结果
     */
87
    public int deleteTInspectionDataByIds(int[] dataIds);
88
}