代码提交
This commit is contained in:
@@ -88,7 +88,20 @@ public class CsEventUserPOServiceImpl extends ServiceImpl<CsEventUserPOMapper, C
|
||||
// List<String> collect = data.stream().map(DictData::getCode).collect(Collectors.toList());
|
||||
// csEventUserQueryParam.setTarget(collect);
|
||||
// }
|
||||
List<EventDetailVO> list = this.getBaseMapper().queryUserEventList(csEventUserQueryParam);
|
||||
|
||||
List<String> deviceId = new ArrayList<>();
|
||||
List<CsLedgerVO> data = csLedgerFeignClient.getDeviceTree().getData();
|
||||
|
||||
List<String> collect = data.stream().map(CsLedgerVO::getChildren).
|
||||
flatMap(Collection::stream).
|
||||
map(CsLedgerVO::getChildren).
|
||||
flatMap(Collection::stream).
|
||||
map(CsLedgerVO::getId).
|
||||
collect(Collectors.toList());
|
||||
if (CollectionUtils.isEmpty(collect)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
List<EventDetailVO> list = this.getBaseMapper().queryUserEventList(csEventUserQueryParam,collect);
|
||||
// 主要用于统计不关心详情,详情重分页查询获取
|
||||
// list.forEach(temp->{
|
||||
// DevDetailDTO devDetail = csLedgerFeignClient.queryDevDetail(temp.getDeviceId()).getData();
|
||||
|
||||
Reference in New Issue
Block a user