1
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user