|
@@ -10,7 +10,6 @@ import lombok.extern.slf4j.Slf4j;
|
|
import org.jeecg.common.util.DateUtils;
|
|
import org.jeecg.common.util.DateUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -72,6 +71,10 @@ public class SyncMaterialUploadJob {
|
|
anotherDay += " 00:00:01";
|
|
anotherDay += " 00:00:01";
|
|
log.info("查询快手未同步素材列表,开始时间:{}", anotherDay);
|
|
log.info("查询快手未同步素材列表,开始时间:{}", anotherDay);
|
|
List<String> codeList = materialInfoService.getCodeList(anotherDay);
|
|
List<String> codeList = materialInfoService.getCodeList(anotherDay);
|
|
|
|
+ log.info("查询条数:{}", codeList.size());
|
|
|
|
+ if (Check.isNull(codeList)) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
for (int i = 0; i < codeList.size(); i++) {
|
|
for (int i = 0; i < codeList.size(); i++) {
|
|
String code = codeList.get(i);
|
|
String code = codeList.get(i);
|
|
if (Check.isNull(code)) {
|
|
if (Check.isNull(code)) {
|
|
@@ -105,6 +108,10 @@ public class SyncMaterialUploadJob {
|
|
anotherDay += " 00:00:01";
|
|
anotherDay += " 00:00:01";
|
|
log.info("查询头条未同步素材列表,开始时间:{}", anotherDay);
|
|
log.info("查询头条未同步素材列表,开始时间:{}", anotherDay);
|
|
List<String> codeList = materialInfoService.getBytedanceCodeList(anotherDay);
|
|
List<String> codeList = materialInfoService.getBytedanceCodeList(anotherDay);
|
|
|
|
+ log.info("查询条数:{}", codeList.size());
|
|
|
|
+ if (Check.isNull(codeList)) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
for (int i = 0; i < codeList.size(); i++) {
|
|
for (int i = 0; i < codeList.size(); i++) {
|
|
String code = codeList.get(i);
|
|
String code = codeList.get(i);
|
|
if (Check.isNull(code)) {
|
|
if (Check.isNull(code)) {
|