From f1e01b3972fe8dbe3e823c519bf1317d1c524a02 Mon Sep 17 00:00:00 2001 From: duhe <226547893@qq.com> Date: 星期三, 28 二月 2024 16:31:25 +0800 Subject: [PATCH] (已完成-普通)删除客户时,若客户存在关联的销售订单、销售出库单、生产订单,报错修改。 --- WebAPI/Controllers/CJGL/ProductionPlanReportController.cs | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/WebAPI/Controllers/CJGL/ProductionPlanReportController.cs b/WebAPI/Controllers/CJGL/ProductionPlanReportController.cs index 6e263eb..49fccb7 100644 --- a/WebAPI/Controllers/CJGL/ProductionPlanReportController.cs +++ b/WebAPI/Controllers/CJGL/ProductionPlanReportController.cs @@ -33,6 +33,7 @@ public int IsTrue; public int HState; public int HSTATUS; + public string sWhere1; } [Route("ProductionPlanReport/ProductionPlanReportList")] [HttpGet] @@ -44,7 +45,7 @@ ProductionPlanReport com = JsonConvert.DeserializeObject<ProductionPlanReport>(sWhere.ToString()); ds = oCN.RunProcReturn($"exec h_p_Cj_ProductionPlanReportList {com.HOrgID},'{com.HBeginDate}','{com.HEndDate}'" + - $",'{com.HICMOBillNo}',{com.HWorkShopID},'{com.F_BSV_WYID}','{com.HMaterNumber}','{com.HBillNo}',{com.IsTrue},'{com.HState}','{com.HSTATUS}'", "h_p_Cj_ProductionPlanReportList"); + $",'{com.HICMOBillNo}',{com.HWorkShopID},'{com.F_BSV_WYID}','{com.HMaterNumber}','{com.HBillNo}',{com.IsTrue},'{com.HState}','{com.HSTATUS}','{com.sWhere1}'", "h_p_Cj_ProductionPlanReportList"); objJsonResult.code = "1"; objJsonResult.count = 1; -- Gitblit v1.9.1