select * from CRM_card where sn='' /*通过卡片序号查询卡片信息*/
调整客户卡片状态
Update CRM_Customer Set ICCardNumbers = 1 where Code In (Select CustomerCode From CRM_Card Where SN = '卡片序号') /*根据客户得卡片序号,修正客户卡片为共享并可见*/
同步指令到门店
EXEC SYS_SyncPushToShop_InsertAsSQL 门店编号,'Update CRM_Customer Set ICCardNumbers = 1 where Code In (Select CustomerCode From CRM_Card Where SN = ''''卡片序号'''')',0,10 /*调整这张卡片为共享状态*/