Commit 83d51a57 authored by shiyu's avatar shiyu

专场自动开始3

parent 89b27ba8
......@@ -211,6 +211,7 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
public void checkStart(int type) {
SpecialPerformance specialPerformance = specialPerformanceDao.findNotStart(type);
Date now = new Date();
if (specialPerformance != null) {
if (now.after(specialPerformance.getStartTime())) {
SpecialPerformance updateDto = new SpecialPerformance();
updateDto.setId(specialPerformance.getId());
......@@ -219,5 +220,6 @@ public class SpecialPerformanceServiceImpl implements SpecialPerformanceService
specialPerformanceDao.update(updateDto);
}
}
}
}
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