From 611ac2e3f6f5cbfa30b1a72d75fafc358b792e35 Mon Sep 17 00:00:00 2001 From: 啊鑫 <t2856754968@163.com> Date: 星期一, 14 十月 2024 13:30:23 +0800 Subject: [PATCH] 11 --- MESApplication/bin/Release/net8.0/MESApplication.exe | 0 MESApplication/bin/Release/net8.0/publish/MESApplication.pdb | 0 MESApplication/bin/Debug/net8.0/MES.Service.pdb | 0 MESApplication/bin/Debug/net8.0/MESApplication.dll | 0 MES.Service/bin/Debug/net8.0/MES.Service.dll | 0 MESApplication/bin/Release/net8.0/publish/MESApplication.dll | 0 MES.Service/service/QC/RKJService.cs | 28 +++++++------- MESApplication/bin/Debug/net8.0/MES.Service.dll | 0 MESApplication/bin/Debug/net8.0/MESApplication.pdb | 0 MESApplication/bin/Release/net8.0/MES.Service.dll | 0 MESApplication/bin/Release/net8.0/MESApplication.dll | 0 MES.Service/Dto/service/RkDaa002.cs | 4 ++ MESApplication/bin/Debug/net8.0/MESApplication.exe | 0 MESApplication/bin/Release/net8.0/publish/MES.Service.pdb | 0 MES.Service/bin/Release/net8.0/MES.Service.dll | 0 MES.Service/Modes/QsItemOqcReq.cs | 2 MESApplication/bin/Release/net8.0/MES.Service.pdb | 0 MESApplication/bin/Release/net8.0/publish/MESApplication.exe | 0 MES.Service/Modes/MesDeptUser.cs | 80 ++++++++++++++++++++++++++++++++++++++++ MES.Service/bin/Release/net8.0/MES.Service.pdb | 0 MESApplication/bin/Release/net8.0/MESApplication.pdb | 0 MES.Service/bin/Debug/net8.0/MES.Service.pdb | 0 MESApplication/bin/Release/net8.0/publish/MES.Service.dll | 0 23 files changed, 99 insertions(+), 15 deletions(-) diff --git a/MES.Service/Dto/service/RkDaa002.cs b/MES.Service/Dto/service/RkDaa002.cs index cd53487..35d74c3 100644 --- a/MES.Service/Dto/service/RkDaa002.cs +++ b/MES.Service/Dto/service/RkDaa002.cs @@ -24,4 +24,8 @@ [SugarColumn(ColumnName = "ITEM_NAME")] public string? ItemName { get; set; } + + + [SugarColumn(ColumnName = "DAA020")] + public string? Daa020 { get; set; } } \ No newline at end of file diff --git a/MES.Service/Modes/MesDeptUser.cs b/MES.Service/Modes/MesDeptUser.cs new file mode 100644 index 0000000..287728a --- /dev/null +++ b/MES.Service/Modes/MesDeptUser.cs @@ -0,0 +1,80 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; + +namespace MES.Service.Modes +{ + /// <summary> + /// + ///</summary> + [SugarTable("MES_DEPT_USER")] + public class MesDeptUser + { + /// <summary> + /// SEQ_USER + ///</summary> + [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)] + public decimal Id { get; set; } + + /// <summary> + /// 杞﹂棿 + ///</summary> + [SugarColumn(ColumnName = "WORKSHOP")] + public string Workshop { get; set; } + + /// <summary> + /// 缂栫爜 + ///</summary> + [SugarColumn(ColumnName = "CODE")] + public string Code { get; set; } + + /// <summary> + /// 鐢ㄦ埛 + ///</summary> + [SugarColumn(ColumnName = "USER_NO")] + public string UserNo { get; set; } + + /// <summary> + /// 宀椾綅 + ///</summary> + [SugarColumn(ColumnName = "POST")] + public string Post { get; set; } + + /// <summary> + /// 鐢佃瘽 + ///</summary> + [SugarColumn(ColumnName = "PHONE")] + public string Phone { get; set; } + + /// <summary> + /// 鏄惁绂昏亴 + ///</summary> + [SugarColumn(ColumnName = "IS_DEPARTURE")] + public short? IsDeparture { get; set; } + + /// <summary> + /// 0鏈鏍� 1瀹℃牳 + ///</summary> + [SugarColumn(ColumnName = "STATUS")] + public decimal? Status { get; set; } + + /// <summary> + /// 瀹℃牳浜� + ///</summary> + [SugarColumn(ColumnName = "ISSUED_BY")] + public string IssuedBy { get; set; } + + /// <summary> + /// 瀹℃牳鏃堕棿 + ///</summary> + [SugarColumn(ColumnName = "ISSUED_DATE")] + public DateTime? IssuedDate { get; set; } + + /// <summary> + /// 鐢ㄦ埛鍚� + ///</summary> + [SugarColumn(ColumnName = "USER_NAME")] + public string UserName { get; set; } + } +} \ No newline at end of file diff --git a/MES.Service/Modes/QsItemOqcReq.cs b/MES.Service/Modes/QsItemOqcReq.cs index edac96c..03c56fe 100644 --- a/MES.Service/Modes/QsItemOqcReq.cs +++ b/MES.Service/Modes/QsItemOqcReq.cs @@ -134,5 +134,5 @@ [SugarColumn(IsIgnore = true)] public decimal? ItemInId { get; set; } - [SugarColumn(IsIgnore = true)] public string Bgr { get; set; } + [SugarColumn(IsIgnore = true)] public string? Bgr { get; set; } } \ No newline at end of file diff --git a/MES.Service/bin/Debug/net8.0/MES.Service.dll b/MES.Service/bin/Debug/net8.0/MES.Service.dll index decc7cc..607b9bc 100644 --- a/MES.Service/bin/Debug/net8.0/MES.Service.dll +++ b/MES.Service/bin/Debug/net8.0/MES.Service.dll Binary files differ diff --git a/MES.Service/bin/Debug/net8.0/MES.Service.pdb b/MES.Service/bin/Debug/net8.0/MES.Service.pdb index 2c09d16..66f88a4 100644 --- a/MES.Service/bin/Debug/net8.0/MES.Service.pdb +++ b/MES.Service/bin/Debug/net8.0/MES.Service.pdb Binary files differ diff --git a/MES.Service/bin/Release/net8.0/MES.Service.dll b/MES.Service/bin/Release/net8.0/MES.Service.dll index 234399f..8f879d6 100644 --- a/MES.Service/bin/Release/net8.0/MES.Service.dll +++ b/MES.Service/bin/Release/net8.0/MES.Service.dll Binary files differ diff --git a/MES.Service/bin/Release/net8.0/MES.Service.pdb b/MES.Service/bin/Release/net8.0/MES.Service.pdb index b859561..f0999a1 100644 --- a/MES.Service/bin/Release/net8.0/MES.Service.pdb +++ b/MES.Service/bin/Release/net8.0/MES.Service.pdb Binary files differ diff --git a/MES.Service/service/QC/RKJService.cs b/MES.Service/service/QC/RKJService.cs index 00b78f9..e464b5a 100644 --- a/MES.Service/service/QC/RKJService.cs +++ b/MES.Service/service/QC/RKJService.cs @@ -57,11 +57,10 @@ public List<RkDaa002> GetDaa001s(string lineNo) { var db = SqlSugarHelper.GetInstance(); - // return db.Queryable<RKJDaa001>() - // .Where(t => t.LineNo == lineNo) - // .OrderBy(t => t.BillNo, OrderByType.Desc) - // .ToList(); - return null; + return db.Queryable<RkDaa002>() + .Where(t => lineNo.Contains(t.Daa020)) + .OrderBy(t => t.BillNo, OrderByType.Desc) + .ToList(); } //鏍规嵁妫�楠屾爣鍑嗘潵璁$畻妫�楠屼釜鏁� @@ -600,8 +599,8 @@ var qsItemOqcReqs = db .Queryable<QsItemOqcReq, MesItems, MesInvItemIns, MesInvTransaction, - RKJDaa001, Womdaa, VLineUser>( - (a, b, c, ca, m, da, z) => new JoinQueryInfos( + RKJDaa001, Womdaa, VLineUser,MesDeptUser>( + (a, b, c, ca, m, da, z,d) => new JoinQueryInfos( JoinType.Left, a.ItemNo == b.ItemNo, JoinType.Left, a.BillNo == c.BillNo, JoinType.Left, @@ -610,23 +609,24 @@ c.Factory == ca.Factory, JoinType.Left, c.Id == m.ItemInId && a.ItemNo == m.ItemNo, JoinType.Left, da.Daa001 == c.RbillNo, - JoinType.Left, da.Daa015 == z.LineNo + JoinType.Left, da.Daa015 == z.LineNo, + JoinType.Left,c.Bgr == d.UserNo )) // .WhereIF(lineNo != null && lineNo.Length > 0, // (a, b, c, ca, m, da) => lineNo.Contains(da.Daa015)) .WhereIF(!"PL017".Equals(queryObj.createUser), - (a, b, c, ca, m, da, z) => lineNo.Contains(da.Daa015)) + (a, b, c, ca, m, da, z,d) => lineNo.Contains(da.Daa015)) .WhereIF(!string.IsNullOrEmpty(queryObj.id), - (a, b, c, ca, m, da, z) => a.Id.ToString() == queryObj.id) + (a, b, c, ca, m, da, z,d) => a.Id.ToString() == queryObj.id) .WhereIF( StringUtil.IsNotNullOrEmpty(queryObj.result) && "鏈畬鎴�".Equals(queryObj.result), - (a, b, c, ca, m, da, z) => a.FcheckResu == null) + (a, b, c, ca, m, da, z,d) => a.FcheckResu == null) .WhereIF( StringUtil.IsNotNullOrEmpty(queryObj.result) && !"鏈畬鎴�".Equals(queryObj.result), - (a, b, c, ca, m, da, z) => a.FcheckResu != null) - .Select((a, b, c, ca, m, da, z) => new QsItemOqcReq + (a, b, c, ca, m, da, z,d) => a.FcheckResu != null) + .Select((a, b, c, ca, m, da, z,d) => new QsItemOqcReq { BillNo = a.BillNo, Fsubmit = a.Fsubmit, @@ -646,7 +646,7 @@ Daa015 = da.Daa015, LineNo = c.LineNo, Quantity = m.Quantity, - Bgr = c.Bgr + Bgr = d.UserName }) .OrderBy(a => a.CreateDate, OrderByType.Desc) .ToPageList(queryObj.PageIndex, queryObj.Limit, ref totalCount); diff --git a/MESApplication/bin/Debug/net8.0/MES.Service.dll b/MESApplication/bin/Debug/net8.0/MES.Service.dll index decc7cc..607b9bc 100644 --- a/MESApplication/bin/Debug/net8.0/MES.Service.dll +++ b/MESApplication/bin/Debug/net8.0/MES.Service.dll Binary files differ diff --git a/MESApplication/bin/Debug/net8.0/MES.Service.pdb b/MESApplication/bin/Debug/net8.0/MES.Service.pdb index 2c09d16..66f88a4 100644 --- a/MESApplication/bin/Debug/net8.0/MES.Service.pdb +++ b/MESApplication/bin/Debug/net8.0/MES.Service.pdb Binary files differ diff --git a/MESApplication/bin/Debug/net8.0/MESApplication.dll b/MESApplication/bin/Debug/net8.0/MESApplication.dll index 78d7a40..e25a857 100644 --- a/MESApplication/bin/Debug/net8.0/MESApplication.dll +++ b/MESApplication/bin/Debug/net8.0/MESApplication.dll Binary files differ diff --git a/MESApplication/bin/Debug/net8.0/MESApplication.exe b/MESApplication/bin/Debug/net8.0/MESApplication.exe index 2f38ed1..77e8cd7 100644 --- a/MESApplication/bin/Debug/net8.0/MESApplication.exe +++ b/MESApplication/bin/Debug/net8.0/MESApplication.exe Binary files differ diff --git a/MESApplication/bin/Debug/net8.0/MESApplication.pdb b/MESApplication/bin/Debug/net8.0/MESApplication.pdb index 8e01602..160f356 100644 --- a/MESApplication/bin/Debug/net8.0/MESApplication.pdb +++ b/MESApplication/bin/Debug/net8.0/MESApplication.pdb Binary files differ diff --git a/MESApplication/bin/Release/net8.0/MES.Service.dll b/MESApplication/bin/Release/net8.0/MES.Service.dll index 234399f..8f879d6 100644 --- a/MESApplication/bin/Release/net8.0/MES.Service.dll +++ b/MESApplication/bin/Release/net8.0/MES.Service.dll Binary files differ diff --git a/MESApplication/bin/Release/net8.0/MES.Service.pdb b/MESApplication/bin/Release/net8.0/MES.Service.pdb index b859561..f0999a1 100644 --- a/MESApplication/bin/Release/net8.0/MES.Service.pdb +++ b/MESApplication/bin/Release/net8.0/MES.Service.pdb Binary files differ diff --git a/MESApplication/bin/Release/net8.0/MESApplication.dll b/MESApplication/bin/Release/net8.0/MESApplication.dll index c009b63..8953608 100644 --- a/MESApplication/bin/Release/net8.0/MESApplication.dll +++ b/MESApplication/bin/Release/net8.0/MESApplication.dll Binary files differ diff --git a/MESApplication/bin/Release/net8.0/MESApplication.exe b/MESApplication/bin/Release/net8.0/MESApplication.exe index 2f38ed1..77e8cd7 100644 --- a/MESApplication/bin/Release/net8.0/MESApplication.exe +++ b/MESApplication/bin/Release/net8.0/MESApplication.exe Binary files differ diff --git a/MESApplication/bin/Release/net8.0/MESApplication.pdb b/MESApplication/bin/Release/net8.0/MESApplication.pdb index f82fb23..4a16d85 100644 --- a/MESApplication/bin/Release/net8.0/MESApplication.pdb +++ b/MESApplication/bin/Release/net8.0/MESApplication.pdb Binary files differ diff --git a/MESApplication/bin/Release/net8.0/publish/MES.Service.dll b/MESApplication/bin/Release/net8.0/publish/MES.Service.dll index 234399f..8f879d6 100644 --- a/MESApplication/bin/Release/net8.0/publish/MES.Service.dll +++ b/MESApplication/bin/Release/net8.0/publish/MES.Service.dll Binary files differ diff --git a/MESApplication/bin/Release/net8.0/publish/MES.Service.pdb b/MESApplication/bin/Release/net8.0/publish/MES.Service.pdb index b859561..f0999a1 100644 --- a/MESApplication/bin/Release/net8.0/publish/MES.Service.pdb +++ b/MESApplication/bin/Release/net8.0/publish/MES.Service.pdb Binary files differ diff --git a/MESApplication/bin/Release/net8.0/publish/MESApplication.dll b/MESApplication/bin/Release/net8.0/publish/MESApplication.dll index c009b63..8953608 100644 --- a/MESApplication/bin/Release/net8.0/publish/MESApplication.dll +++ b/MESApplication/bin/Release/net8.0/publish/MESApplication.dll Binary files differ diff --git a/MESApplication/bin/Release/net8.0/publish/MESApplication.exe b/MESApplication/bin/Release/net8.0/publish/MESApplication.exe index 2f38ed1..77e8cd7 100644 --- a/MESApplication/bin/Release/net8.0/publish/MESApplication.exe +++ b/MESApplication/bin/Release/net8.0/publish/MESApplication.exe Binary files differ diff --git a/MESApplication/bin/Release/net8.0/publish/MESApplication.pdb b/MESApplication/bin/Release/net8.0/publish/MESApplication.pdb index f82fb23..4a16d85 100644 --- a/MESApplication/bin/Release/net8.0/publish/MESApplication.pdb +++ b/MESApplication/bin/Release/net8.0/publish/MESApplication.pdb Binary files differ -- Gitblit v1.9.3