From f4e84a98facb28bbfc63343c81095a9787812e27 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期六, 30 八月 2025 16:25:51 +0800
Subject: [PATCH] 1.PDA分组织
---
Controllers/QC/IpqcController.cs | 177 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 172 insertions(+), 5 deletions(-)
diff --git a/Controllers/QC/IpqcController.cs b/Controllers/QC/IpqcController.cs
index 5f9fd73..bad00b2 100644
--- a/Controllers/QC/IpqcController.cs
+++ b/Controllers/QC/IpqcController.cs
@@ -99,7 +99,7 @@
//鏇存柊妫�楠岄」鐩璇佷俊鎭�
[HttpPost("updateIpqcRzxx")]
- public ResponseResult updateIpqcRzxx(LLJDto ipqcDto)
+ public ResponseResult updateIpqcRzxx(dynamic ipqcDto)
{
try
{
@@ -118,7 +118,9 @@
return ResponseResult.ResponseError(ex);
}
}
-
+ /// <summary>
+ /// 棣栨鍗曟嵁鏌ヨ
+ /// </summary>
[HttpPost("createByWomdaa")]
public ResponseResult CreateByWomdaa(dynamic query)
{
@@ -138,7 +140,9 @@
return ResponseResult.ResponseError(ex);
}
}
-
+ /// <summary>
+ /// 鑾峰彇琛ㄦ牸閰嶇疆
+ /// </summary>
[HttpPost("GetTableConfig")]
public ResponseResult GetTableConfig([FromBody] dynamic query)
{
@@ -169,7 +173,9 @@
return ResponseResult.ResponseError(ex);
}
}
-
+ /// <summary>
+ /// 淇濆瓨琛ㄦ牸閰嶇疆
+ /// </summary>
[HttpPost("SaveTableConfig")]
public ResponseResult SaveTableConfig([FromBody] dynamic query)
{
@@ -201,6 +207,167 @@
return ResponseResult.ResponseError(ex);
}
}
+ /// <summary>
+ /// 鑾峰彇璁よ瘉淇℃伅鍒楄〃
+ /// </summary>
+ [HttpPost("GetRzxxList")]
+ public ResponseResult GetRzxxList([FromBody] dynamic query)
+ {
+ try
+ {
+ if (query.mxguid == null)
+ throw new ArgumentException("妫�楠岄」鐩瓽UID涓嶈兘涓虹┖");
-
+ var rzxxList = m.GetRzxxList(query.mxguid?.ToString());
+
+ dynamic resultInfos = new ExpandoObject();
+ resultInfos.tbBillList = rzxxList;
+
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = resultInfos
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+ /// <summary>
+ /// 鏇存柊璁よ瘉淇℃伅_鐢熶骇鏃ユ湡
+ /// </summary>
+ [HttpPost("updateScDate")]
+ public ResponseResult UpdateScDate([FromBody] dynamic query)
+ {
+ try
+ {
+ if (query.mxguid == null)
+ throw new ArgumentException("妫�楠岄」鐩瓽UID涓嶈兘涓虹┖");
+ if (query.scDateValue == null)
+ throw new ArgumentException("鏃ユ湡鍙傛暟涓嶈兘涓虹┖");
+
+ var affectedRows = m.UpdateScDate(
+ query.scDateValue?.ToString(),
+ query.mxguid?.ToString()
+ );
+
+ return new ResponseResult
+ {
+ status = affectedRows > 0 ? 0 : 1,
+ message = affectedRows > 0 ? "鏃ユ湡鏇存柊鎴愬姛" : "鏃犳暟鎹洿鏂�",
+ data = new { updated = affectedRows }
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+
+ /// <summary>
+ /// 淇濆瓨璁よ瘉淇℃伅鐩稿叧浣跨敤鏁伴噺
+ /// </summary>
+ [HttpPost("saveIpqcrzxxNum")]
+ public ResponseResult SaveIpqcrzxxNum([FromBody] dynamic query)
+ {
+ try
+ {
+ if (query.guid == null || query.ipqcrzxxNum == null)
+ throw new ArgumentException("鍙傛暟涓嶈兘涓虹┖");
+
+ var affectedRows = m.UpdateRzxxNum(
+ query.ipqcrzxxNum?.ToString(),
+ query.guid?.ToString()
+ );
+
+ return new ResponseResult
+ {
+ status = affectedRows > 0 ? 0 : 1,
+ message = affectedRows > 0 ? "鏁伴噺鏇存柊鎴愬姛" : "鏃犳暟鎹洿鏂�",
+ data = new { updated = affectedRows }
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+ /// <summary>
+ /// 淇濆瓨鍝佹按娴嬭瘯鏄惁鏈夊紓鍛�
+ /// </summary>
+ [HttpPost("saveIpqCpscs")]
+ public ResponseResult SaveIpqCpscs([FromBody] dynamic query)
+ {
+ try
+ {
+ if (query.guid == null || query.ipqCpscs == null)
+ throw new ArgumentException("鍙傛暟涓嶈兘涓虹┖");
+
+ var affectedRows = m.UpdateCpscs(
+ query.ipqCpscs?.ToString(),
+ query.guid?.ToString()
+ );
+
+ return new ResponseResult
+ {
+ status = affectedRows > 0 ? 0 : 1,
+ message = affectedRows > 0 ? "鏄惁鏈夋棤寮傚懗鏇存柊鎴愬姛" : "鏃犳暟鎹洿鏂�",
+ data = new { updated = affectedRows }
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+
+
+ /// <summary>
+ /// 鐜板満鏀舵枡鑾峰彇鍙�夊伐鍗曚俊鎭�
+ /// </summary>
+ /// <param name="query"></param>
+ /// <returns></returns>
+ [HttpPost("GetIpqcXjDaa")]
+ public ResponseResult GetIpqcXjDaa([FromBody] dynamic query)
+ {
+ try
+ {
+ dynamic resultInfos = new ExpandoObject();
+ resultInfos.tbBillList = m.GetIpqcXjDaa(query);
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = resultInfos
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+
+ [HttpPost("selIpqcItemsByGw")]
+ public ResponseResult SelIpqcItemsByGw([FromBody] dynamic query)
+ {
+ try
+ {
+ dynamic resultInfos = new ExpandoObject();
+ resultInfos.tbBillList = m.SelIpqcItemsByGw(query);
+ return new ResponseResult
+ {
+ status = 0,
+ message = "OK",
+ data = resultInfos
+ };
+ }
+ catch (Exception ex)
+ {
+ return ResponseResult.ResponseError(ex);
+ }
+ }
+
+
}
\ No newline at end of file
--
Gitblit v1.9.3