|
@@ -193,8 +193,11 @@ public class AgentIndexController {
|
|
|
Map<String, Integer> bannedCountMap = new HashMap<>();
|
|
Map<String, Integer> bannedCountMap = new HashMap<>();
|
|
|
List<YtPlatformBanned> banneds = riskMapper.queryMonthBanned(appIdList);
|
|
List<YtPlatformBanned> banneds = riskMapper.queryMonthBanned(appIdList);
|
|
|
if(CollUtil.isNotEmpty(banneds)){
|
|
if(CollUtil.isNotEmpty(banneds)){
|
|
|
- List<YtPlatformBanned> collect = banneds.stream().filter(
|
|
|
|
|
- s -> DateUtil.isSameDay(s.getBannedTime(), new Date())).collect(Collectors.toList());
|
|
|
|
|
|
|
+ Date currentDate = new Date();
|
|
|
|
|
+ List<YtPlatformBanned> collect = banneds.stream()
|
|
|
|
|
+ .filter(s -> DateUtil.isSameDay(s.getBannedTime(), currentDate))
|
|
|
|
|
+ .filter(item -> !"预估收益不到上限游客用户风控".equals(item.getBannedReason()))
|
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
if(CollUtil.isNotEmpty(collect)){
|
|
if(CollUtil.isNotEmpty(collect)){
|
|
|
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
Map<LocalDateTime, List<YtPlatformBanned>> bannedMap = collect.stream().collect(Collectors.groupingBy(
|
|
Map<LocalDateTime, List<YtPlatformBanned>> bannedMap = collect.stream().collect(Collectors.groupingBy(
|