|
@@ -9,13 +9,13 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
|
import cn.com.qmth.examcloud.commons.util.JsonUtil;
|
|
|
-import cn.com.qmth.examcloud.commons.util.PropertiesUtil;
|
|
|
import cn.com.qmth.examcloud.commons.util.RegExpUtil;
|
|
|
import cn.com.qmth.examcloud.global.api.HandleSyncCloudService;
|
|
|
import cn.com.qmth.examcloud.global.api.request.SyncBaseRequest;
|
|
|
import cn.com.qmth.examcloud.task.dao.DataSyncRepo;
|
|
|
import cn.com.qmth.examcloud.task.dao.entity.DataSyncEntity;
|
|
|
import cn.com.qmth.examcloud.task.service.DataSyncService;
|
|
|
+import cn.com.qmth.examcloud.web.bootstrap.PropertyHolder;
|
|
|
|
|
|
/**
|
|
|
* 类注释
|
|
@@ -35,7 +35,7 @@ public class DataSyncServiceImpl implements DataSyncService {
|
|
|
|
|
|
@Override
|
|
|
public void sync(String methodName, SyncBaseRequest req, Boolean async, Boolean retry) {
|
|
|
- String group = PropertiesUtil.getString("$sync." + methodName + ".group");
|
|
|
+ String group = PropertyHolder.getString("$sync." + methodName + ".group");
|
|
|
if (StringUtils.isBlank(group)) {
|
|
|
throw new StatusException("T-001001", "group is not configured");
|
|
|
}
|
|
@@ -50,7 +50,7 @@ public class DataSyncServiceImpl implements DataSyncService {
|
|
|
@Override
|
|
|
public void sync(String component, String methodName, SyncBaseRequest req, Boolean async,
|
|
|
Boolean retry) {
|
|
|
- String url = PropertiesUtil.getString("$sync." + methodName + ".component." + component);
|
|
|
+ String url = PropertyHolder.getString("$sync." + methodName + ".component." + component);
|
|
|
req.setUrl(url);
|
|
|
|
|
|
if (async) {
|