From c42507edbe94f0c71044cf7c69d1b5698d194217 Mon Sep 17 00:00:00 2001 From: zrg <z18737863051@163.com> Date: 星期四, 31 十月 2024 09:40:34 +0800 Subject: [PATCH] 增加设备工艺参数点检表查询方法, --- WebAPI/Controllers/QC_ManagementController.cs | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/WebAPI/Controllers/QC_ManagementController.cs b/WebAPI/Controllers/QC_ManagementController.cs index 76b8b9b..d24128a 100644 --- a/WebAPI/Controllers/QC_ManagementController.cs +++ b/WebAPI/Controllers/QC_ManagementController.cs @@ -111,6 +111,53 @@ #endregion #region 鏌ヨ鍒楄〃鏂规硶 + + /// <summary> + /// 杩斿洖妫�楠屾柟妗堝崟鍒楄〃 浠呭寘鍚富琛� + /// </summary> + /// <param name="sWhere"></param> + /// <returns></returns> + [Route("QC_Management/MES_QC_CheckProjectList_Json_Main")] + [HttpGet] + public object MES_QC_CheckProjectList_Json_Main(string sWhere, string user) + { + DataSet ds; + try + { + //鍒ゆ柇鏉冮檺 + if (!DBUtility.ClsPub.Security_Log("Gy_QCCheckProject_Query", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳煡璇㈡潈闄�"; + objJsonResult.data = null; + return objJsonResult; + } + + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + if (sWhere == null || sWhere.Equals("")) + { + ds = oCN.RunProcReturn("select * from h_v_Gy_QCCheckProjectList_Main order by 鏃ユ湡 desc ", "h_v_Gy_QCCheckProjectList_Main"); + } + else + { + string sql1 = "select * from h_v_Gy_QCCheckProjectList_Main where 1=1"; + string sql = sql1 + sWhere + " order by 鏃ユ湡 desc "; + ds = oCN.RunProcReturn(sql, "h_v_Gy_QCCheckProjectList_Main"); + } + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + return GetObjectJson(ds); + } + + /// <summary> /// 杩斿洖妫�楠屾柟妗堝崟鍒楄〃 /// </summary> -- Gitblit v1.9.1