فهرست منبع

修改作息变更事件监听代码

jingyuanchao 2 سال پیش
والد
کامیت
7f0a938119

+ 0 - 2
soc-modules/soc-modules-core/src/main/java/com/xunmei/core/edu/eventlistener/WorkTimeChangeEventListener.java

@@ -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) {