zhaoy 8 months ago
parent
commit
cff2de9357
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs

+ 2
- 2
BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs View File

@@ -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)


Loading…
Cancel
Save