yangkang
2023-09-13 51ebb09a85d622cae75dc169b4c86723977d3756
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
<?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.jeecg.modules.eam.mapper.EquipmentChangeMapper">
    <select id="getEquipmentChangeList" parameterType="String" resultType="Map">
 
        SELECT
        t1.id,
        t1.num,
        t1.audit_status as auditStatus,
        t1.change_method as changeMethod,
        t1.remark,
        t1.create_by as createBy,
        t1.update_by as updateBy,
        t1.update_time as updateTime,
        t1.create_time as createTime,
        t2.item_text as audit_status
        FROM
        mom_eam_equipment_change t1
        LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'audit_status' ) t2 ON t2.item_value = t1.audit_status
 
        where t1.del_flag = 0
        <if test="num != 'null' and num != ''">
            and num like concat('%',#{num},'%')
        </if>
        <if test="name != 'null' and name != ''">
            and audit_status like concat('%',#{name},'%')
        </if>
        <if test="changeMethod != 'null' and changeMethod != ''">
            and change_method like concat('%',#{changeMethod},'%')
        </if>
        ORDER BY t1.create_time desc
    </select>
 
</mapper>