From 0ac65b10a59bcca5b22bcf03086c8aaa36a8a525 Mon Sep 17 00:00:00 2001
From: zjh <2207896513@qq.com>
Date: 星期四, 12 六月 2025 20:42:41 +0800
Subject: [PATCH] 1,签收送货单接口,添加签收人;2.来料检接口,添加到货时间字段

---
 StandardPda/MESApplication/Controllers/QC/LljController.cs |   87 +++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 82 insertions(+), 5 deletions(-)

diff --git a/StandardPda/MESApplication/Controllers/QC/LljController.cs b/StandardPda/MESApplication/Controllers/QC/LljController.cs
index be26b29..3efd2dc 100644
--- a/StandardPda/MESApplication/Controllers/QC/LljController.cs
+++ b/StandardPda/MESApplication/Controllers/QC/LljController.cs
@@ -290,12 +290,40 @@
             var tbBillList =
                 new LljService().getFromInfo(id);
             resultInfos.tbBillList = tbBillList;
-            return new ResponseResult
+            if (resultInfos.tbBillList.Rows.Count>0)
             {
-                status = 0,
-                message = "OK",
-                data = resultInfos
-            };
+                return new ResponseResult
+                {
+                    status = 0,
+                    message = "OK",
+                    data = resultInfos
+                };
+            }
+            else
+            {
+                var mj =
+                new LljService().getFromMJCount(id);
+                if (mj>0)
+                {
+                    return new ResponseResult
+                    {
+                        status = 1,
+                        message = "璇ョ墿鏂欎负鍏嶆鐗╂枡锛屾棤闇�妫�楠岋紒",
+                        data = resultInfos
+                    };
+                }
+                else
+                {
+                    return new ResponseResult
+                    {
+                        status = 1,
+                        message = "鎵句笉鍒版楠屽崟鎹紝璇风‘璁よ揣鐗╂槸鍚︾鏀讹紒",
+                        data = resultInfos
+                    };
+                }
+              
+            }
+           
         }
         catch (Exception ex)
         {
@@ -580,4 +608,53 @@
             return ResponseResult.ResponseError(ex);
         }
     }
+    /// <summary>
+    ///     閫佽揣鍗曠鏀跺苟鐢熸垚鍒拌揣鍗�
+    /// </summary>
+    /// <param name="id"></param>
+    /// <returns></returns>
+    [HttpPost("SignDelivery2")]
+    public async Task<ResponseResult> SignDelivery2(string id,string c_user)
+    {
+        try
+        {
+            //string[] msg = new LljService().SaveSysSubmit(sysSubmit);
+            var msg = await new LljService().SignDelivery2(id, c_user);
+            return new ResponseResult
+            {
+                status = int.Parse(msg[0]),
+                message = msg[1],
+                data = msg[1]
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+    /// <summary>
+    ///     鑾峰彇鎼哄浜戞祴璇曠幆澧冪鍚�
+    /// </summary>
+    /// <param name="id"></param>
+    /// <returns></returns>
+    [HttpGet("getTestXKYSign")]
+    public async Task<ResponseResult> getTestXKYSign()
+    {
+        try
+        {
+            //string[] msg = new LljService().SaveSysSubmit(sysSubmit);
+            var msg = await new LljService().getTestXKYSign();
+            return new ResponseResult
+            {
+                status = int.Parse(msg[0]),
+                message = "OK",
+                data = msg[1]
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
 }
\ No newline at end of file

--
Gitblit v1.9.3