From 9f9eacc481ca7c31e0448ef3641f108a4ab412a3 Mon Sep 17 00:00:00 2001 From: liuwf Date: Fri, 1 Nov 2024 17:48:51 +0800 Subject: [PATCH] =?UTF-8?q?fix-=E4=BF=AE=E5=A4=8D=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E8=AE=A1=E5=88=92bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.Repository/service/Impl/MesProductPlanServiceImpl.cs | 2 +- SlnMesnac.WPF/ViewModel/ProdMgmtViewModel.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/SlnMesnac.Repository/service/Impl/MesProductPlanServiceImpl.cs b/SlnMesnac.Repository/service/Impl/MesProductPlanServiceImpl.cs index 5433b71..5886dc3 100644 --- a/SlnMesnac.Repository/service/Impl/MesProductPlanServiceImpl.cs +++ b/SlnMesnac.Repository/service/Impl/MesProductPlanServiceImpl.cs @@ -68,7 +68,7 @@ namespace SlnMesnac.Repository.service.Impl { try { - return base._rep.GetFirst(x => x.PlanCode == planCode && x.StationId == _appConfig.stationId); + return base._rep.GetFirst(x => x.PlanCode == planCode); } catch (Exception ex) { diff --git a/SlnMesnac.WPF/ViewModel/ProdMgmtViewModel.cs b/SlnMesnac.WPF/ViewModel/ProdMgmtViewModel.cs index ef6b873..2d5c8f0 100644 --- a/SlnMesnac.WPF/ViewModel/ProdMgmtViewModel.cs +++ b/SlnMesnac.WPF/ViewModel/ProdMgmtViewModel.cs @@ -374,6 +374,7 @@ namespace SlnMesnac.WPF.ViewModel { hasPlan.PlanStatus = PlanStatusEnum.待执行; _prodMgmtBusiness.UpdateProdPlan(hasPlan); + } else {