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