select hosp_area_id,
hosp_area_name,
hospId,
hosp_name,
code,
wbm,
spell,
areaId,
area_name,
main_hosp_area,
principal,
phone,
plait_bed,
open_bed,
build_date,
remark,
create_by,
create_time,
update_by,
update_time,
order_num,
effective,
create_by_name,
update_by_name,
imgBase64,
deleted
from dict_hosp
insert into dict_hosp
hosp_area_id,
hosp_area_name,
hospId,
hosp_name,
code,
wbm,
spell,
areaId,
area_name,
main_hosp_area,
principal,
phone,
plait_bed,
open_bed,
build_date,
remark,
create_by,
create_time,
update_by,
update_time,
order_num,
effective,
create_by_name,
update_by_name,
imgBase64,
deleted,
#{hospAreaId},
#{hospAreaName},
#{hospid},
#{hospName},
#{code},
#{wbm},
#{spell},
#{areaid},
#{areaName},
#{mainHospArea},
#{principal},
#{phone},
#{plaitBed},
#{openBed},
#{buildDate},
#{remark},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{orderNum},
#{effective},
#{createByName},
#{updateByName},
#{imgbase64},
#{deleted},
update dict_hosp
hosp_area_name = #{hospAreaName},
hospId = #{hospid},
hosp_name = #{hospName},
code = #{code},
wbm = #{wbm},
spell = #{spell},
areaId = #{areaid},
area_name = #{areaName},
main_hosp_area = #{mainHospArea},
principal = #{principal},
phone = #{phone},
plait_bed = #{plaitBed},
open_bed = #{openBed},
build_date = #{buildDate},
remark = #{remark},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
order_num = #{orderNum},
effective = #{effective},
create_by_name = #{createByName},
update_by_name = #{updateByName},
imgBase64 = #{imgbase64},
deleted = #{deleted},
where hosp_area_id = #{hospAreaId}
delete
from dict_hosp
where hosp_area_id = #{hospAreaId}
delete from dict_hosp where hosp_area_id in
#{hospAreaId}