|
|
@@ -27,7 +27,7 @@ namespace BPA.SAAS.Manage.Application.Device.Services |
|
|
|
public class DeviceService: IDeviceService, ITransient |
|
|
|
{ |
|
|
|
ISqlSugarClient _db; |
|
|
|
StoreServers _storeServers; |
|
|
|
StoreServers storeServer = new(); |
|
|
|
public DeviceService(ISqlSugarClient db) |
|
|
|
{ |
|
|
|
_db=db; |
|
|
@@ -40,7 +40,7 @@ namespace BPA.SAAS.Manage.Application.Device.Services |
|
|
|
public async Task<PageUtil> GetDeviceInfoPage(DeviceQueryInputDto inputDto) |
|
|
|
{ |
|
|
|
RefAsync<int> total =0; |
|
|
|
var dataStore=await _storeServers.GetStop(); |
|
|
|
var dataStore=await storeServer.GetStop(); |
|
|
|
var data = await _db.Queryable<BPA_DeviceInfo, BPA_Product>((a, b) => new JoinQueryInfos(JoinType.Left, a.ProductId == b.Id)) |
|
|
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(inputDto.StoreId), (a, b) => a.StopId == inputDto.StoreId) |
|
|
|