From 1151aa653801cdbcdb2c1bc4c46884d58e207d1e Mon Sep 17 00:00:00 2001 From: Administrator Date: Tue, 29 Mar 2022 09:26:44 +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/WmsOutputSumDapperRepository.cs | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/WmsOutputSumDapperRepository.cs b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/WmsOutputSumDapperRepository.cs index 671635d0..6bc92812 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/WmsOutputSumDapperRepository.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/WmsOutputSumDapperRepository.cs @@ -1053,6 +1053,34 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report " IsBack = 1 \n" + " AND VERSION = '{0}' \n" + " AND State = 3 \n" + + + "UNION ALL\n" + +"SELECT\n" + +" '一次性销售' AS TYPE,\n" + +" '一次性销售' Client,\n" + +" BillNum,\n" + +" SapMaterialCode,\n" + +" Qty Qty,\n" + +" RealityNumber OutputQty,\n" + +" 0 IsBack,\n" + +" Price,\n" + +" '' CNumber,\n" + +" Remark \n" + +"FROM\n" + +" Set_WmsHQWithOutKanbanOutPutDetial \n" + +"WHERE\n" + +" VERSION = '{0}' \n" + +" AND STATE = 3"+ + + + + + + + + + + " ) temp1 \n" + " LEFT JOIN(SELECT max(Id) Id, MaterialCode, MaterialDesc, EstimateType, EstimateTypeDesc FROM Set_material GROUP BY MaterialCode, MaterialDesc, EstimateTypeDesc, EstimateType) temp2 ON temp1.MaterialCode = temp2.MaterialCode ";