提交 80f6cddf authored 作者: aiqingguo's avatar aiqingguo

打印日志

上级 eea11f7a
......@@ -116,7 +116,7 @@ public class OrderChildServiceImpl implements OrderChildService {
try {
flag = lock.tryLock(1, 3, TimeUnit.SECONDS);
} catch (Exception e) {
throw new ServiceSystemException(PerformanceResultEnum.ORDER_CHILD_SAVE_FAIL);
throw new ServiceSystemException(PerformanceResultEnum.ORDER_CHILD_SAVE_FAIL, e.getMessage());
}
if (!flag) {
log.warn("接单异常,orderGoodsNo:{}, userNo:{}", param.getOrderGoodsNo(), userNo);
......@@ -142,7 +142,7 @@ public class OrderChildServiceImpl implements OrderChildService {
} catch (ServiceSystemException e) {
throw e;
} catch (Exception e) {
throw new ServiceSystemException(PerformanceResultEnum.ORDER_CHILD_SAVE_FAIL);
throw new ServiceSystemException(PerformanceResultEnum.ORDER_CHILD_SAVE_FAIL, e.getMessage());
} finally {
if (lock.isLocked() && lock.isHeldByCurrentThread()) {
lock.unlock();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论