|
|
@ -129,6 +129,7 @@ public class AdminDeviceService { |
|
|
|
if (CollectionUtils.isEmpty(appIds)) { |
|
|
|
return new OverviewBo(); |
|
|
|
} |
|
|
|
MatrixAdmin admin = adminMapper.selectById(adminId); |
|
|
|
LambdaQueryWrapper<MatrixAdvRecord> advQuery = new QueryWrapper<MatrixAdvRecord>() |
|
|
|
.select("sum(ecpm) as ecpm").lambda(); |
|
|
|
advQuery.in(MatrixAdvRecord::getAppId, appIds); |
|
|
@ -137,7 +138,7 @@ public class AdminDeviceService { |
|
|
|
advQuery.eq(MatrixAdvRecord::getAdvType, 3);//只展示激励视频
|
|
|
|
MatrixAdvRecord record = advRecordMapper.selectOne(advQuery); |
|
|
|
OverviewBo bo = new OverviewBo(); |
|
|
|
bo.todayIncome = record == null ? 0 : record.getEcpm(); |
|
|
|
bo.todayIncome = record == null ? 0 : (record.getEcpm() * admin.getIncomeRate()) / 100; |
|
|
|
|
|
|
|
int today = DateUtil.currentDate(); |
|
|
|
int yesterday = DateUtil.datePlus(today, -1); |
|
|
|