|
|
@@ -1,6 +1,7 @@
|
|
|
package com.xunmei.system.listener;
|
|
|
|
|
|
import com.alibaba.fastjson2.JSON;
|
|
|
+import com.alibaba.nacos.shaded.com.google.gson.Gson;
|
|
|
import com.xunmei.common.core.constant.SecurityConstants;
|
|
|
import com.xunmei.common.core.event.WorkTimeChangeEvent;
|
|
|
import com.xunmei.system.api.RemoteEduTrainingService;
|
|
|
@@ -38,9 +39,9 @@ public class WorkTimeChangeEventListener implements ApplicationListener<WorkTime
|
|
|
public void onApplicationEvent(WorkTimeChangeEvent event) {
|
|
|
CompletableFuture.supplyAsync(() ->
|
|
|
{
|
|
|
- remoteResumptionTaskService.rebuild(JSON.toJSONString(event), SecurityConstants.INNER);
|
|
|
- eduTrainingService.rebuild(JSON.toJSONString(event), SecurityConstants.INNER);
|
|
|
- remoteRetrievalTaskService.rebuild(JSON.toJSONString(event), SecurityConstants.INNER);
|
|
|
+ remoteResumptionTaskService.rebuild(new Gson().toJson(event), SecurityConstants.INNER);
|
|
|
+ eduTrainingService.rebuild(new Gson().toJson(event), SecurityConstants.INNER);
|
|
|
+ remoteRetrievalTaskService.rebuild(new Gson().toJson(event), SecurityConstants.INNER);
|
|
|
return null;
|
|
|
}
|
|
|
);
|