INSERT INTO t_problem_clue(
report_id,
duty_index_lib_id,
case_number,
handover_number,
be_reported_person,
report_person,
org_job,
main_clue_content,
accept_date_time,
clue_source,
need_result,
limit_result_time,
verify_problem,
progress,
may_result_opinion,
over_status,
case_result,
remarks,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{reportId},
#{dutyIndexLibId},
#{caseNumber},
#{handoverNumber},
#{beReportedPerson},
#{reportPerson},
#{orgJob},
#{mainClueContent},
#{acceptDateTime},
#{clueSource},
#{needResult},
#{limitResultTime},
#{verifyProblem},
#{progress},
#{mayResultOpinion},
#{overStatus},
#{caseResult},
#{remarks},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
t_problem_clue
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
report_id IN
#{reportIds[${index}]}
DELETE FROM
t_problem_clue
WHERE
report_id IN
#{reportIds[${index}]}
UPDATE
t_problem_clue
SET
case_number = #{caseNumber},
handover_number = #{handoverNumber},
be_reported_person = #{beReportedPerson},
report_person = #{reportPerson},
org_job = #{orgJob},
main_clue_content = #{mainClueContent},
accept_date_time = #{acceptDateTime},
clue_source = #{clueSource},
need_result = #{needResult},
limit_result_time = #{limitResultTime},
verify_problem = #{verifyProblem},
progress = #{progress},
may_result_opinion = #{mayResultOpinion},
over_status = #{overStatus},
case_result = #{caseResult},
remarks = #{remarks},
gmt_modified = #{gmtModified},
modifier = #{modifier}
WHERE
report_id = #{reportId}