生产bom优化
This commit is contained in:
@@ -134,6 +134,23 @@ namespace Tnb.BasicData
|
||||
return mbomDataOutput;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取编辑信息
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<dynamic> GetEbomInfo(string id)
|
||||
{
|
||||
ISqlSugarClient db = _repository.AsSugarClient();
|
||||
BasEbomH basEbomH = await db.Queryable<BasEbomH>().SingleAsync(x => x.id == id);
|
||||
List<BasEbomD> basEbomDs = await db.Queryable<BasEbomD>().Where(x => x.ebom_id == id).ToListAsync();
|
||||
Dictionary<string, object> result = new Dictionary<string, object>();
|
||||
result.Add("main",basEbomH);
|
||||
result.Add("detail",basEbomDs);
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 复制生产bom
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user