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

Commit 2aec6b5f authored by jiangxiulong's avatar jiangxiulong

票种判断售罄

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