INSERT INTO t_party_punish_info(
report_id,
duty_index_lib_id,
person_name,
party_org,
party_discipline,
gov_discipline,
punish_time,
announce_time,
announce_scope,
put_in_file_time,
job_wages_change,
job_wages_rise,
year_examine_level,
year_bonus_info,
achievement_bouns,
remarks,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{reportId},
#{dutyIndexLibId},
#{personName},
#{partyOrg},
#{partyDiscipline},
#{govDiscipline},
#{punishTime},
#{announceTime},
#{announceScope},
#{putInFileTime},
#{jobWagesChange},
#{jobWagesRise},
#{yearExamineLevel},
#{yearBonusInfo},
#{achievementBouns},
#{remarks},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
t_party_punish_info
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
report_id IN
#{reportIds[${index}]}
DELETE FROM
t_party_punish_info
WHERE
report_id IN
#{reportIds[${index}]}
UPDATE
t_party_punish_info
SET
person_name = #{personName},
party_org = #{partyOrg},
party_discipline = #{partyDiscipline},
gov_discipline = #{govDiscipline},
punish_time = #{punishTime},
announce_time = #{announceTime},
announce_scope = #{announceScope},
put_in_file_time = #{putInFileTime},
job_wages_change = #{jobWagesChange},
job_wages_rise = #{jobWagesRise},
year_examine_level = #{yearExamineLevel},
year_bonus_info = #{yearBonusInfo},
achievement_bouns = #{achievementBouns},
remarks = #{remarks},
gmt_modified = #{gmtModified},
modifier = #{modifier}
WHERE
report_id = #{reportId}