| | |
| | | <result column="status" property="status" /> |
| | | <result column="overtime_status" property="overtimeStatus" /> |
| | | </resultMap> |
| | | <resultMap id="processOvertimeTimesVO" type="com.ycl.domain.vo.ProcessOvertimeTimesVO"> |
| | | <id column="id" property="id"/> |
| | | <result column="task_overtime_num" property="taskOvertimeNum"/> |
| | | <result column="process_ins_id" property="processInsId"/> |
| | | </resultMap> |
| | | |
| | | <select id="countProjectOvertimeTimes" resultMap="processOvertimeTimesVO"> |
| | | select TPC.id, |
| | | TPC.process_ins_id, |
| | | COUNT(TPC.overtime_status) as task_overtime_num |
| | | FROM t_process_coding TPC |
| | | where |
| | | TPC.overtime_status = 'overtime' |
| | | GROUP BY TPC.process_ins_id |
| | | </select> |
| | | |
| | | |
| | | <select id="getById" resultMap="BaseResultMap"> |