|
@@ -4,6 +4,7 @@ import cn.com.ctop.kuaishou.modules.ai.entity.AiKuaishouAdvertiserStrategy;
|
|
import cn.com.ctop.kuaishou.modules.ai.service.IAiKuaishouAdvertiserStrategyService;
|
|
import cn.com.ctop.kuaishou.modules.ai.service.IAiKuaishouAdvertiserStrategyService;
|
|
import cn.com.ctop.kuaishou.modules.ai.service.IAiKuaishouCreateCreativeService;
|
|
import cn.com.ctop.kuaishou.modules.ai.service.IAiKuaishouCreateCreativeService;
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
|
+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;
|
|
|
|
|
|
@@ -45,15 +46,21 @@ public class KuaishouAiCreativeJob {
|
|
if(null==strategies||strategies.isEmpty()){
|
|
if(null==strategies||strategies.isEmpty()){
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- strategies.forEach(strategy -> {
|
|
|
|
- if(null!=strategy.getOpenProgramCreate()&&strategy.getOpenProgramCreate()!=1){
|
|
|
|
- try {
|
|
|
|
- createCreativeService.customCreativeSupplement(strategy,1);
|
|
|
|
- } catch (ParseException e) {
|
|
|
|
- e.printStackTrace();
|
|
|
|
|
|
+ try {
|
|
|
|
+ int hour = DateUtils.getNowHour();
|
|
|
|
+ strategies.forEach(strategy -> {
|
|
|
|
+ if(null!=strategy.getOpenProgramCreate()&&strategy.getOpenProgramCreate()!=1){
|
|
|
|
+ try {
|
|
|
|
+ createCreativeService.customCreativeSupplement(strategy,hour);
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ });
|
|
|
|
+ } catch (ParseException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|