Ejemplo n.º 1
0
        static void SyncOrderData(SearchPromotionByCondition oneTask)
        {
            //判断是否已经同步过,同步过就不再执行
            var waitUsers    = DalPromotionJob.ExistsPromotionTaskUsers(oneTask.PromotionTaskId);
            var historyUsers = DalPromotionJob.ExistsPromotionTaskHistoryUsers(oneTask.PromotionTaskId);

            if (waitUsers || historyUsers)
            {
                return;
            }
            DalPromotionJob.MoveFilterOrderData(oneTask.PromotionTaskId);
        }
Ejemplo n.º 2
0
        static void SyncBiActivityData(SearchPromotionByCondition oneTask)
        {
            //判断是否已经同步过,同步过就不再执行
            var waitUsers    = DalPromotionJob.ExistsPromotionTaskUsers(oneTask.PromotionTaskId);
            var historyUsers = DalPromotionJob.ExistsPromotionTaskHistoryUsers(oneTask.PromotionTaskId);

            if (waitUsers || historyUsers)
            {
                return;
            }

            //把BI表里的数据同步到待发送表里去
            DalPromotionJob.MovePromotionTaskActivityUsers(oneTask.PromotionTaskActivityId, oneTask.PromotionTaskId);
        }