加了日志

This commit is contained in:
tongfei
2024-03-16 10:32:30 +08:00
parent e8bfe40ef3
commit a2ceb69c61
5 changed files with 23 additions and 6 deletions

View File

@@ -66,6 +66,10 @@ namespace WMS.Web.Domain.Services
/// <returns></returns>
public async Task<Result> BackShelf(BackRecordOnOffRequest dto, BackRecordType type, LoginInDto loginInfo)
{
if (type == BackRecordType.InstockOff)
_logger.LogInformation($"回退下架:{JsonConvert.SerializeObject(dto)} 操作人:{loginInfo.UserInfo.StaffId + loginInfo.UserInfo.Nickname}");
else
_logger.LogInformation($"回退上架:{JsonConvert.SerializeObject(dto)} 操作人:{loginInfo.UserInfo.StaffId + loginInfo.UserInfo.Nickname}");
IDbContextTransaction _transaction = _basicsRepositories.GetTransaction();
bool isRollback = false;
bool isTransaction = false;