查看日志
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using AutoMapper;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Storage;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -30,11 +31,13 @@ namespace WMS.Web.Repositories
|
||||
private readonly RepositoryDbContext _context;
|
||||
private readonly ISingleDataService _singleDataService;
|
||||
private readonly IErpService _erpService;
|
||||
private ILogger<BoxInventoryRepositories> _logger;
|
||||
private readonly IErpBasicDataExtendService _erpBasicDataExtendService;
|
||||
|
||||
|
||||
public BoxInventoryRepositories(RepositoryDbContext context,
|
||||
IMapper mapper,
|
||||
ILogger<BoxInventoryRepositories> logger,
|
||||
IErpService erpService,
|
||||
ILoginRepositories loginRepositories,
|
||||
IServiceProvider serviceProvider,
|
||||
@@ -42,6 +45,7 @@ namespace WMS.Web.Repositories
|
||||
IErpBasicDataExtendService erpBasicDataExtendService)
|
||||
{
|
||||
_context = context;
|
||||
_logger = logger;
|
||||
_mapper = mapper;
|
||||
_erpService = erpService;
|
||||
_erpBasicDataExtendService = erpBasicDataExtendService;
|
||||
@@ -110,7 +114,8 @@ namespace WMS.Web.Repositories
|
||||
query = query.Where(w => mids.Contains(w.detail.MaterialNumber));
|
||||
}
|
||||
}
|
||||
|
||||
var tt = _singleDataService.GetSingleData(SingleAction.SubStocksJoinOrgCode, companyId, "wmsCK0213" + "CK001" + "101");
|
||||
_logger.LogInformation("箱库存列表:"+tt+"公司ID:"+companyId);
|
||||
|
||||
int total = await query.CountAsync();
|
||||
var list = await query.Select(s => new BoxInventoryQueryResponse()
|
||||
@@ -127,7 +132,7 @@ namespace WMS.Web.Repositories
|
||||
Org = _erpBasicDataExtendService.GetOrgName(orgs, s.order.OrgCode),
|
||||
Qty = s.detail.Qty,
|
||||
}).OrderByDescending(x => x.Id).Skip((dto.PageNo - 1) * dto.PageSize).Take(dto.PageSize).ToListAsync();
|
||||
|
||||
|
||||
return (list,total);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user