diff --git a/src/aspnet-core/ICS.Application/Business/Service/计划管理/IcsMo/IcsMoAppService.cs b/src/aspnet-core/ICS.Application/Business/Service/计划管理/IcsMo/IcsMoAppService.cs index 0770829d..e371d04f 100644 --- a/src/aspnet-core/ICS.Application/Business/Service/计划管理/IcsMo/IcsMoAppService.cs +++ b/src/aspnet-core/ICS.Application/Business/Service/计划管理/IcsMo/IcsMoAppService.cs @@ -516,7 +516,7 @@ namespace ICS.Application.Business.Service throw new UserFriendlyException(L("NoExistsCurrentCode", "产品途程,当前产品代码" + item.ItemCode)); } item.MoRoute = itemRoute.RouteCode; - AddMoRoute(item); + // AddMoRoute(item); } //else //{ @@ -541,7 +541,7 @@ namespace ICS.Application.Business.Service await _repository.UpdateAsync(item); #region 自动分为一批 - var mo2lot = await _mo2LotRepository.GetAll().Where(a => a.MoCode == item.MoCode&&a.MoSeq==item.MoSeq).FirstOrDefaultAsync(); + var mo2lot = _mo2LotRepository.GetAll().Where(a => a.MoCode == item.MoCode&&a.MoSeq==item.MoSeq).FirstOrDefault(); if (mo2lot == null) { IcsMo2LotEditDto editDto = new IcsMo2LotEditDto(); @@ -551,7 +551,7 @@ namespace ICS.Application.Business.Service editDto.MoCode = item.MoCode; editDto.MoSeq = item.MoSeq; editDto.MoId = item.Id; - var editDtos = await _mo2LotAppService.MoLotGenerate(editDto); //获取分批后的数据 + var editDtos = _mo2LotAppService.MoLotGenerate(editDto).Result; //获取分批后的数据 editDto.LotList = editDtos; CreateOrUpdateIcsMo2LotInput create = new CreateOrUpdateIcsMo2LotInput(); create.IcsMo2Lot = editDto;