记得上下班打卡 | git大法好,push需谨慎

Commit 65b5b3a1 authored by 胡佳晨's avatar 胡佳晨

修改 报错回滚

parent 677885a9
...@@ -314,6 +314,12 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService { ...@@ -314,6 +314,12 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
return resultData; return resultData;
} }
} catch (Exception e) { } catch (Exception e) {
// if (isDownGeneral) {
// currentTime = System.currentTimeMillis();
// dataUtils.changeSurplusGeneral(payOrderParam.getTicketId(), payOrderParam.getNumber());
// currentTime = System.currentTimeMillis() - currentTime;
// log.debug("redis 修改库存 异常 -> time:" + (currentTime) + "毫秒");
// }
e.printStackTrace(); e.printStackTrace();
log.error("Kylin Order Pay Error = " + e.getMessage()); log.error("Kylin Order Pay Error = " + e.getMessage());
// redisLockUtil.unlock(lock); // redisLockUtil.unlock(lock);
...@@ -621,7 +627,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService { ...@@ -621,7 +627,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
dataUtils.changeSurplusGeneral(payOrderParam.getTicketId(), payOrderParam.getNumber()); dataUtils.changeSurplusGeneral(payOrderParam.getTicketId(), payOrderParam.getNumber());
currentTime = System.currentTimeMillis() - currentTime; currentTime = System.currentTimeMillis() - currentTime;
log.debug("redis 修改库存 异常 -> time:" + (currentTime) + "毫秒"); log.debug("redis 修改库存 异常 -> time:" + (currentTime) + "毫秒");
return ResponseDto.failure("0"); log.error("Kylin Order Inner Pay Error = " + e.getMessage());
return ResponseDto.failure(ErrorMapping.get("20018"));//乱七八糟异常
} }
} }
......
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