吉安感知网项目-后端
linwei
2026-01-31 8261ceda58718fe8becb795d09e152a3b61a6f22
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.sxkj.gd.implement.mapper.GdImplementListMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="gdImplementListResultMap" type="org.sxkj.gd.implement.vo.GdImplementListVO">
        <result column="id" property="id"/>
        <result column="matter_name" property="matterName"/>
        <result column="matter_code" property="matterCode"/>
        <result column="area_code" property="areaCode"/>
        <result column="area_name" property="areaName"/>
        <result column="org_code" property="orgCode"/>
        <result column="org_name" property="orgName"/>
        <result column="catalog_code" property="catalogCode"/>
        <result column="implement_code" property="implementCode"/>
        <result column="implement_name" property="implementName"/>
        <result column="process_definition_id" property="processDefinitionId"/>
        <result column="process_instance_id" property="processInstanceId"/>
    </resultMap>
 
 
    <select id="selectGdImplementListPage" resultMap="gdImplementListResultMap">
        select * from ja_gd_implement_list where is_deleted = 0
        <if test="param2.matterName != null and param2.matterName != ''">
            and matter_name like concat('%',#{param2.matterName},'%')
        </if>
        <if test="param2.matterCode != null and param2.matterCode != ''">
            and matter_code like concat('%',#{param2.matterCode},'%')
        </if>
        <if test="param2.areaCode != null and param2.areaCode != ''">
            and area_code like concat('%',#{param2.areaCode},'%')
        </if>
        <if test="param2.orgCode != null and param2.orgCode != ''">
            and org_code like concat('%',#{param2.orgCode},'%')
        </if>
        <if test="param2.catalogCode != null and param2.catalogCode != ''">
            and catalog_code like concat('%',#{param2.catalogCode},'%')
        </if>
        <if test="param2.deptList != null and param2.deptList.size > 0">
            AND create_dept in
            <foreach collection="param2.deptList" item="deptId" open="(" separator="," close=")">
                #{deptId}
            </foreach>
        </if>
    </select>
 
 
    <select id="exportGdImplementList" resultType="org.sxkj.gd.implement.excel.GdImplementListExcel">
        SELECT * FROM ja_gd_implement_list ${ew.customSqlSegment}
    </select>
 
</mapper>