调试完成

This commit is contained in:
2025-11-24 16:06:01 +08:00
parent 18b211daa0
commit 99a757f517
5 changed files with 57 additions and 64 deletions

View File

@@ -68,10 +68,8 @@ namespace MyCode.Project.Repositories
{
string sql = $@"SELECT
-- 分组字段
CONVERT(date, MAX(InOutDate2)) AS InOutDate2,
WarehouseCode AS WarehouseCode,
WarehouseName AS WarehouseName,
[SourceBillNo] AS GoodsdocNo ,[ApplyCompanyName],[VendCustomerName],
CONVERT(date, InOutDate2) AS InOutDate2,
[VendCustomerName], VendCode,
-- 合计数据
SUM(Quantity) AS Quantity ,-- 总数量,
SUM(BaceCurrencyCostAmount) AS BaceCurrencyCostAmount,--总入库金额,
@@ -88,13 +86,9 @@ namespace MyCode.Project.Repositories
FROM [dbo].[BusiOrderGoodsDocIn]
WHERE Status IN (0) -- 根据业务需求调整状态筛选
GROUP BY
WarehouseCode,
WarehouseName,
[SourceBillNo] ,[ApplyCompanyName],[VendCustomerName]
CONVERT(date, InOutDate2) ,[VendCustomerName] ,VendCode
ORDER BY
InOutDate2 DESC,
WarehouseCode,
GoodsdocNo; ";
InOutDate2 DESC ";
var list = this.SelectList<BusiOrderGoodsDocInSummary>(sql);
return list;
}