1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| <?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="com.zt.life.modules.mainPart.taskReliability.dao.TaskPhaseDao">
|
| <select id="getList" resultType="com.zt.life.modules.mainPart.taskReliability.model.TaskPhase">
| 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}
| 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>
|
|