From 27f0636da2b4b22a16404a3dbea4b3d3d477a65e Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期五, 15 三月 2024 15:19:28 +0800
Subject: [PATCH] 生产进度报表优化查询语句
---
VueWebApi/Controllers/AppProductionManagementController.cs | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/VueWebApi/Controllers/AppProductionManagementController.cs b/VueWebApi/Controllers/AppProductionManagementController.cs
index abe8ee5..7a084e2 100644
--- a/VueWebApi/Controllers/AppProductionManagementController.cs
+++ b/VueWebApi/Controllers/AppProductionManagementController.cs
@@ -1,4 +1,5 @@
-锘縰sing Newtonsoft.Json.Linq;
+锘縰sing Newtonsoft.Json;
+using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -7,13 +8,14 @@
using System.Web;
using System.Web.Http;
using VueWebApi.DLL.BLL;
+using VueWebApi.Models;
using VueWebApi.Tools;
namespace VueWebApi.Controllers
{
[RoutePrefix(prefix: "api/AppProductionManagement")]
[ControllerGroup("App鐢熶骇绠$悊", "鍦ㄧ嚎鎺ュ彛")]
- //[ChannelActionFilterAttributeApp]
+ [ChannelActionFilterAttributeApp]
public class AppProductionManagementController : ApiController
{
//瀹氫箟鍏ㄥ眬淇℃伅杩斿洖鍙橀噺
@@ -177,11 +179,11 @@
string taskqty = HttpContext.Current.Request["taskqty"].ToString();//浠诲姟鏁伴噺
string startqty = HttpContext.Current.Request["startqty"].ToString();//寮�宸ユ暟閲�
string reportqty = HttpContext.Current.Request["reportqty"].ToString();//鎶ュ伐宸ユ暟閲�
- string ngqty = HttpContext.Current.Request["ngqty"].ToString();//涓嶈壇鏁伴噺
- string badcode = HttpContext.Current.Request["badcode"].ToString();//涓嶈壇鍘熷洜缂栫爜
+ string defectlist = HttpContext.Current.Request["defectlist"].ToString();//涓嶈壇姹囨��
string remarks = HttpContext.Current.Request["remarks"].ToString();//澶囨敞
string username = HttpContext.Current.Request["admin"].ToString();//鎿嶄綔浜哄憳
- mes = ProductionManagementBLL.SavaMesOrderStepReport(mesordercode, partcode, stepseq, stepcode, eqpcode, inbarcode, reckway,usergroupcode, reportuser, taskqty, startqty, reportqty, ngqty, badcode, remarks, username);
+ List<ReportDefectList> defectobjs = JsonConvert.DeserializeObject<List<ReportDefectList>>(defectlist);
+ mes = ProductionManagementBLL.SavaMesOrderStepReport(mesordercode, partcode, stepseq, stepcode, eqpcode, inbarcode, reckway,usergroupcode, reportuser, taskqty, startqty, reportqty, defectobjs, remarks, username);
return TJson.toJson(mes);
}
#endregion
@@ -229,11 +231,11 @@
string inuser = HttpContext.Current.Request["inuser"].ToString();//鏀舵枡浜哄憳
string taskqty = HttpContext.Current.Request["taskqty"].ToString();//浠诲姟鏁伴噺
string sqty = HttpContext.Current.Request["sqty"].ToString();//鏀舵枡鏁伴噺
- string ngqty = HttpContext.Current.Request["ngqty"].ToString();//涓嶈壇鏁伴噺
- string badcode = HttpContext.Current.Request["badcode"].ToString();//涓嶈壇鍘熷洜缂栫爜
+ string defectlist = HttpContext.Current.Request["defectlist"].ToString();//涓嶈壇姹囨��
string remarks = HttpContext.Current.Request["remarks"].ToString();//澶囨敞
string username = HttpContext.Current.Request["admin"].ToString();//鎿嶄綔浜哄憳
- mes = ProductionManagementBLL.SavaMesOrderStepIn(mesordercode, partcode, stepseq, stepcode, wxcode, inbarcode, inuser, taskqty, sqty, ngqty, badcode, remarks, username);
+ List<ReportDefectList> defectobjs = JsonConvert.DeserializeObject<List<ReportDefectList>>(defectlist);
+ mes = ProductionManagementBLL.SavaMesOrderStepIn(mesordercode, partcode, stepseq, stepcode, wxcode, inbarcode, inuser, taskqty, sqty, defectobjs, remarks, username);
return TJson.toJson(mes);
}
#endregion
--
Gitblit v1.9.3