|
|
@ -513,7 +513,8 @@ |
|
|
|
tpi.width AS width, |
|
|
|
tpi.height AS height, |
|
|
|
tpi.`row` AS `row`, |
|
|
|
tpi.col AS col |
|
|
|
tpi.col AS col, |
|
|
|
if(ts.id = #{taskId},0,1) as sort |
|
|
|
FROM |
|
|
|
t_pro_task_detail AS td |
|
|
|
LEFT JOIN t_pro_task_sub AS ts ON ts.task_detail_id = td.id |
|
|
@ -543,7 +544,7 @@ |
|
|
|
<if test="queryType == 1"> |
|
|
|
AND plan_start_time >= #{timeNode} |
|
|
|
</if> |
|
|
|
<if test="taskId != null"> |
|
|
|
<if test="triggerType == 0"> |
|
|
|
and ts.id != #{taskId} |
|
|
|
</if> |
|
|
|
) AS alltask |
|
|
@ -558,10 +559,10 @@ |
|
|
|
AND llbb.business_type = 0 |
|
|
|
AND ll.`level` >= #{timeUnit} |
|
|
|
<if test="queryType == 0"> |
|
|
|
ORDER BY alltask.planStart DESC,id DESC |
|
|
|
ORDER BY sort,alltask.planStart DESC,id DESC |
|
|
|
</if> |
|
|
|
<if test="queryType == 1"> |
|
|
|
ORDER BY alltask.planStart,id |
|
|
|
ORDER BY sort,alltask.planStart,id |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
<select id="getDeliverPluginIdBySubTaskId" resultType="java.lang.Long"> |
|
|
|