|
|
@ -3,7 +3,6 @@ package com.docus.bgts.config;
|
|
|
|
import com.docus.bgts.enums.Codes;
|
|
|
|
import com.docus.bgts.enums.Codes;
|
|
|
|
import com.docus.bgts.facade.IBgtsService;
|
|
|
|
import com.docus.bgts.facade.IBgtsService;
|
|
|
|
import com.docus.bgts.facade.IMzSyncService;
|
|
|
|
import com.docus.bgts.facade.IMzSyncService;
|
|
|
|
import com.docus.bgts.service.MzSyncService;
|
|
|
|
|
|
|
|
import com.docus.bgts.utils.FileUtils;
|
|
|
|
import com.docus.bgts.utils.FileUtils;
|
|
|
|
import com.docus.bgts.utils.HttpUtils;
|
|
|
|
import com.docus.bgts.utils.HttpUtils;
|
|
|
|
import org.apache.logging.log4j.LogManager;
|
|
|
|
import org.apache.logging.log4j.LogManager;
|
|
|
@ -71,6 +70,7 @@ public class MyScheduling {
|
|
|
|
@Scheduled(fixedRate = 1000 * 60 * 30)
|
|
|
|
@Scheduled(fixedRate = 1000 * 60 * 30)
|
|
|
|
public void syncIntegrality() {
|
|
|
|
public void syncIntegrality() {
|
|
|
|
if (null == syncFlag || "0".equals(syncFlag)) {
|
|
|
|
if (null == syncFlag || "0".equals(syncFlag)) {
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
mzSyncService.addSyncIntegrality();
|
|
|
|
mzSyncService.addSyncIntegrality();
|
|
|
|
}
|
|
|
|
}
|
|
|
|