设置任务状态针对费用类型做特殊处理

dev
嵇文龙 2 months ago
parent bf5d0f5b4f
commit d15cf21d9b

@ -537,7 +537,7 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
x.BusinessId,
x.BusinessType
}).FirstAsync();
var relativeTasks = await TenantDb.Queryable<BusinessTask>()
.InnerJoin<FeeRecord>((t, f) => t.BusinessId == f.Id)
.Where((t, f) => f.BusinessId == fee.BusinessId && f.BusinessType == fee.BusinessType && FeeTypes.Contains(t.TaskType) && t.RecvUsers.Contains(User.UserId))
@ -553,7 +553,7 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
var groups = relativeTasks.GroupBy(x => x.TaskStatus).Select(x => x.Key).ToList();
if (groups.Count == 1 && groups.All(x => x == request.TaskStatus))
{
result = await ManagerService.SetTaskStatusWithBsno(request.BusinessId, request.TaskType, request.TaskStatus, DateTime.Now, request.TaskDesc);
result = await ManagerService.SetTaskStatusWithBsno(request.BusinessId, request.TaskType, request.TaskStatus, DateTime.Now, request.TaskDesc, [.. task.RecvUserIdArray]);
if (!result.Succeeded)
return DataResult.Failed(result.Message, result.MultiCode);
}

Loading…
Cancel
Save