叶松
2023-11-21 a1ddf5116492be4a0e0bf597683aa01ec14977b3
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
package com.thhy.secure.modules.biz.regionInspection.mapper;
 
import com.thhy.secure.modules.biz.regionInspection.entity.RegionInspectionEntity;
import com.thhy.secure.modules.biz.regionInspection.entity.RegionInspectionRecordEntity;
import com.thhy.secure.modules.biz.regionInspection.entity.RegionInspectionRecordImgEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * @Author QiuYuHao
 * @CreateDate 2023-11-17 13:00:08
 * 打卡记录mapper
 */
@Mapper
public interface RegionInspectionRecordMapper {
 
    //app提交打卡
    void insert(RegionInspectionRecordEntity regionInspectionEntity);
 
    //删除打卡记录
    void delete(String id);
    //根据任务id删除记录
    void deleteByRegionInspectionId(String regionInspectionId);
    //任务打卡web端查询列表 或者 判断主任务完成未完成的标准
    List<RegionInspectionRecordEntity> selectPageList(Map map);
    Integer selectCount(Map map);
    //通过任务id查询打卡详情#{regionInspectionId} and b.user_id = #{userId}
    RegionInspectionEntity selectInfo(
            @Param("regionInspectionId") String regionInspectionId,
            @Param("userId") String userId);
 
 
    //获取web端任务打卡列表查询详情的区域详情
    RegionInspectionRecordEntity regionInfo(
            @Param("regionInspectionId") String regionInspectionId,
            @Param("userId") String userId,
            @Param("regionHazardInformId")String regionHazardInformId);
 
    void insertIMG(RegionInspectionRecordImgEntity regionInspectionRecordImgEntity);
 
    //小程序巡检打卡列表
    List<Map> selectAppList(Map map);
}