| | |
| | | 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> |
| | | |
| | | </mapper> |