<?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="auditStatus != 'null' and auditStatus != ''">
|
and audit_status like concat('%',#{auditStatus},'%')
|
</if>
|
<if test="changeMethod != 'null' and changeMethod != ''">
|
and change_method like concat('%',#{changeMethod},'%')
|
</if>
|
ORDER BY t1.create_time desc
|
</select>
|
|
</mapper>
|