From 8e5e2fb892df6cc8c61d7c03baa2412522ad11c4 Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期四, 25 九月 2025 19:17:11 +0800
Subject: [PATCH] SJ,XJ,RKJ优化

---
 StandardInterface/MESApplication/Controllers/QC/LljController.cs |  119 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 117 insertions(+), 2 deletions(-)

diff --git a/StandardInterface/MESApplication/Controllers/QC/LljController.cs b/StandardInterface/MESApplication/Controllers/QC/LljController.cs
index f45a36d..465fdfc 100644
--- a/StandardInterface/MESApplication/Controllers/QC/LljController.cs
+++ b/StandardInterface/MESApplication/Controllers/QC/LljController.cs
@@ -204,6 +204,51 @@
         }
     }
 
+    //savePhsyGid 涓昏〃娣诲姞鐮村潖瀹為獙
+    [HttpPost("savePhsyGid")]
+    public ResponseResult savePhsyGid([FromBody] LLJDto rkjDto)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            var tbBillList =
+                new LljService().savePhsyGid(rkjDto);
+            resultInfos.tbBillList = tbBillList;
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+    [HttpPost("saveDropdownFields")]
+    public ResponseResult saveDropdownFields([FromBody] LLJDto rkjDto)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            var tbBillList =
+                new LljService().saveDropdownFields(rkjDto);
+            resultInfos.tbBillList = tbBillList;
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
     //saveRemarksPid 瀛愯〃娣诲姞涓嶅悎鏍兼弿杩�
     [HttpPost("saveRemarksPid")]
     public ResponseResult saveRemarksPid([FromBody] LLJDto rkjDto)
@@ -320,11 +365,11 @@
     [HttpPost("getAttachments")]
     public ResponseResult GetAttachments([FromBody] JObject data)
     {
-        var releaseNo = data["releaseNo"]?.ToString();
+        var itemNo = data["itemNo"]?.ToString();
         try
         {
             dynamic resultInfos = new System.Dynamic.ExpandoObject();
-            var tbBillList = new LljService().GetAttachments(releaseNo);
+            var tbBillList = new LljService().GetAttachments(itemNo);
             if (tbBillList == null || tbBillList.Count == 0)
             {
                 return new ResponseResult
@@ -431,4 +476,74 @@
         
         return Ok();
     }
+[HttpPost("getWomdab")]
+    public ResponseResult getWomdab([FromBody] GetWomdabRequest data)
+    {
+        var daa001 = data.daa001?.ToString();
+        try
+        {
+            dynamic resultInfos = new System.Dynamic.ExpandoObject();
+            var tbBillList = new LljService().GetWomdab(daa001);
+            if (tbBillList == null || tbBillList.Count == 0)
+            {
+                return new ResponseResult
+                {
+                    status = 1,
+                    message = "璇ユ楠屽崟鏈笂浼犻檮浠朵俊鎭紒",
+                    data = null
+                };
+            }
+            resultInfos.tbBillList = tbBillList;
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+    
+
+    [HttpPost("GetWomdabById")]
+    public ResponseResult GetWomdabById([FromBody] GetWomdabRequest data)
+    {
+        var daa001 = data.daa001?.ToString();
+        var ItemNo = data.ItemNo?.ToString();
+        try
+        {
+            dynamic resultInfos = new System.Dynamic.ExpandoObject();
+            var tbBillList = new LljService().GetWomdabById(daa001,ItemNo);
+            if (tbBillList == null || tbBillList.Count == 0)
+            {
+                return new ResponseResult
+                {
+                    status = 1,
+                    message = "璇ユ楠屽崟鏈笂浼犻檮浠朵俊鎭紒",
+                    data = null
+                };
+            }
+            resultInfos.tbBillList = tbBillList;
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
+    public class GetWomdabRequest
+    {
+        public string daa001 { get; set; }
+        public string ItemNo { get; set; }
+    }
+
 }
\ No newline at end of file

--
Gitblit v1.9.3