select portal_config_id, portal_config_type,portal_config_type_id, portal_config_title, portal_config_order,
portal_config_desc, button_name, router_address, portal_config_pic, create_time, create_by, update_time,
update_by
from hw_portal_config
select hpc.portal_config_id, hpc.portal_config_type,hpc.portal_config_type_id, hpc.portal_config_title, hpc.portal_config_order,
hpc.portal_config_desc, hpc.button_name, hpc.router_address, hpc.portal_config_pic, hpc.create_time, hpc.create_by, hpc.update_time,
hpc.update_by,
hpct.config_type_name,
hpct.home_config_type_pic,
hpct.config_type_icon,
hpct.home_config_type_name,
hpct.config_type_classfication,
hpct.parent_id,
hpct.ancestors
from hw_portal_config hpc
left join hw_portal_config_type hpct on hpc.portal_config_type_id = hpct.config_type_id
insert into hw_portal_config
portal_config_type,
portal_config_type_id,
portal_config_title,
portal_config_order,
portal_config_desc,
button_name,
router_address,
portal_config_pic,
create_time,
create_by,
update_time,
update_by,
#{portalConfigType},
#{portalConfigTypeId},
#{portalConfigTitle},
#{portalConfigOrder},
#{portalConfigDesc},
#{buttonName},
#{routerAddress},
#{portalConfigPic},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
update hw_portal_config
portal_config_type = #{portalConfigType},
portal_config_type_id = #{portalConfigTypeId},
portal_config_title = #{portalConfigTitle},
portal_config_order = #{portalConfigOrder},
portal_config_desc = #{portalConfigDesc},
button_name = #{buttonName},
router_address = #{routerAddress},
portal_config_pic = #{portalConfigPic},
create_time = #{createTime},
create_by = #{createBy},
update_time = #{updateTime},
update_by = #{updateBy},
where portal_config_id = #{portalConfigId}
delete from hw_portal_config where portal_config_id = #{portalConfigId}
delete from hw_portal_config where portal_config_id in
#{portalConfigId}
select hpc.portal_config_id, hpc.portal_config_type,hpc.portal_config_type_id,
hpc.portal_config_title, hpc.portal_config_order, hpc.portal_config_desc,
hpc.button_name, hpc.router_address, hpc.portal_config_pic,
hpc.create_time, hpc.create_by, hpc.update_time, hpc.update_by,hpct.config_type_name from hw_portal_config hpc
left join hw_portal_config_type hpct on hpc.portal_config_type_id = hpct.config_type_id