广州市综治平台后端
xusd
2 days ago c490640493f04e2ed0fc5c4c8fbc92ebdd4d5380
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package cn.huge.module.cases.dao.mapper;
 
import cn.huge.module.cases.domain.dto.FrontPageListDTO;
import cn.huge.module.cases.domain.po.CaseSupervise;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Repository;
 
import java.util.List;
import java.util.Map;
 
/**
* @title: 纠纷督办信息表持久层业务处理
* @Description 此处仅涉及复杂SQL操作,务必不要在此再次写单表的CRUD操作,因为mybatisPlus已经实现。
* @company: hugeinfo
* @author: wangwh
* @time: 2024-09-03 10:53:01
* @version 1.0.0
*/
@Repository
public interface CaseSuperviseMapper extends BaseMapper<CaseSupervise>{
 
    /**
    * 更新对象
    * @param entity 对象
    */
    void updateCaseSupervise(@Param("entity") CaseSupervise entity);
 
    /**
    * 条件更新对象
    * @param entity 对象
    * @param terms 条件
    */
    void updateCaseSuperviseTerms(@Param("entity") CaseSupervise entity, @Param("terms") Map<String, Object> terms);
 
    /**
    * 根据编号物理删除
    * @param id 查询条件集合
    */
    void deleteCaseSupervise(@Param("id") String id);
 
    /**
    * 按条件查询结果集
    * @param terms 查询条件集合
    * @return List<CaseSupervise>
    */
    List<CaseSupervise> listTerms(@Param("terms") Map<String, Object> terms);
 
    /**
    * 按条件查询实体总数
    * @param terms 查询条件集合
    * @return long
    */
    long countTerms(@Param("terms") Map<String, Object> terms);
 
    /**
    * 按条件查询实体分页结果集
    * @param page 分页对象
    * @param terms 查询条件集合
    * @return List<CaseSupervise>
    */
    List<CaseSupervise> pageTerms(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
 
    /**
     * 按条件查询实体总数
     * @param terms 条件
     */
    long countCaseSupervise(@Param("terms") Map<String, Object> terms);
 
    /**
     * 根据事项ID分页查询
     * @param page 分页对象
     * @param terms 条件
     * @return List<CaseSupervise>
     */
    List<CaseSupervise> pageCaseSupervise(@Param("terms") Map<String, Object> terms, @Param("page") PageRequest page);
 
    /**
     * 首页督办条件统计
     * @param terms 条件
     */
    long countMyTaskDb(@Param("terms") Map<String, Object> terms);
 
    /**
     * 首页督办分页查询
     * @param page 分页对象
     * @param terms 条件
     * @return List<CaseSupervise>
     */
    List<FrontPageListDTO> pageMyTaskDb(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
 
    /**
     * 首页-督办数量
     * @param supStatus 回复状态
     *  @param quiltUnitId 被督办组织编号
     */
    long countCaseSuperviseList( @Param("supStatus") int supStatus, @Param("quiltUnitId") String quiltUnitId);
}