From 41fd89a02c90b1c0429ea7ba96d0a589fa00f8a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Wed, 27 Nov 2024 09:37:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Jobs/CountJobs/CountJobAppService.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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;