zhaoy 8 meses atrás
pai
commit
cff2de9357
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs

+ 2
- 2
BPA.SAAS.Manage.Application/Device/Services/DeviceService.cs Ver arquivo

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


Carregando…
Cancelar
Salvar