|
@ -303,6 +303,8 @@ namespace BBWY.Server.Business |
|
|
if (pt == null) |
|
|
if (pt == null) |
|
|
throw new BusinessException($"{request.TaskId}任务不存在"); |
|
|
throw new BusinessException($"{request.TaskId}任务不存在"); |
|
|
|
|
|
|
|
|
|
|
|
if (request.PreTaskId != -1) |
|
|
|
|
|
{ |
|
|
var prpt = fsql.Select<PromotionTask>(request.PreTaskId).ToOne(); |
|
|
var prpt = fsql.Select<PromotionTask>(request.PreTaskId).ToOne(); |
|
|
if (prpt == null) |
|
|
if (prpt == null) |
|
|
throw new BusinessException($"{request.PreTaskId}前置任务不存在"); |
|
|
throw new BusinessException($"{request.PreTaskId}前置任务不存在"); |
|
@ -321,7 +323,7 @@ namespace BBWY.Server.Business |
|
|
{ |
|
|
{ |
|
|
CheckSkuRepeat(pt, nextPromotionTaskList); |
|
|
CheckSkuRepeat(pt, nextPromotionTaskList); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#region 清空后代
|
|
|
#region 清空后代
|
|
|
var waitList = fsql.Select<PromotionTask>().Where(pt1 => pt1.ShopId == pt.ShopId && |
|
|
var waitList = fsql.Select<PromotionTask>().Where(pt1 => pt1.ShopId == pt.ShopId && |
|
|