net
2025-02-14 06d3d15a5a08637041cc601101c063b11b07a346
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
<?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="com.zhitan.saving.mapper.PoliciesRegulationsManagementMapper">
    <select id="getPageList" resultType="com.zhitan.saving.domain.vo.PoliciesRegulationsManagementPageVO">
        select
        prm.id,
        prm.title,
        prm.type,
        prm.dept,
        prm.issuing_time,
        prm.url,
        sdd.dict_label as typeName
        from policies_regulations_management AS prm
        left join sys_dict_data AS sdd on prm.type = sdd.dict_value
        <where>
            prm.del_flag = 0
            <if test="dto.type != null">
                and prm.type = #{dto.type}
            </if>
            <if test="dto.title != null and dto.title != ''">
                and prm.title like concat('%',#{dto.title},'%')
            </if>
        </where>
        order by prm.issuing_time desc
    </select>
 
</mapper>