Commit 30934f6d by 吕明尚

日志增加数据

parent b447f2b4
...@@ -95,9 +95,11 @@ public class QPServiceImplAspect { ...@@ -95,9 +95,11 @@ public class QPServiceImplAspect {
couponLog.setStatus(YesNoEnum.yes.getDisplay_3()); couponLog.setStatus(YesNoEnum.yes.getDisplay_3());
couponLog.setMessage(outParams); couponLog.setMessage(outParams);
couponLog.setCreateTime(new Date()); couponLog.setCreateTime(new Date());
couponLog.setNumber(TRY_NUMBER);
logger.info("优惠卷操作日志:{}", couponLog); logger.info("优惠卷操作日志:{}", couponLog);
logger.info("开始异步执行新增正常日志"); logger.info("开始执行新增正常日志");
boolean isSaved = couponLogService.save(couponLog); boolean isSaved = couponLogService.save(couponLog);
System.out.println(couponLog + "============================================================");
if (isSaved) { if (isSaved) {
logger.info("新增日志成功"); logger.info("新增日志成功");
} else { } else {
...@@ -141,7 +143,7 @@ public class QPServiceImplAspect { ...@@ -141,7 +143,7 @@ public class QPServiceImplAspect {
logger.error("Error while processing exception log", e2); logger.error("Error while processing exception log", e2);
} finally { } finally {
logger.info("优惠卷操作日志:{}", couponLog); logger.info("优惠卷操作日志:{}", couponLog);
logger.info("开始异步执行新增错误日志"); logger.info("开始执行新增错误日志");
boolean i = couponLogService.save(couponLog); boolean i = couponLogService.save(couponLog);
if (i) { if (i) {
logger.info("新增日志成功"); logger.info("新增日志成功");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment