|
|
@@ -5,7 +5,6 @@ import com.xunmei.core.edu.service.ICoreEduTrainingTaskService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.ApplicationListener;
|
|
|
import org.springframework.context.event.EventListener;
|
|
|
-import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.transaction.event.TransactionPhase;
|
|
|
import org.springframework.transaction.event.TransactionalEventListener;
|
|
|
@@ -17,7 +16,6 @@ public class WorkTimeChangeEventListener implements ApplicationListener<WorkTime
|
|
|
private ICoreEduTrainingTaskService coreEduTrainingTaskService;
|
|
|
|
|
|
@Override
|
|
|
- @Async
|
|
|
@EventListener(WorkTimeChangeEvent.class)
|
|
|
@TransactionalEventListener(phase = TransactionPhase.AFTER_COMMIT)
|
|
|
public void onApplicationEvent(WorkTimeChangeEvent event) {
|