Browse Source

提示修改

dev_DY_CC
赵新宇 5 months ago
parent
commit
41fd89a02c
  1. 11
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/CountJobs/CountJobAppService.cs

11
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>() { 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;

Loading…
Cancel
Save