From ff982948331200f951a486a7b38c11c009da19b2 Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期四, 17 七月 2025 14:29:49 +0800
Subject: [PATCH] 来料检获取附件信息

---
 StandardInterface/MES.Service/service/QC/LljService.cs |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/StandardInterface/MES.Service/service/QC/LljService.cs b/StandardInterface/MES.Service/service/QC/LljService.cs
index 57e31ce..6a7e76f 100644
--- a/StandardInterface/MES.Service/service/QC/LljService.cs
+++ b/StandardInterface/MES.Service/service/QC/LljService.cs
@@ -311,6 +311,31 @@
         return input.Substring(startIndex + 1, length);
     }
 
+    public List<QamftpDto> GetAttachments(string releaseNo)
+    {
+        var db = SqlSugarHelper.GetInstance();
+        return db.Queryable<MesQamftp>()
+            .Where(x => x.ReleaseNo == releaseNo)
+            .OrderBy(x => x.Fdate, OrderByType.Desc)
+            .Select(x => new QamftpDto
+            {
+                Id = x.Id,
+                ItemNo = x.ItemNo,
+                Ftype = x.Ftype,
+                Fattach = x.Fattach,
+                Fversion = x.Fversion,
+                Fdate = x.Fdate,
+                CreateBy = x.CreateBy,
+                CreateDate = x.CreateDate,
+                Company = x.Company,
+                Factory = x.Factory,
+                ReleaseNo = x.ReleaseNo,
+                F_type = x.F_type,
+                LastupdateBy = x.LastupdateBy,
+                LastupdateDate = x.LastupdateDate,
+                ItemId = x.ItemId
+            }).ToList();
+    }
     public int saveItem(LLJDto rkjDto)
     {
         var items = rkjDto.items;

--
Gitblit v1.9.3