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

Commit 8a54445a authored by 胡佳晨's avatar 胡佳晨

//优先时间 数量大于1 提示非法下单

parent c4443c8d
...@@ -129,7 +129,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ ...@@ -129,7 +129,7 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
} }
} }
if (performanceData == null || ticketTimesData == null || ticketData == null) { if (ticketTimesData == null || ticketData == null) {
return ResponseDto.failure(ErrorMapping.get("20004"));//参数错误 return ResponseDto.failure(ErrorMapping.get("20004"));//参数错误
} }
if (performanceData.getStatusSell() == 0) { if (performanceData.getStatusSell() == 0) {
...@@ -204,6 +204,11 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ ...@@ -204,6 +204,11 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsOrderServ
} }
int memberType; //会员状态 不需要判断会员 1判断会员逻辑 2会员专属 int memberType; //会员状态 不需要判断会员 1判断会员逻辑 2会员专属
if (DateUtil.compareStrDay(DateUtil.getNowTime(), memberTimeStart) == 1 && DateUtil.compareStrDay(DateUtil.getNowTime(), timeStart) == -1){//优先时间
if(payOrderParam.getNumber()>1){
return ResponseDto.failure("非法下单");
}
}
if (ticketData.getIsExclusive() == 1) { if (ticketData.getIsExclusive() == 1) {
memberType = 2; memberType = 2;
if (!isMember) { if (!isMember) {
......
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