From 3e3f36fcb3040d8642810968ae8dc6f26e958285 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 23 Feb 2022 15:07:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Report/HQHSettledDetailDapperRepository.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/HQHSettledDetailDapperRepository.cs b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/HQHSettledDetailDapperRepository.cs index ceba82e8..5b94b4de 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/HQHSettledDetailDapperRepository.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/HQHSettledDetailDapperRepository.cs @@ -17,6 +17,8 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report public string MaterialCode { set; get; } public string Kanban { set; get; } + public string WmsDate { set; get; } + } @@ -144,7 +146,8 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report var sql2 = "SELECT\n" + " a.WmsBillNum,\n" + " a.MaterialCode,\n" + - " a.Kanban \n" + + " a.Kanban ,\n" + + " a.A.LastModificationTime WmsDate \n" + "FROM\n" + " Set_HQ_H_Kanban A\n" + " INNER JOIN ( SELECT MaterialCode, Kanban FROM Set_HQ_H_Kanban GROUP BY MaterialCode, Kanban HAVING COUNT(*)> 1 ) B ON A.Kanban = B.Kanban \n" + @@ -160,6 +163,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report if (first != null) { first.WmsBillNum += itm.WmsBillNum; + first.WmsDate += itm.WmsDate; }