修改扣费,增加日志

dev
jianghaiqing 1 month ago
parent a0cf2c9c8d
commit 3ff5398ac2

@ -103,8 +103,6 @@ namespace DS.WMS.Core.Op.Method
var orderInfo = orderList.FirstOrDefault(a => a.Id == id); var orderInfo = orderList.FirstOrDefault(a => a.Id == id);
var userInfo = db.Queryable<SysUser>().Filter(null, true).First(x => x.Id == orderInfo.OperatorId && x.TenantId == long.Parse(user.TenantId)); var userInfo = db.Queryable<SysUser>().Filter(null, true).First(x => x.Id == orderInfo.OperatorId && x.TenantId == long.Parse(user.TenantId));
string djyUserId = userInfo?.DjyUserId; string djyUserId = userInfo?.DjyUserId;
@ -122,6 +120,8 @@ namespace DS.WMS.Core.Op.Method
{ {
detail.Status = "FAILURE"; detail.Status = "FAILURE";
detail.Message = $"当前操作OP={userInfo?.UserName}没有绑定大简云用户ID,请联系管理员"; detail.Message = $"当前操作OP={userInfo?.UserName}没有绑定大简云用户ID,请联系管理员";
Logger.Log(NLog.LogLevel.Info, $"当前操作OP={userInfo?.UserName}没有绑定大简云用户ID,请联系管理员");
continue; continue;
} }
@ -132,6 +132,8 @@ namespace DS.WMS.Core.Op.Method
{ {
detail.Status = "FAILURE"; detail.Status = "FAILURE";
detail.Message = $"未配置大简云扣费授权,请在接口账户维护"; detail.Message = $"未配置大简云扣费授权,请在接口账户维护";
Logger.Log(NLog.LogLevel.Info, $"未配置大简云扣费授权,请在接口账户维护");
continue; continue;
} }

@ -1868,7 +1868,7 @@ namespace DS.WMS.Core.Op.Method
} }
}); });
_logger.Info($"批次={batchNo} 扣费完成,结果{JsonConvert.SerializeObject(feeRlt)}"); _logger.Info($"批次={batchNo} mblno={ }扣费完成,结果{JsonConvert.SerializeObject(feeRlt)}");
} }
} }

Loading…
Cancel
Save