diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/CountJobs/CountJobAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/CountJobs/CountJobAppService.cs index 15e4c6002..f40c76756 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/CountJobs/CountJobAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/CountJobs/CountJobAppService.cs @@ -274,13 +274,6 @@ public class CountJobAppService - - - - - - - var input = new CountJobCheckInput { JobStatuses = new List() { 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(dto); entity.Number = checkEntity.Number;