huminmin
2026-06-29 b16eec9b38aedda5f5e7e60f749f9b2dbba2a84e
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.safe.specialequipment.mapper.SpecialEquipmentRectificationMapper">
 
    <resultMap id="BaseResultMap" type="com.ruoyi.safe.specialequipment.pojo.SpecialEquipmentRectification">
        <id column="id" property="id" />
        <result column="equipment_id" property="equipmentId" />
        <result column="hazard_description" property="hazardDescription" />
        <result column="risk_level" property="riskLevel" />
        <result column="discovered_date" property="discoveredDate" />
        <result column="responsible_user_id" property="responsibleUserId" />
        <result column="responsible_user_name" property="responsibleUserName" />
        <result column="rectification_deadline" property="rectificationDeadline" />
        <result column="rectification_status" property="rectificationStatus" />
        <result column="rectification_measures" property="rectificationMeasures" />
        <result column="rectification_result" property="rectificationResult" />
        <result column="closed_date" property="closedDate" />
        <result column="remarks" property="remarks" />
        <result column="create_user" property="createUser" />
        <result column="create_time" property="createTime" />
        <result column="update_user" property="updateUser" />
        <result column="update_time" property="updateTime" />
        <result column="tenant_id" property="tenantId" />
        <result column="dept_id" property="deptId" />
    </resultMap>
 
    <select id="listPage" resultMap="BaseResultMap">
        select *
        from special_equipment_rectification
        where 1=1
        <if test="req.rectificationStatus != null">
            and rectification_status = #{req.rectificationStatus}
        </if>
        <if test="req.hazardDescription != null and req.hazardDescription != ''">
            and hazard_description like concat('%', #{req.hazardDescription}, '%')
        </if>
        <if test="req.equipmentId != null">
            and equipment_id = #{req.equipmentId}
        </if>
    </select>
 
</mapper>