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
TPC.task_id,
TPC.task_def_key,
TPC.start_task_id,
TPC.process_ins_id,
TPC.yellow_time,
TPC.red_time,
TPC.overtime,
TPC.status,
TPC.overtime_status,
TPC.id
FROM
t_process_coding TPC
WHERE
TPC.id = #{id} AND TPC.deleted = 0
SELECT
TPC.task_id,
TPC.task_def_key,
TPC.start_task_id,
TPC.process_ins_id,
TPC.yellow_time,
TPC.red_time,
TPC.overtime,
TPC.status,
TPC.overtime_status,
TPC.id
FROM
t_process_coding TPC
WHERE
TPC.deleted = 0
SELECT * from t_process_coding where task_id = #{taskId}
update t_process_coding
when id=#{item.id} then #{item.status}
when id=#{item.id} then #{item.overtimeStatus}
when id=#{item.id} then #{item.startTaskTime}
where id in
#{item.id,jdbcType=BIGINT}