广州市综治平台后端
xusd
2025-06-07 36306491396230522fa20585c2621a7fc899849a
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
package cn.huge.module.thirdByRmtj.dao.mapper;
 
import cn.huge.module.thirdByRmtj.domain.dto.RmtjApplyPageDTO;
import cn.huge.module.thirdByRmtj.domain.dto.RmtjAuditPageDTO;
import cn.huge.module.thirdByRmtj.domain.po.ThRmtjApply;
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: liyj
* @time: 2024-11-15 10:56:25
* @version 1.0.0
*/
@Repository
public interface ThRmtjApplyMapper extends BaseMapper<ThRmtjApply>{
 
    /**
    * 更新对象
    * @param entity 对象
    */
    void updateThRmtjApply(@Param("entity") ThRmtjApply entity);
 
    /**
    * 条件更新对象
    * @param entity 对象
    * @param terms 条件
    */
    void updateThRmtjApplyTerms(@Param("entity") ThRmtjApply entity, @Param("terms") Map<String, Object> terms);
 
    /**
    * 根据编号物理删除
    * @param id 查询条件集合
    */
    void deleteThRmtjApply(@Param("id") String id);
 
    /**
    * 按条件查询结果集
    * @param terms 查询条件集合
    * @return List<ThRmtjApply>
    */
    List<ThRmtjApply> 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<ThRmtjApply>
    */
    List<ThRmtjApply> pageTerms(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
 
    /**
     * web端-转入人民调解系统-申请列表-查询总数
     * @param terms 查询条件集合
     * @return long
     */
    long countPageApply(@Param("terms") Map<String, Object> terms);
 
    /**
     * web端-转入人民调解系统-申请列表-按条件分页查询
     * @param page 分页对象
     * @param terms 查询条件集合
     * @return List<RmtjPageDTO>
     */
    List<RmtjApplyPageDTO> pageApply(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
 
    /**
     * web端-转入人民调解系统-申请列表统计
     * @param terms 条件
     * @return long
     */
    Map countApply(@Param("terms") Map<String, Object> terms);
 
    /**
     * web端-转入人民调解系统-初审列表-查询总数
     * @param terms 查询条件集合
     * @return long
     */
    long countPageFirstAudit(@Param("terms") Map<String, Object> terms);
 
    /**
     * web端-转入人民调解系统-初审列表-按条件分页查询
     * @param page 分页对象
     * @param terms 查询条件集合
     * @return List<RmtjPageDTO>
     */
    List<RmtjAuditPageDTO> pageFirstAudit(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
 
    /**
     * web端-转入人民调解系统-终审列表-查询总数
     * @param terms 查询条件集合
     * @return long
     */
    long countPageEndAudit(@Param("terms") Map<String, Object> terms);
 
    /**
     * web端-转入人民调解系统-终审列表-按条件分页查询
     * @param page 分页对象
     * @param terms 查询条件集合
     * @return List<RmtjPageDTO>
     */
    List<RmtjAuditPageDTO> pageEndAudit(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
 
    /**
     * 查询某一单位的所有管辖单位id,包括自己
     * @param parentId 父级单位编号
     * @return String
     */
    List<String> listAllUnitId(@Param("parentId") String parentId);
 
}