|
|
@@ -3,6 +3,7 @@ package cn.iselab.mooctest.site.common.event;
|
|
|
import cn.iselab.mooctest.site.service.ContestMentorService;
|
|
|
import cn.iselab.mooctest.site.service.TargetService;
|
|
|
import cn.iselab.mooctest.site.service.fromKibug.StatisService;
|
|
|
+import cn.iselab.mooctest.site.web.logic.CaseLogic;
|
|
|
import com.google.common.eventbus.Subscribe;
|
|
|
import org.springframework.beans.factory.InitializingBean;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -23,6 +24,9 @@ public class StatisEventsListener implements InitializingBean {
|
|
|
@Autowired
|
|
|
private TargetService targetService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private CaseLogic caseLogic;
|
|
|
+
|
|
|
@Override
|
|
|
public void afterPropertiesSet() throws Exception {
|
|
|
eventUtil.register(this);
|
|
|
@@ -48,4 +52,9 @@ public class StatisEventsListener implements InitializingBean {
|
|
|
public void publicityTarget(PublicityTargetEvent publicityTargetEvent) throws Exception {
|
|
|
targetService.publicityTarget(publicityTargetEvent.getTargetId());
|
|
|
}
|
|
|
+
|
|
|
+ @Subscribe
|
|
|
+ public void publicityCase(PublicityCaseEvent publicityCaseEvent) throws Exception {
|
|
|
+ caseLogic.publicityCase(publicityCaseEvent.getCaseId());
|
|
|
+ }
|
|
|
}
|