From bbc55c38eb249c4eaba8b6346c00cce72406a28d Mon Sep 17 00:00:00 2001
From: zzr99 <1940172413@qq.com>
Date: 星期三, 17 十一月 2021 17:41:05 +0800
Subject: [PATCH] 基础资料:增加 故障原因列表 增加故障原因列表编辑

---
 WebAPI/Controllers/WebAPIController.cs |   14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/WebAPI/Controllers/WebAPIController.cs b/WebAPI/Controllers/WebAPIController.cs
index 03fbe4b..ff11189 100644
--- a/WebAPI/Controllers/WebAPIController.cs
+++ b/WebAPI/Controllers/WebAPIController.cs
@@ -2144,21 +2144,13 @@
         /// <returns></returns>
         [Route("Sc_MouldDotCheckRuleInter/GetMouldDotCheckRuleInterList")]
         [HttpGet]
-        public object GetMouldDotCheckRuleInterList(int MouldProjectID)
+        public object GetMouldDotCheckRuleInterList(string sWhere)
         {
-            if (MouldProjectID <= 0)
-            {
-                objjson.code = "0";
-                objjson.count = 0;
-                objjson.Message = "浜у搧鍣ㄥ叿鏈�夋嫨";
-                objjson.data = null;
-                return objjson;
-            }
             try
             {
                 SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
-                string sql = string.Format(@"select * from h_v_Sc_MouldDotCheckRuleBillList");
-                ds = oCN.RunProcReturn(sql, "h_v_Sc_MouldDotCheckRuleBillList");
+                string sql = string.Format(@"select * from h_v_Sc_MouldDotCheckRuleBillList ");
+                ds = oCN.RunProcReturn(sql+sWhere, "h_v_Sc_MouldDotCheckRuleBillList");
                 if (ds == null || ds.Tables[0].Rows.Count <= 0)
                 {
                     objjson.code = "0";

--
Gitblit v1.9.1