INSERT INTO data_homicide(
homicide_id,
homicide_name,
homicide_code,
homicide_start_time,
homicide_end_time,
brief_information,
happen_location,
happen_location_name,
happen_location_code,
happen_address,
grid,
creator,
gmt_create,
modifier,
gmt_modified,
is_delete
) VALUES(
#{homicideId},
#{homicideName},
#{homicideCode},
#{homicideStartTime},
#{homicideEndTime},
#{briefInformation},
#{happenLocation},
#{happenLocationName},
#{happenLocationCode},
#{happenAddress},
#{grid},
#{creator},
#{gmtCreate},
#{modifier},
#{gmtModified},
#{isDelete}
)
UPDATE
data_homicide
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
homicide_id IN
#{homicideIds[${index}]}
DELETE FROM
data_homicide
WHERE
homicide_id IN
#{homicideIds[${index}]}
UPDATE
data_homicide
SET
homicide_name = #{homicideName},
homicide_code = #{homicideCode},
homicide_start_time = #{homicideStartTime},
homicide_end_time = #{homicideEndTime},
brief_information = #{briefInformation},
happen_location = #{happenLocation},
happen_location_name = #{happenLocationName},
happen_location_code = #{happenLocationCode},
happen_address = #{happenAddress},
grid = #{grid},
gmt_modified = #{gmtModified},
modifier = #{modifier},
homicide_id = homicide_id
WHERE
homicide_id = #{homicideId}