select shop_id, sys_user_id, shop_name, shop_phone, shop_account, shop_password, shop_image, shop_banner, shop_license, shop_permit, shop_business_begin, shop_business_end, shop_money, province_id, province_name, city_id, city_name, area_id, area_name, address, longitude, latitude, visitor_count, shop_status, create_at, update_at, del_flag from mall_shop_shop
insert into mall_shop_shop
sys_user_id,
shop_name,
shop_phone,
shop_account,
shop_password,
shop_image,
shop_banner,
shop_license,
shop_permit,
shop_business_begin,
shop_business_end,
shop_money,
province_id,
province_name,
city_id,
city_name,
area_id,
area_name,
address,
longitude,
latitude,
visitor_count,
shop_status,
create_at,
update_at,
del_flag,
#{sysUserId},
#{shopName},
#{shopPhone},
#{shopAccount},
#{shopPassword},
#{shopImage},
#{shopBanner},
#{shopLicense},
#{shopPermit},
#{shopBusinessBegin},
#{shopBusinessEnd},
#{shopMoney},
#{provinceId},
#{provinceName},
#{cityId},
#{cityName},
#{areaId},
#{areaName},
#{address},
#{longitude},
#{latitude},
#{visitorCount},
#{shopStatus},
#{createAt},
#{updateAt},
#{delFlag},
update mall_shop_shop
sys_user_id = #{sysUserId},
shop_name = #{shopName},
shop_phone = #{shopPhone},
shop_account = #{shopAccount},
shop_password = #{shopPassword},
shop_image = #{shopImage},
shop_banner = #{shopBanner},
shop_license = #{shopLicense},
shop_permit = #{shopPermit},
shop_business_begin = #{shopBusinessBegin},
shop_business_end = #{shopBusinessEnd},
shop_money = #{shopMoney},
province_id = #{provinceId},
province_name = #{provinceName},
city_id = #{cityId},
city_name = #{cityName},
area_id = #{areaId},
area_name = #{areaName},
address = #{address},
longitude = #{longitude},
latitude = #{latitude},
visitor_count = #{visitorCount},
shop_status = #{shopStatus},
create_at = #{createAt},
update_at = #{updateAt},
del_flag = #{delFlag},
where shop_id = #{shopId}
delete from mall_shop_shop where shop_id = #{shopId}
delete from mall_shop_shop where shop_id in
#{shopId}