From cff2de9357da33f5359670d7aada2a93558cab84 Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Thu, 7 Mar 2024 13:22:35 +0800 Subject: [PATCH] z --- BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs b/BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs index 9330679..e2bd20c 100644 --- a/BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs +++ b/BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs @@ -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 GetDeviceInfoPage(DeviceQueryInputDto inputDto) { RefAsync total =0; - var dataStore=await _storeServers.GetStop(); + var dataStore=await storeServer.GetStop(); var data = await _db.Queryable((a, b) => new JoinQueryInfos(JoinType.Left, a.ProductId == b.Id)) .WhereIF(!string.IsNullOrWhiteSpace(inputDto.StoreId), (a, b) => a.StopId == inputDto.StoreId)