`id`,`tenant_id`,`parent_tenant_id`,`merchant_id`,`shop_id`,`create_date`,`update_date`,`is_del` where 1 = 1 and `id` = #{id} and `tenant_id` = #{tenantId} and `parent_tenant_id` = #{parentTenantId} and `merchant_id` = #{merchantId} and `shop_id` = #{shopId} and `create_date` = #{createDate} and `update_date` = #{updateDate} and `is_del` = #{isDel} and id in #{idItem} and shop_id in #{shopIdItem} and merchant_id in #{merchantIdItem} order by ${sortColumns} update wx_merchant_shop set is_del = 1 where merchant_id = #{merchantId} and shop_id in #{shopItem} delete from wx_merchant_shop where merchant_id = #{merchantId} and shop_id in #{shopItem}