This commit is contained in:
liqionghai
2025-07-16 14:41:39 +08:00
parent 74123dcad2
commit f4c865ab2c
13 changed files with 262 additions and 16 deletions

View File

@@ -9,6 +9,7 @@ using MyCode.Project.Domain.Model;
using MyCode.Project.Domain.Repositories;
using MyCode.Project.Infrastructure.Common;
using MyCode.Project.Infrastructure.Search;
using MyCode.Project.Domain.Message.Response.JackYun;
namespace MyCode.Project.Repositories
{
@@ -17,10 +18,28 @@ namespace MyCode.Project.Repositories
public WMStoJackyunInventoryMovementView1Repository(MyCodeSqlSugarClient context) : base(context)
{ }
public List<CreateAndStockinResp> GetInventoryMovement()
{
string sql = $@"
SELECT [单据号] AS [relDataId]
,[单据行号] AS [relDetailId]
,[变动方向] AS [type]
,[SKU] AS [outSkuCode]
,[BARCODE] AS [skuBarcode]
,[单位] AS [unitName]
,[数量] AS [skuCount]
,[仓库] AS [inWarehouseCode]
,[过账日期] AS [applyDate]
,[备注] AS [rowRemark]
,[status] AS [status]
FROM [YunTong].[dbo].[WMStoJackyun_InventoryMovement_View1]
WHERE [status] = 0";
var list = this.SelectList<CreateAndStockinResp>(sql);
return list;
}
}
}
}