无关风月
昨天 02bb94e413f6950b9786c5ee86c0937bc20f8ae8
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
<?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.ruoyi.system.mapper.TProblemEscalationMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ruoyi.system.model.TProblemEscalation">
        <id column="id" property="id" />
        <result column="create_time" property="createTime" />
        <result column="update_time" property="updateTime" />
        <result column="create_by" property="createBy" />
        <result column="update_by" property="updateBy" />
        <result column="disabled" property="disabled" />
        <result column="escalation_id" property="escalationId" />
        <result column="escalation_type" property="escalationType" />
        <result column="escalation_content" property="escalationContent" />
        <result column="problem_location" property="problemLocation" />
        <result column="phone" property="phone" />
        <result column="status" property="status" />
        <result column="remark" property="remark" />
        <result column="handle_time" property="handleTime" />
        <result column="handle_id" property="handleId" />
        <result column="pictures" property="pictures" />
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, create_time, update_time, create_by, update_by, disabled, escalation_id, escalation_type, escalation_content, problem_location, phone, status, remark, handle_time, handle_id, pictures
    </sql>
    <select id="pageList" resultType="com.ruoyi.system.vo.system.ProblemEscalationListVO">
        select t1.*,t2.nick_name as nickName,t2.avatar as avatar,t3.data_content as escalationTypeName from t_problem_escalation t1
        left join sys_user t2 on t1.escalation_id = t2.user_id
        left join t_dict_data t3 on t1.escalation_type = t3.id
        where 1=1
        <if test="query.escalationContent != null and query.escalationContent != ''">
            and t1.escalation_content like concat('%',#{query.escalationContent},'%')
        </if>
          and t3.data_type = 3
        and t1.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
        order by t1.status asc,t1.create_time desc
    </select>
 
</mapper>