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

Commit f97ac605 authored by 胡佳晨's avatar 胡佳晨

Merge branch 'master' into dev_20111115

parents f4dd54b6 2dccfb65
......@@ -292,6 +292,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
if (surplusGeneral < 0) {//库存回滚
orderUtils.changeSurplus(isPay, payOrderParam.getTicketId(), payOrderParam.getNumber());
orderUtils.backAdvanceCoupon(payOrderParam.getAdvanceCode(), uid);
return ResponseDto.failure(ErrorMapping.get("20016"));//没抢到
} else {
isDownGeneral = true;
......@@ -301,6 +302,8 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
if (isTrueName == 1) {
for (AdamEntersVo adamEnters : entersVos) {
if (adamEnters == null) {
orderUtils.changeSurplus(isPay, payOrderParam.getTicketId(), payOrderParam.getNumber());
orderUtils.backAdvanceCoupon(payOrderParam.getAdvanceCode(), uid);
return ResponseDto.failure("入场人数据错误");
}
entersVoList.add(adamEnters);
......@@ -342,6 +345,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
log.error("Kylin Order Pay Error = {}", e);
if (isDownGeneral) {
orderUtils.changeSurplus(isPay, payOrderParam.getTicketId(), payOrderParam.getNumber());
// orderUtils.backAdvanceCoupon(payOrderParam.getAdvanceCode(), uid);
for (AdamEntersVo enters : entersVoList) {
dataUtils.changeBuyInfo(uid, enters.getIdCard(), payOrderParam.getPerformanceId(), payOrderParam.getTicketId(), -1);
}
......
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