|
@@ -45,15 +45,15 @@ public class ByteDanceVideoReportDailyServiceImpl extends ServiceImpl<ByteDanceV
|
|
|
byteDanceVideoReportDailyMapper.delete(wrapper);
|
|
|
|
|
|
List<ByteDanceVideoReportDaily> mList = byteDanceVideoReportDailyMapper.videoInfoList(startDate, endDate, companyId);
|
|
|
- //for (ByteDanceVideoReportDaily m:mList){
|
|
|
- // byteDanceVideoReportDailyMapper.insert(m);
|
|
|
- //}
|
|
|
- //
|
|
|
+ for (ByteDanceVideoReportDaily m:mList){
|
|
|
+ byteDanceVideoReportDailyMapper.insert(m);
|
|
|
+ }
|
|
|
+
|
|
|
//QueryWrapper<ByteDanceVideoReportDaily> queryWrapper = new QueryWrapper<>();
|
|
|
- //
|
|
|
- //List<ByteDanceVideoReportDaily> mList2 = byteDanceVideoReportDailyMapper.selectList(queryWrapper);
|
|
|
|
|
|
- for(ByteDanceVideoReportDaily m:mList){
|
|
|
+ List<ByteDanceVideoReportDaily> mList2 = byteDanceVideoReportDailyMapper.selectList(wrapper);
|
|
|
+
|
|
|
+ for(ByteDanceVideoReportDaily m:mList2){
|
|
|
String statDate = DateUtils.formatDate(DateUtils.addDay(m.getStatDatetime(),-1));
|
|
|
BigDecimal cost = byteDanceVideoReportDailyMapper.getVideoReportDailyByDateAndSignature(statDate,statDate,m.getSignature(),companyId);
|
|
|
|
|
@@ -63,7 +63,7 @@ public class ByteDanceVideoReportDailyServiceImpl extends ServiceImpl<ByteDanceV
|
|
|
}
|
|
|
|
|
|
m.setHuanbi(huanbi);
|
|
|
- byteDanceVideoReportDailyMapper.insert(m);
|
|
|
+ byteDanceVideoReportDailyMapper.updateById(m);
|
|
|
}
|
|
|
}
|
|
|
|