select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark
from sys_dict_data
delete from sys_dict_data where dict_code = #{dictCode}
delete from sys_dict_data where dict_code in
#{dictCode}
update sys_dict_data
dict_sort = #{dictSort},
dict_label = #{dictLabel},
dict_value = #{dictValue},
dict_type = #{dictType},
css_class = #{cssClass},
list_class = #{listClass},
is_default = #{isDefault},
status = #{status},
remark = #{remark},
update_by = #{updateBy},
update_time = getdate()
where dict_code = #{dictCode}
update sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType}
insert into sys_dict_data(
dict_sort,
dict_label,
dict_value,
dict_type,
css_class,
list_class,
is_default,
status,
remark,
create_by,
create_time
)values(
#{dictSort},
#{dictLabel},
#{dictValue},
#{dictType},
#{cssClass},
#{listClass},
#{isDefault},
#{status},
#{remark},
#{createBy},
getdate()
)