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

Commit 2aec6b5f authored by jiangxiulong's avatar jiangxiulong

票种判断售罄

parent da223fcc
......@@ -55,9 +55,6 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
@Autowired
private PerformanceVoTask task;
@Autowired
private KylinPerformancesMapper performancesMapper;
public HashMap<String, Object> localList(
int days, String cityName, int type,
Integer isDiscount, Integer isAdvance, Integer isExclusive,
......@@ -456,6 +453,12 @@ public class KylinPerformancesServiceImpl extends ServiceImpl<KylinPerformancesM
int getStatus = ticketItem.getStatus();
int status = getStatus;
if (null != ticketItem) {
// 判断售罄
boolean isSellOut = dataUtils.ticketIsSoldOut(ticketItem.getTicketsId());
if (isSellOut) {
getStatus = 8;
status = 8;
}
if (6 == getStatus || 9 == getStatus || 10 == getStatus) {
String timeStart = ticketItem.getTimeStart();
String timeEnd = ticketItem.getTimeEnd();
......
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