wangwei 6 rokov pred
rodič
commit
375145f91e

+ 0 - 5
examcloud-task-service/src/main/java/cn/com/qmth/examcloud/task/service/impl/DataSyncServiceImpl.java

@@ -3,7 +3,6 @@ package cn.com.qmth.examcloud.task.service.impl;
 import java.lang.reflect.Method;
 import java.util.List;
 
-import org.apache.commons.collections.CollectionUtils;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -43,10 +42,6 @@ public class DataSyncServiceImpl implements DataSyncService {
 
 		List<String> componentList = RegExpUtil.findAll(group, "[^\\,]+");
 
-		if (CollectionUtils.isEmpty(componentList)) {
-			throw new StatusException("T-001001", "no component");
-		}
-
 		boolean successful = true;
 		for (String component : componentList) {
 			boolean result = sync(component, methodName, req, retry);

+ 3 - 1
examcloud-task-starter/src/main/resources/application-dev.properties

@@ -19,4 +19,6 @@ $sync.syncExamStudent.group=OE
 $sync.syncExamStudent.component.OE=http://EC-CORE-OE-ADMIN//api/core/oe/admin/exam/student/syncExamStudent
 
 $sync.syncCourse.group=EXAMWORK
-$sync.syncCourse.component.EXAMWORK=http://EC-CORE-EXAMWORK/api/core/examwork/dataSync/syncCourse
+$sync.syncCourse.component.EXAMWORK=http://EC-CORE-EXAMWORK/api/core/examwork/dataSync/syncCourse
+
+$sync.syncOrg.group=,