INSERT INTO duty_index_lib(
index_lib_id,
index_lib_name,
index_lib_parent_id,
index_lib_sort,
index_lib_remark,
index_lib_state,
index_template_id,
gmt_create,
creator,
gmt_modified,
modifier,
is_delete
) VALUES(
#{indexLibId},
#{indexLibName},
#{indexLibParentId},
#{indexLibSort},
#{indexLibRemark},
#{indexLibState},
#{indexTemplateId},
#{gmtCreate},
#{creator},
#{gmtModified},
#{modifier},
#{isDelete}
)
UPDATE
duty_index_lib
SET
gmt_modified = #{gmtModified},
modifier = #{modifier},
is_delete = 1
WHERE
index_lib_id IN
#{indexLibIds[${index}]}
DELETE FROM
duty_index_lib
WHERE
index_lib_id IN
#{indexLibIds[${index}]}
UPDATE
duty_index_lib
SET
index_lib_name = #{indexLibName},
index_lib_parent_id = #{indexLibParentId},
index_lib_sort = #{indexLibSort},
index_lib_remark = #{indexLibRemark},
index_lib_state = #{indexLibState},
index_template_id = #{indexTemplateId},
gmt_modified = #{gmtModified},
modifier = #{modifier}
WHERE
index_lib_id = #{indexLibId}