select id, status, remark, del_flag, create_by, create_time, update_by, update_time, policies_type,
(select dict_label from sys_dict_data where dict_value = policies_type) policiesTypeLabel,
(select dict_label from sys_dict_data where dict_value = policies_level) policiesLevelLabel,
policies_level, name, introduction, make_office, make_code, make_date, make_user from t_res_policies
insert into t_res_policies
id,
status,
remark,
del_flag,
create_by,
create_time,
update_by,
update_time,
policies_type,
policies_level,
name,
introduction,
make_office,
make_code,
make_date,
make_user,
#{id},
#{status},
#{remark},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{policiesType},
#{policiesLevel},
#{name},
#{introduction},
#{makeOffice},
#{makeCode},
#{makeDate},
#{makeUser},
update t_res_policies
status = #{status},
remark = #{remark},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
policies_type = #{policiesType},
policies_level = #{policiesLevel},
name = #{name},
introduction = #{introduction},
make_office = #{makeOffice},
make_code = #{makeCode},
make_date = #{makeDate},
make_user = #{makeUser},
where id = #{id}
delete from t_res_policies where id = #{id}
delete from t_res_policies where id in
#{id}