select ea.id, ea.product_ids, ea.shop_cuisine, ea.average_consumption, ea.is_recommend, ea.store_id, sbi.name shop_name, sbi.contact_phone shop_phone, sbi.business_start_hours begin_time, sbi.business_end_hours end_time, sbi.address shop_address, sbi.longitude lng, sbi.latitude lat, sbi.images door_image, sbi.carousel_image environment_image, sbi.grounding_status status, sbi.register_audit_status register_audit_status, sbi.create_by, sbi.create_time, sbi.update_by, sbi.update_time, sbi.remark, sbi.dept_id merchant_id from zdy_eatery_shop_info ea inner join zdy_store_base_info sbi on sbi.id = ea.store_id insert into zdy_eatery_shop_info id, product_ids, shop_cuisine, average_consumption, is_recommend, store_id, #{storeId}, #{productIds}, #{shopCuisine}, #{averageConsumption}, #{isRecommend}, #{storeId}, update zdy_eatery_shop_info product_ids = #{productIds}, shop_cuisine = #{shopCuisine}, average_consumption = #{averageConsumption}, is_recommend = #{isRecommend}, store_id = #{storeId}, where id = #{id} delete from zdy_eatery_shop_info where id = #{id} delete from zdy_eatery_shop_info where id in #{id} update zdy_eatery_shop_info product_ids = #{productIds}, shop_cuisine = #{shopCuisine}, average_consumption = #{averageConsumption}, is_recommend = #{isRecommend}, store_id = #{storeId} where store_id = #{storeId}