|
@@ -39,7 +39,7 @@ public class KuaishouVideoEtlInfoServiceImpl extends ServiceImpl<KuaishouVideoEt
|
|
|
private KuaishouVideoEtlInfoMapper kuaishouVideoEtlInfoMapper;
|
|
|
@Autowired
|
|
|
private IKuaiShouReportDailyMaterialService dailyMaterialService;
|
|
|
- static ExecutorService executorService = Executors.newFixedThreadPool(50);
|
|
|
+ static ExecutorService executorService = Executors.newFixedThreadPool(100);
|
|
|
@Override
|
|
|
public void etlKuaishouVideoInfo(Date getDate) {
|
|
|
String date = DateUtils.formatDate(getDate);
|
|
@@ -98,13 +98,13 @@ public class KuaishouVideoEtlInfoServiceImpl extends ServiceImpl<KuaishouVideoEt
|
|
|
}
|
|
|
}
|
|
|
//计算投放总天数
|
|
|
- if(days == 7){
|
|
|
+ if(days <= 7){
|
|
|
etlInfo.setSingleWeekCost(nowData.getCharge());
|
|
|
}
|
|
|
- if(days == 14){
|
|
|
+ if(days <= 14){
|
|
|
etlInfo.setTwoWeekCost(nowData.getCharge());
|
|
|
}
|
|
|
- if(days == 28){
|
|
|
+ if(days <= 28){
|
|
|
etlInfo.setFourWeekCost(nowData.getCharge());
|
|
|
}
|
|
|
//计算是否有效,爆款
|
|
@@ -115,8 +115,8 @@ public class KuaishouVideoEtlInfoServiceImpl extends ServiceImpl<KuaishouVideoEt
|
|
|
}
|
|
|
if(totalCost.compareTo(new BigDecimal("100000"))>0){
|
|
|
//此刻成为爆款
|
|
|
- etlInfo.setEffectDate(date);
|
|
|
- etlInfo.setEffectDayNum(days);
|
|
|
+ etlInfo.setFaddishDate(date);
|
|
|
+ etlInfo.setFaddishDayNum(days);
|
|
|
}
|
|
|
etlInfo.setCreateTime(new Date());
|
|
|
etlInfo.setUpdateTime(new Date());
|
|
@@ -131,13 +131,13 @@ public class KuaishouVideoEtlInfoServiceImpl extends ServiceImpl<KuaishouVideoEt
|
|
|
etlInfo.setUpdateTime(new Date());
|
|
|
BigDecimal totalCost = etlInfo.getTotalCost();
|
|
|
//计算投放总天数
|
|
|
- if(days == 7){
|
|
|
+ if(days <= 7){
|
|
|
etlInfo.setSingleWeekCost(nowData.getCharge());
|
|
|
}
|
|
|
- if(days == 14){
|
|
|
+ if(days <= 14){
|
|
|
etlInfo.setTwoWeekCost(nowData.getCharge());
|
|
|
}
|
|
|
- if(days == 28){
|
|
|
+ if(days <= 28){
|
|
|
etlInfo.setFourWeekCost(nowData.getCharge());
|
|
|
}
|
|
|
if(null == etlInfo.getEffectDayNum()){
|
|
@@ -150,8 +150,8 @@ public class KuaishouVideoEtlInfoServiceImpl extends ServiceImpl<KuaishouVideoEt
|
|
|
if(null == etlInfo.getFaddishDayNum()){
|
|
|
if(totalCost.compareTo(new BigDecimal("100000"))>0){
|
|
|
//此刻成为爆款
|
|
|
- etlInfo.setEffectDate(date);
|
|
|
- etlInfo.setEffectDayNum(days);
|
|
|
+ etlInfo.setFaddishDate(date);
|
|
|
+ etlInfo.setFaddishDayNum(days);
|
|
|
}
|
|
|
}
|
|
|
this.updateById(etlInfo);
|