From a876f5d5a48546cc3ce90582a897a419e629dca5 Mon Sep 17 00:00:00 2001 From: liuwf Date: Mon, 9 Sep 2024 19:10:30 +0800 Subject: [PATCH] . --- SlnMesnac.Business/ProdCompletionBusiness.cs | 15 ++++++++------- SlnMesnac.Business/ProdMgmtBusiness.cs | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/SlnMesnac.Business/ProdCompletionBusiness.cs b/SlnMesnac.Business/ProdCompletionBusiness.cs index 727273c..7ec99a2 100644 --- a/SlnMesnac.Business/ProdCompletionBusiness.cs +++ b/SlnMesnac.Business/ProdCompletionBusiness.cs @@ -80,18 +80,18 @@ namespace SlnMesnac.Business _mesProductOrderService = serviceProvider.GetRequiredService(); _baseMaterialInfoService = serviceProvider.GetRequiredService(); Init(); - // test(); + } private void test() { // MesProductPlanDetail? mesProductPlanDetail = sqlSugarClient.AsTenant().GetConnection("mes").Queryable().First(x => x.PlanCode == "20240724144533JL001"); - sqlSugarClient.AsTenant().BeginTran(); - string epc = "A123456"; - _mesProductPlanService.GetStartedProdPlan(out MesProductPlanDto productPlanDto); - string bigCode = GenerateBigBarcode(productPlanDto, epc); - BindingBarCode(bigCode, epc, productPlanDto); - sqlSugarClient.AsTenant().BeginTran(); + //sqlSugarClient.AsTenant().BeginTran(); + //string epc = "JYHB01010102"; + //_mesProductPlanService.GetStartedProdPlan(out MesProductPlanDto productPlanDto); + //string bigCode = GenerateBigBarcode(productPlanDto, epc); + //BindingBarCode(bigCode, epc, productPlanDto); + //sqlSugarClient.AsTenant().BeginTran(); } @@ -119,6 +119,7 @@ namespace SlnMesnac.Business /// public void checkPmStatus() { + PmTryAmount++; Task.Run(() => { while (true) diff --git a/SlnMesnac.Business/ProdMgmtBusiness.cs b/SlnMesnac.Business/ProdMgmtBusiness.cs index 9bbac2a..e1e8e6c 100644 --- a/SlnMesnac.Business/ProdMgmtBusiness.cs +++ b/SlnMesnac.Business/ProdMgmtBusiness.cs @@ -85,7 +85,7 @@ namespace SlnMesnac.Business _configInfoBusiness = configInfoBusiness; - + // TestTran(); }