1
This commit is contained in:
@@ -19,5 +19,12 @@ namespace Tnb.BasicData.Interfaces
|
||||
/// <param name="code"></param>
|
||||
/// <returns></returns>
|
||||
public Task<dynamic> GetWorkStationByCode(Dictionary<string, string> dic);
|
||||
|
||||
/// <summary>
|
||||
/// 获取工位信息
|
||||
/// </summary>
|
||||
/// <param name="code"></param>
|
||||
/// <returns></returns>
|
||||
public Task<dynamic> GetWorkstationInfo();
|
||||
}
|
||||
}
|
||||
@@ -80,5 +80,20 @@ namespace Tnb.BasicData
|
||||
}).FirstAsync();
|
||||
return result;
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public async Task<dynamic> GetWorkstationInfo()
|
||||
{
|
||||
var result = await _repository.AsSugarClient().Queryable<OrganizeEntity>()
|
||||
.LeftJoin<BasQrcode>((a, b) => a.Id == b.source_id && b.source_name == "BASE_ORGANIZE")
|
||||
.Where((a, b) => a.Category == DictConst.RegionCategoryStationCode && a.DeleteMark == null)
|
||||
.Select((a, b) => new
|
||||
{
|
||||
label = a.FullName,
|
||||
value = a.Id,
|
||||
qrcode = b.code
|
||||
}).ToListAsync();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user