A.oc_id, A.task_id, A.check_record_id, A.account_id, A.position_id, A.group_id, A.risk_point_id, A.checklist_id, A.hazard_id, B.hazard_title, B.hazard_code, A.risk_id, C.risk_source AS risk_title, C.risk_code, A.measure_id, D.measure_type_id, E.measure_type_title, D.measure_content, D.measure_reference, D.measure_desc, A.check_time, A.check_result, A.check_desc, A.danger_id, A.created_by, A.created_at INSERT INTO check_task_doing oc_id, group_id, position_id, account_id, task_id, check_record_id, checklist_id, risk_point_id, hazard_id, risk_id, measure_id, check_time, check_result, check_desc, created_by, created_at, #{ocId ,jdbcType=BIGINT}, #{groupId ,jdbcType=BIGINT}, #{positionId ,jdbcType=BIGINT}, #{accountId ,jdbcType=BIGINT}, #{taskId ,jdbcType=BIGINT}, #{checkRecordId ,jdbcType=BIGINT}, #{checklistId ,jdbcType=BIGINT}, #{riskPointId ,jdbcType=BIGINT}, #{hazardId ,jdbcType=BIGINT}, #{riskId ,jdbcType=BIGINT}, #{measureId ,jdbcType=BIGINT}, #{checkTime ,jdbcType=DATE}, #{checkResult ,jdbcType=BIGINT}, #{checkDesc ,jdbcType=VARCHAR}, #{createdBy ,jdbcType=BIGINT}, #{createdAt ,jdbcType=TIMESTAMP}, INSERT INTO check_task_doing( oc_id, group_id, position_id, account_id, task_id, check_record_id, checklist_id, risk_point_id, hazard_id, risk_id, measure_id, check_time, check_result, check_desc, created_by, created_at) values (#{item.ocId}, #{item.groupId}, #{item.positionId}, #{item.accountId}, #{item.taskId}, #{item.checkRecordId}, #{item.checklistId}, #{item.riskPointId}, #{item.hazardId}, #{item.riskId}, #{item.measureId}, #{item.checkTime}, #{item.checkResult}, #{item.checkDesc}, #{item.createdBy}, #{item.createdAt}) UPDATE check_task_doing account_id = #{accountId ,jdbcType=BIGINT}, check_time = NOW(), check_result = #{checkResult ,jdbcType=BIGINT}, danger_id = #{dangerId ,jdbcType=BIGINT}, check_desc = #{checkDesc ,jdbcType=VARCHAR}, WHERE 1 = 1 AND oc_id = #{ocId ,jdbcType=BIGINT} AND task_id = #{taskId ,jdbcType=BIGINT} AND check_record_id = #{checkRecordId ,jdbcType=BIGINT} UPDATE check_task_doing account_id = #{accountId ,jdbcType=BIGINT}, check_result = #{checkResult ,jdbcType=BIGINT}, check_desc = #{checkDesc ,jdbcType=VARCHAR}, danger_id = #{dangerId ,jdbcType=BIGINT}, check_time = NOW() WHERE 1 = 1 AND oc_id = #{ocId ,jdbcType=BIGINT} AND task_id = #{taskId ,jdbcType=BIGINT} DELETE from check_task_doing WHERE 1 = 1 AND oc_id = #{ocId,jdbcType=BIGINT} AND task_id = #{taskId ,jdbcType=BIGINT} AND check_record_id = #{checkRecordId ,jdbcType=BIGINT}