1
This commit is contained in:
@@ -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