加了日志
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using AutoMapper;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -23,11 +25,13 @@ namespace WMS.Web.Domain.Services
|
||||
private readonly IMapper _mapper;
|
||||
public readonly IBasicsRepositories _transactionRepositories;
|
||||
private readonly IBoxMarkRepositories _boxMarkRepositories;
|
||||
public BoxMarkService(IMapper mapper,
|
||||
private readonly ILogger<BoxMarkService> _logger;
|
||||
public BoxMarkService(IMapper mapper, ILogger<BoxMarkService> logger,
|
||||
IBasicsRepositories transactionRepositories,
|
||||
IBoxMarkRepositories boxMarkRepositories)
|
||||
{
|
||||
_mapper = mapper;
|
||||
_logger = logger;
|
||||
_transactionRepositories = transactionRepositories;
|
||||
_boxMarkRepositories = boxMarkRepositories;
|
||||
}
|
||||
@@ -40,6 +44,7 @@ namespace WMS.Web.Domain.Services
|
||||
/// <returns></returns>
|
||||
public async Task<ResultList<BoxMarkQueryResponse>> Generate(GenerateBoxMarkDto dto, LoginInDto loginInfo)
|
||||
{
|
||||
_logger.LogInformation($"箱唛生成:{JsonConvert.SerializeObject(dto)} 操作人:{loginInfo.UserInfo.StaffId + loginInfo.UserInfo.Nickname}");
|
||||
//1.获取最新的箱唛信息
|
||||
//var entity_new = await _boxMarkRepositories.GetBy();
|
||||
var billNo_new = await _boxMarkRepositories.GetLastBillNo();
|
||||
|
||||
Reference in New Issue
Block a user