wente
2024-05-08 90d84d6e1bb895c144b6865d7df40e4739c1b535
modules/mainPart/src/main/resources/mapper/taskReliability/TaskPhaseDao.xml
@@ -4,8 +4,13 @@
<mapper namespace="com.zt.life.modules.mainPart.taskReliability.dao.TaskPhaseDao">
    <select id="getList" resultType="com.zt.life.modules.mainPart.taskReliability.model.TaskPhase">
        select a.*
        from task_phase a
        SELECT
        a.*,
        b.operatConditDuration
        FROM
        task_phase a
        LEFT JOIN (select phase_id , SUM(operat_condit_duration_rate) as operatConditDuration from task_phase_model
        where is_delete =0 group by phase_id) b ON a.id = b.phase_id
        <where>
            a.is_delete = 0
            and a.task_id=${taskId}