查看日志
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
using AutoMapper;
|
using AutoMapper;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Storage;
|
using Microsoft.EntityFrameworkCore.Storage;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -30,11 +31,13 @@ namespace WMS.Web.Repositories
|
|||||||
private readonly RepositoryDbContext _context;
|
private readonly RepositoryDbContext _context;
|
||||||
private readonly ISingleDataService _singleDataService;
|
private readonly ISingleDataService _singleDataService;
|
||||||
private readonly IErpService _erpService;
|
private readonly IErpService _erpService;
|
||||||
|
private ILogger<BoxInventoryRepositories> _logger;
|
||||||
private readonly IErpBasicDataExtendService _erpBasicDataExtendService;
|
private readonly IErpBasicDataExtendService _erpBasicDataExtendService;
|
||||||
|
|
||||||
|
|
||||||
public BoxInventoryRepositories(RepositoryDbContext context,
|
public BoxInventoryRepositories(RepositoryDbContext context,
|
||||||
IMapper mapper,
|
IMapper mapper,
|
||||||
|
ILogger<BoxInventoryRepositories> logger,
|
||||||
IErpService erpService,
|
IErpService erpService,
|
||||||
ILoginRepositories loginRepositories,
|
ILoginRepositories loginRepositories,
|
||||||
IServiceProvider serviceProvider,
|
IServiceProvider serviceProvider,
|
||||||
@@ -42,6 +45,7 @@ namespace WMS.Web.Repositories
|
|||||||
IErpBasicDataExtendService erpBasicDataExtendService)
|
IErpBasicDataExtendService erpBasicDataExtendService)
|
||||||
{
|
{
|
||||||
_context = context;
|
_context = context;
|
||||||
|
_logger = logger;
|
||||||
_mapper = mapper;
|
_mapper = mapper;
|
||||||
_erpService = erpService;
|
_erpService = erpService;
|
||||||
_erpBasicDataExtendService = erpBasicDataExtendService;
|
_erpBasicDataExtendService = erpBasicDataExtendService;
|
||||||
@@ -110,7 +114,8 @@ namespace WMS.Web.Repositories
|
|||||||
query = query.Where(w => mids.Contains(w.detail.MaterialNumber));
|
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();
|
int total = await query.CountAsync();
|
||||||
var list = await query.Select(s => new BoxInventoryQueryResponse()
|
var list = await query.Select(s => new BoxInventoryQueryResponse()
|
||||||
|
|||||||
Reference in New Issue
Block a user