|
|
@ -9,6 +9,7 @@ import com.xydl.cac.service.I2syncService;
|
|
|
|
import com.xydl.cac.util.DateUtil;
|
|
|
|
import com.xydl.cac.util.DateUtil;
|
|
|
|
import com.xydl.cac.util.DingTalkPushUtil;
|
|
|
|
import com.xydl.cac.util.DingTalkPushUtil;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
@ -40,9 +41,13 @@ public class I2syncTask {
|
|
|
|
if (!CollectionUtils.isEmpty(configList)) {
|
|
|
|
if (!CollectionUtils.isEmpty(configList)) {
|
|
|
|
log.info("I2syncTask.syncAll 开始.");
|
|
|
|
log.info("I2syncTask.syncAll 开始.");
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
if (StringUtils.isBlank(busiAdapter.url)) {
|
|
|
|
|
|
|
|
log.info("i2同步地址busi-url未配置");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
for (I2syncConfig config : configList) {
|
|
|
|
for (I2syncConfig config : configList) {
|
|
|
|
this.syncOneConfig(config);
|
|
|
|
this.syncOneConfig(config);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
log.info("I2syncTask.syncAll 结束.");
|
|
|
|
log.info("I2syncTask.syncAll 结束.");
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
log.error("I2syncTask.syncAll error.", e);
|
|
|
|
log.error("I2syncTask.syncAll error.", e);
|
|
|
|