INSERT INTO duty_index_general(
index_general_id,
index_lib_id,
index_general_title,
index_general_content,
index_general_file,
index_general_image,
audit_status,
gmt_create,
creator,
gmt_modified,
modifier,
is_delete
) VALUES(
#{indexGeneralId},
#{indexLibId},
#{indexGeneralTitle},
#{indexGeneralContent},
#{indexGeneralFile},
#{indexGeneralImage},
#{auditStatus},
#{gmtCreate},
#{creator},
#{gmtModified},
#{modifier},
#{isDelete}
)
UPDATE
duty_index_general
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
index_general_id IN
#{indexGeneralIds[${index}]}
DELETE FROM
duty_index_general
WHERE
index_general_id IN
#{indexGeneralIds[${index}]}
UPDATE
duty_index_general
SET
index_general_title = #{indexGeneralTitle},
index_general_content = #{indexGeneralContent},
index_general_file = #{indexGeneralFile},
index_general_image = #{indexGeneralImage},
audit_status = #{auditStatus},
gmt_modified = #{gmtModified},
modifier = #{modifier}
WHERE
index_general_id = #{indexGeneralId}