|
|
@ -169,17 +169,13 @@ public class InjectionIssueJobsController : AbpController |
|
|
|
throw new UserFriendlyException($"未找到编号为 {jobNumber} 的任务"); |
|
|
|
} |
|
|
|
|
|
|
|
//var wlgCodes = await _userWorkGroupAppService.GetCodsOfCurrentUserAsync().ConfigureAwait(false);
|
|
|
|
//if (!wlgCodes.Contains(jobDto.WorkGroupCode))
|
|
|
|
|
|
|
|
|
|
|
|
//if (jobDto.JobStatus == EnumJobStatus.Doing && jobDto.ClaimsUserId != CurrentUser.Id.ToString() && jobDto.IsClaims)
|
|
|
|
//{
|
|
|
|
// return new NotFoundObjectResult($"任务属于工作组 {jobDto.WorkGroupCode}");
|
|
|
|
// return new NotFoundObjectResult($"任务正在被 {jobDto.ClaimsUserName} 处理");
|
|
|
|
//}
|
|
|
|
|
|
|
|
if (jobDto.JobStatus == EnumJobStatus.Doing && jobDto.ClaimsUserId != CurrentUser.Id.ToString() && jobDto.IsClaims) |
|
|
|
{ |
|
|
|
return new NotFoundObjectResult($"任务正在被 {jobDto.ClaimsUserName} 处理"); |
|
|
|
} |
|
|
|
|
|
|
|
return jobDto; |
|
|
|
} |
|
|
|
|
|
|
|