From b211b4a64b4f59e5c84749d1577b766e6f6be7bf Mon Sep 17 00:00:00 2001 From: xusc Date: Wed, 20 Nov 2024 15:11:51 +0800 Subject: [PATCH] . --- .../Service/计划管理/IcsMo2Lot/IcsMo2LotAppService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/aspnet-core/ICS.Application/Business/Service/计划管理/IcsMo2Lot/IcsMo2LotAppService.cs b/src/aspnet-core/ICS.Application/Business/Service/计划管理/IcsMo2Lot/IcsMo2LotAppService.cs index 475898d0..bed90a34 100644 --- a/src/aspnet-core/ICS.Application/Business/Service/计划管理/IcsMo2Lot/IcsMo2LotAppService.cs +++ b/src/aspnet-core/ICS.Application/Business/Service/计划管理/IcsMo2Lot/IcsMo2LotAppService.cs @@ -52,6 +52,7 @@ namespace ICS.Application.Business.Service private readonly IIcsMo2LotManager _icsMo2LotManager; private readonly IRepository _repository; + private readonly IRepository _lotRoute2OpRepository; private readonly IRepository _lotNoSplitLogRepository; private readonly IRepository _lotNoStopLogRepository; private readonly IRepository _moRepository; @@ -89,6 +90,7 @@ namespace ICS.Application.Business.Service , IRepository mainCategoryRepository , IPublicBusinessAppService publishService , IRepository lotNoStopLogRepository + , IRepository lotRoute2OpRepository , IRepository repository) { _icsMo2LotManager = icsMo2LotManager; @@ -109,6 +111,7 @@ namespace ICS.Application.Business.Service _mainCategoryRepository = mainCategoryRepository; _publishService = publishService; _lotNoStopLogRepository = lotNoStopLogRepository; + _lotRoute2OpRepository = lotRoute2OpRepository; } [AbpAuthorize(IcsMo2LotPermissions.IcsMo2Lot_Query)] @@ -258,7 +261,7 @@ namespace ICS.Application.Business.Service { throw new UserFriendlyException("只能删除状态为新建的产品跟踪单"); } - + _lotRoute2OpRepository.Delete(x => x.LotNo == entity.Lotno); #endregion await _icsMo2LotManager.DeleteAsync(input.Id); @@ -279,6 +282,7 @@ namespace ICS.Application.Business.Service { throw new UserFriendlyException("只能删除状态为新建的产品跟踪单"); } + _lotRoute2OpRepository.Delete(x => x.LotNo == item.Lotno); } #endregion