lyh
昨天 d61b21c50e62298f185ecafa8e0b22f7ee8c4973
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
<?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.EamMaintenanceStandardMapper">
    <select id="queryPageList" resultType="org.jeecg.modules.eam.entity.EamMaintenanceStandard">
        select ems.*, e.equipment_code, e.equipment_name,
               e.equipment_model,f.process_instance_id as 'procInstId',
               f.process_definition_key,
               f.process_definition_id,
               f.process_instance_id
        from eam_maintenance_standard ems
        inner join eam_equipment e
        on ems.equipment_id = e.id
        left join flow_my_business f
            on f.data_id=ems.id
            ${ew.customSqlSegment}
    </select>
    <select id="queryList" resultType="org.jeecg.modules.eam.entity.EamEquipment">
        SELECT
            e.*,
            ems.id as 'maintenanceStandardId',
            ems.standard_name as 'maintenanceStandardName'
        FROM
            eam_equipment e
                INNER JOIN eam_maintenance_standard ems ON ems.equipment_id = e.id
            ${ew.customSqlSegment}
    </select>
</mapper>