1
This commit is contained in:
@@ -32,5 +32,12 @@ namespace Tnb.BasicData.Interfaces
|
||||
/// <param name="dic"></param>
|
||||
/// <returns></returns>
|
||||
public Task<dynamic> GetMaterialByQueryJson(MaterialQueryInput input);
|
||||
|
||||
/// <summary>
|
||||
/// 获取物料的入库仓库
|
||||
/// </summary>
|
||||
/// <param name="dic"></param>
|
||||
/// <returns></returns>
|
||||
public Task<dynamic> GetInboundWarehouseById(Dictionary<string, string> dic);
|
||||
}
|
||||
}
|
||||
@@ -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