|
@@ -1,7 +1,5 @@
|
|
package cn.com.qmth.examcloud.service.core.service.sync;
|
|
package cn.com.qmth.examcloud.service.core.service.sync;
|
|
|
|
|
|
-import com.qmth.commons.dataSync.core.annotations.DataReceive;
|
|
|
|
-import com.qmth.commons.dataSync.core.entity.BaseSyncData;
|
|
|
|
import com.qmth.commons.dataSync.core.service.DataSyncService;
|
|
import com.qmth.commons.dataSync.core.service.DataSyncService;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -19,14 +17,4 @@ public class DataReceiveService {
|
|
@Autowired
|
|
@Autowired
|
|
DataSyncService dataSyncService;
|
|
DataSyncService dataSyncService;
|
|
|
|
|
|
- @DataReceive(domain = "cn.com.qmth.examcloud.common.dto.core.CourseSync")
|
|
|
|
- public synchronized void readCourse(BaseSyncData baseSyncData) {
|
|
|
|
- if (dataSyncService.expired(baseSyncData)) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- log.info("--------------coursesync---------");
|
|
|
|
- log.info(baseSyncData.toString());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|