From 826cd5b51d5106cfea07e397eda184fb15ec7a30 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期五, 02 八月 2024 14:33:59 +0800
Subject: [PATCH] 修改
---
modules/mainPart/src/main/resources/mapper/taskReliability/TaskPhaseDao.xml | 26 +++++++++++++++++---------
1 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/modules/mainPart/src/main/resources/mapper/taskReliability/TaskPhaseDao.xml b/modules/mainPart/src/main/resources/mapper/taskReliability/TaskPhaseDao.xml
index 7103f5b..84856c9 100644
--- a/modules/mainPart/src/main/resources/mapper/taskReliability/TaskPhaseDao.xml
+++ b/modules/mainPart/src/main/resources/mapper/taskReliability/TaskPhaseDao.xml
@@ -11,16 +11,24 @@
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
+ where a.is_delete = 0
and a.task_id=${taskId}
- <if test="whereSql!=null">
- and ${whereSql}
- </if>
- </where>
- <if test="orderBySql!=null">
- ORDER BY ${orderBySql}
- </if>
+ ORDER BY a.phase_sort
+ </select>
+ <select id="getMaxSort" resultType="java.lang.Integer">
+ SELECT COUNT(*)
+ FROM task_phase
+ where
+ is_delete = 0
+ and task_id =${taskId}
+ </select>
+ <select id="getPhaseByTask" resultType="java.lang.Long">
+ SELECT id
+ FROM task_phase
+ where
+ is_delete = 0
+ and task_id =${taskId}
+ order by phase_sort
</select>
</mapper>
--
Gitblit v1.9.1