From 1c90213ebd42e2d00324a71a67a60d07e4c8a7da Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期二, 28 四月 2026 09:08:39 +0800
Subject: [PATCH] 修复接口签名,新增抽样方案

---
 WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs b/WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs
index 16304c2..0fdea76 100644
--- a/WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs
+++ b/WebAPI/Controllers/CGGL/Cg_POInStockBillController.cs
@@ -11,6 +11,7 @@
 using WebAPI.Models;
 using SyntacticSugar.constant;
 using WebAPI.Utility;
+using WebAPI.Service;
 
 namespace WebAPI.Controllers
 {
@@ -67,10 +68,45 @@
                 return objJsonResult;
             }
         }
+        [Route("Cg_POInStockBill/cx1")]
+        [HttpGet]
+        public object cx1(long HInterID,long HSubID)
+        {
+            try
+            {
+
+                ds = oCN.RunProcReturn("select * from h_v_IF_POInStockBillEdit where hmainid=" + HInterID + " and hsubid=" + HSubID, "h_v_IF_POInStockBillList");
+                if (ds == null || ds.Tables[0].Rows.Count == 0)
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "false锛�";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                else
+                {
+                    objJsonResult.code = "1";
+                    objJsonResult.count = 1;
+                    objJsonResult.Message = "Sucess锛�";
+                    objJsonResult.data = ds.Tables[0];
+                    return objJsonResult;
+                }
+            }
+            catch (Exception e)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "Exception锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
 
         #region 鏀舵枡閫氱煡鍗曞垎椤靛垪琛�
         [Route("Cg_POInStockBill/page")]
         [HttpGet]
+        [RequireSignature]
         public object Cg_POInStockBillPage(string sWhere, string user, int page, int size)
         {
             DataSet ds;

--
Gitblit v1.9.1