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

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

票种状态 不为6的时候不可购买

parent 68eabf0c
......@@ -87,6 +87,13 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
add(10);
}};
ArrayList<Integer> canBuyTStatus = new ArrayList() {{
add(6);
// add(8);
// add(9);
// add(10);
}};
@Override
public ResponseDto<PayInnerResultVo> checkCanOrder(PayOrderParam payOrderParam) {
boolean isDownGeneral = false;
......@@ -231,6 +238,10 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
return ResponseDto.failure(ErrorMapping.get("20010"));//当前不可购买
}
if (!canBuyTStatus.contains(ticketData.getStatus())) {
return ResponseDto.failure(ErrorMapping.get("20010"));//当前不可购买
}
//通用判断时间
if (payOrderParam.getAdvanceCode() != null) {
if (isOldMember) {
......
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