From bf786ac5979146912b84b08ca2b5ff4f77cff72e Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 16 十一月 2023 14:03:54 +0800
Subject: [PATCH] 销售订单:获取下查数据
---
WebAPI/Controllers/WebAPIController.cs | 45 ++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 44 insertions(+), 1 deletions(-)
diff --git a/WebAPI/Controllers/WebAPIController.cs b/WebAPI/Controllers/WebAPIController.cs
index 00625a2..2472e33 100644
--- a/WebAPI/Controllers/WebAPIController.cs
+++ b/WebAPI/Controllers/WebAPIController.cs
@@ -1751,7 +1751,8 @@
[HttpGet]
public object GetCustomerList_Json(string Customer)
{
- sWhere = " Where HStopFlag=0 and HEndFlag=1";
+ sWhere = " Where HStopFlag=0 ";
+ //sWhere = " Where HStopFlag=0 and HEndFlag=1";
//sWhere = " Where HStopFlag=0 and HEndFlag=1 and HUSEORGID = " + DBUtility.ClsPub.HORGANIZATIONSID.ToString();
if (Customer != "")
{
@@ -1789,6 +1790,48 @@
}
/// <summary>
+ /// 鑾峰彇瀹㈡埛鍒楄〃
+ /// </summary>
+ /// <returns></returns>
+ [Route("Web/GetCustomerList_Json_New1")]
+ [HttpGet]
+ public object GetCustomerList_Json_New1(string sWhere)
+ {
+ try
+ {
+ ds = webserver.GetCustomerList(sWhere, ref DBUtility.ClsPub.sErrInfo);
+ if (ds == null || ds.Tables[0].Rows.Count <= 0)
+ {
+ objjson.code = "0";
+ objjson.count = 0;
+ objjson.Message = "鑾峰彇澶辫触" + DBUtility.ClsPub.sErrInfo;
+ objjson.data = null;
+ return objjson;
+ }
+ else
+ {
+ objjson.code = "0";
+ objjson.count = 1;
+ objjson.Message = "鑾峰彇鎴愬姛!";
+ objjson.data = ds.Tables[0];
+ return objjson;
+ }
+ }
+ catch (Exception ex)
+ {
+
+ objjson.code = "0";
+ objjson.count = 0;
+ objjson.Message = "鑾峰彇澶辫触" + ex.ToString();
+ objjson.data = null;
+ return objjson;
+ }
+ }
+
+
+
+
+ /// <summary>
/// 鑾峰彇宸ュ簭鍒楄〃
/// <summary>
///鍙傛暟锛歴tring sql銆�
--
Gitblit v1.9.1