This commit is contained in:
2023-11-07 14:58:43 +08:00
parent b7ae473d8e
commit 64bb0ff680
9 changed files with 175 additions and 5 deletions

View File

@@ -220,6 +220,22 @@ namespace Tnb.BasicData
}
[HttpPost]
public async Task<dynamic> GetInboundWarehouseById(Dictionary<string, string> dic)
{
string id = dic.ContainsKey("id") ? dic["id"] : "";
return await _repository.AsSugarClient().Queryable<BasMaterialInboundWh>()
.LeftJoin<BasWarehouse>((a, b) => a.wh_id == b.id)
.Where((a, b) => a.material_id == id)
.Select((a, b) => new
{
warehouse_id = a.wh_id,
warehouse_code = b.whcode,
warehouse_name = b.whname
}).ToListAsync();
}
/// <summary>
/// 获取物料清单下所子集物料id
/// </summary>