qushaowei
2025-06-10 9ca176b77f2572f433f44784fd24602aeb6d0e85
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?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.FaultInfoMapper">
    <select id="myPage" resultType="org.jeecg.modules.eam.entity.FaultInfo">
        select
            t1.id,
            t1.num,
            t1.quanlity_id quanlityId,
            t1.cost,
            t1.is_certificate isCertificate,
            t1.is_outage isOutage,
            t1.factor,
            t1.modify_content modifyContent,
            t1.equipment_process equipmentProcess,
            t1.phenomenon,
            t1.method1,
            t1.method2,
            t1.method3,
            t1.result,
            t1.start_check_time startCheckTime,
            t1.equipment_status equipmentStatus,
            t1.anlysis,
            t1.check_result checkResult,
            t1.active,
            t1.suggest,
            t1.judgment,
            t1.different_judgment differentJudgment,
            t1.update_method updateMethod,
            t1.final_result finalResult,
            t1.operater,
            t1.engineer,
            t1.mechanic,
            t1.work_leader workLeader,
            t1.center_leader centerLeader,
            t1.team_leader teamLeader,
            t1.repair_leader repairLeader,
            t1.equip_leader equipLeader,
            t1.guarantee_leader guaranteeLeader,
            t1.equip_name equipName,
            t1.equip_model equipModel,
            t1.equip_num equipNum,
            t1.is_confirm isConfirm,
            t1.area2,
            t2.operator,
            t3.fault_time faultTime,
            t4.factory_model_id area1,
            t4.use_id departId,
            t5.technical_level level
            from mom_eam_fault_info t1
            left join mom_eam_quanlity_confirm t2 on t2.id = t1.quanlity_id
            left join mom_eam_equipment_report_repair t3 on t3.id = t2.report_id
            left join mom_eam_equipment t4 on t4.id = t3.equipment_id
            left join mom_eam_operation_certificate t5 on t5.id = t2.operator
            where 1=1
            <if test="num != null and num != ''">
                and t1.num like concat('%',#{num},'%')
            </if>
            <if test="isConfirm != null and isConfirm != ''">
                and t1.is_confirm = #{isConfirm}
            </if>
--             根据id
            <if test="id != null and id != ''">
                and t1.id = #{id}
            </if>
            order by t1.num desc
 
    </select>
</mapper>