“linengliang”
2023-10-18 3bef134da79cb768d6444d9a2fc68e0ca7cf7347
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?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.EquipmentMaintenancePlanMapper">
    <select id="getCycle" resultType="org.jeecg.modules.eam.entity.MaintenanceStandardDetail">
        select
        t1.id id,
        t1.maintenance_project_id maintenanceProjectId,
        t2.id maintenanceCycleId
        from mom_eam_maintenance_standard_detail t1
        left join mom_eam_maintenance_cycle t2 on t2.id = t1.maintenance_cycle_id
        where t1.maintenance_standard_id = #{mainId}
        and t2.maintenance_type = #{type}
        and t1.del_flag = 0
    </select>
 
</mapper>