From 9fc253e4b7c5d77082ca8d71213e6cf351ca28e9 Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期五, 05 九月 2025 16:23:17 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs b/WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs
index 498150e..d67b8a5 100644
--- a/WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs
+++ b/WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs
@@ -2050,22 +2050,17 @@
                     return objJsonResult;
                 }
 
-                DataSet ds2 = oCN.RunProcReturn("exec h_p_Kf_CheckSellOutBill_BalanceQuery " + HInterID, "h_p_Kf_CheckSellOutBill_BalanceQuery");
+                DataSet ds2 = oCN.RunProcReturn("exec h_p_Kf_CheckSellOutBill_CrediControl " + HInterID, "h_p_Kf_CheckSellOutBill_BalanceQuery");
 
-                if ((int)ds2.Tables[0].Rows[0]["HBack"] == 1)
+                if (ds2 == null)
                 {
-                    objJsonResult.code = "0";
-                    objJsonResult.count = 0;
-                    objJsonResult.Message = ds2.Tables[0].Rows[0]["HRemark"].ToString();
-                    objJsonResult.data = null;
-                    return objJsonResult;
-                }
-                else
+                    throw new Exception("鏃犺繑鍥炲��!");
+                }else
                 {
                     objJsonResult.code = "1";
                     objJsonResult.count = 1;
                     objJsonResult.Message = "Sucess锛�";
-                    objJsonResult.data = ds2.Tables[1];
+                    objJsonResult.data = ds2.Tables[0];
                     return objJsonResult;
                 }
             }

--
Gitblit v1.9.1