|
|
@ -8,7 +8,6 @@ import awesome.group.game.dao.mapper.MatrixAdvRecordMapper; |
|
|
|
import awesome.group.game.dao.mapper.MatrixAppMapper; |
|
|
|
import awesome.group.game.service.bo.AdvRecordQuery; |
|
|
|
import awesome.group.game.service.bo.MatrixAdvRecordBo; |
|
|
|
import awesome.group.game.service.bo.PageParam; |
|
|
|
import awesome.group.game.service.bo.PageResult; |
|
|
|
import awesome.group.game.service.common.exception.PaganiException; |
|
|
|
import awesome.group.game.service.common.exception.PaganiExceptionCode; |
|
|
@ -69,6 +68,9 @@ public class AdminService { |
|
|
|
if (param.platform != null) { |
|
|
|
wrapper.eq(MatrixAdvRecord::getPlatform, param.platform); |
|
|
|
} |
|
|
|
if (param.appId != null) { |
|
|
|
wrapper.eq(MatrixAdvRecord::getAppId, param.appId); |
|
|
|
} |
|
|
|
if (StringUtils.hasText(param.deviceId)) { |
|
|
|
wrapper.eq(MatrixAdvRecord::getDeviceId, param.deviceId); |
|
|
|
} |
|
|
@ -103,4 +105,13 @@ public class AdminService { |
|
|
|
}).toList(); |
|
|
|
return res; |
|
|
|
} |
|
|
|
|
|
|
|
public List<MatrixApp> appList(Integer adminId) { |
|
|
|
if (adminId == 1) { |
|
|
|
return appMapper.selectList(null); |
|
|
|
} |
|
|
|
LambdaQueryWrapper<MatrixApp> query = Wrappers.lambdaQuery(); |
|
|
|
query.eq(MatrixApp::getOwnerId, adminId); |
|
|
|
return appMapper.selectList(query); |
|
|
|
} |
|
|
|
} |
|
|
|