|
|
@ -274,13 +274,6 @@ public class CountJobAppService |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var input = new CountJobCheckInput |
|
|
|
{ |
|
|
|
JobStatuses = new List<EnumJobStatus>() { EnumJobStatus.Doing }, |
|
|
@ -295,7 +288,9 @@ public class CountJobAppService |
|
|
|
_countJobManager.CheckJobStatus(checkEntity, input.JobStatuses, result); |
|
|
|
if (result.Errors.Any()) |
|
|
|
{ |
|
|
|
throw new AbpValidationException(result.Errors); |
|
|
|
|
|
|
|
throw new UserFriendlyException($"{result.Errors[0].ErrorMessage}状态不对稍后执行!"); |
|
|
|
//throw new AbpValidationException(result.Errors);
|
|
|
|
} |
|
|
|
var entity = ObjectMapper.Map<CountJobDTO, CountJob>(dto); |
|
|
|
entity.Number = checkEntity.Number; |
|
|
|