From 6a19b4394850d0aac5cf3aab8a0136c77515c41d Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期二, 19 三月 2024 17:16:14 +0800
Subject: [PATCH] 生产进度报表查询条件增减
---
VueWebCoreApi/DLL/DAL/ReportManagerDAL.cs | 34 ++--------------------------------
1 files changed, 2 insertions(+), 32 deletions(-)
diff --git a/VueWebCoreApi/DLL/DAL/ReportManagerDAL.cs b/VueWebCoreApi/DLL/DAL/ReportManagerDAL.cs
index a938209..228ed13 100644
--- a/VueWebCoreApi/DLL/DAL/ReportManagerDAL.cs
+++ b/VueWebCoreApi/DLL/DAL/ReportManagerDAL.cs
@@ -20,7 +20,7 @@
#region[鐢熶骇杩涘害鎶ヨ〃]
- public static ToMessage ProductionScheduleReportSearch(string wkshopcode, string status, string wocode, string saleordercode, string routecode, string routename, string partcode, string partname, string partspec, string opendate, string closedate, int startNum, int endNum, string prop, string order)
+ public static ToMessage ProductionScheduleReportSearch(string wkshopcode, string status, string wocode, string partcode, string partname, string partspec, string opendate, string closedate, int startNum, int endNum, string prop, string order)
{
var dynamicParams = new DynamicParameters();
string search = "";
@@ -50,21 +50,6 @@
{
search += "and AA.wo_code like '%'+@wocode+'%' ";
dynamicParams.Add("@wocode", wocode);
- }
- if (saleordercode != "" && saleordercode != null)
- {
- search += "and AA.saleOrderCode like '%'+@saleordercode+'%' ";
- dynamicParams.Add("@saleordercode", saleordercode);
- }
- if (routecode != "" && routecode != null)
- {
- search += "and AA.route_code like '%'+@routecode+'%' ";
- dynamicParams.Add("@routecode", routecode);
- }
- if (routename != "" && routename != null)
- {
- search += "and AA.route_name like '%'+@routename+'%' ";
- dynamicParams.Add("@routename", routename);
}
if (partcode != "" && partcode != null)
{
@@ -134,7 +119,7 @@
#endregion
#region[鐢熶骇杩涘害鎶ヨ〃瀵煎嚭]
- public static ToMessage ProductionScheduleReportExcelSearch(string wkshopcode, string status, string wocode, string saleordercode, string routecode, string routename, string partcode, string partname, string partspec, string opendate, string closedate)
+ public static ToMessage ProductionScheduleReportExcelSearch(string wkshopcode, string status, string wocode,string partcode, string partname, string partspec, string opendate, string closedate)
{
var dynamicParams = new DynamicParameters();
string search = "";
@@ -164,21 +149,6 @@
{
search += "and AA.wo_code like '%'+@wocode+'%' ";
dynamicParams.Add("@wocode", wocode);
- }
- if (saleordercode != "" && saleordercode != null)
- {
- search += "and AA.saleOrderCode like '%'+@saleordercode+'%' ";
- dynamicParams.Add("@saleordercode", saleordercode);
- }
- if (routecode != "" && routecode != null)
- {
- search += "and AA.route_code like '%'+@routecode+'%' ";
- dynamicParams.Add("@routecode", routecode);
- }
- if (routename != "" && routename != null)
- {
- search += "and AA.route_name like '%'+@routename+'%' ";
- dynamicParams.Add("@routename", routename);
}
if (partcode != "" && partcode != null)
{
--
Gitblit v1.9.3