这三个方法一般用于格式转换
mapToDouble,mapToInt,mapToLong

举例:

map里面可以写判断,举个例子

map可以用于转换实体类
List dataList = Db.use(dataSource).query(BizSqls.FINANCING_REQUIREMENTS+condition)
.stream()
.map(entity -> entity.toBeanIgnoreCase(FinancingRequirement.class))
.filter(f -> StrUtil.isNotBlank(f.getUniscId())
&& StrUtil.isNotBlank(f.getGuaranteeMode())
&& StrUtil.isNotBlank(f.getOrientation())
&& Arrays.asList(DataEffective.GUARANTEE_MODE.getValue()).contains(f.getGuaranteeMode())
)
.peek(f -> f.setPlatformId(appProps.getPlatformId()))
.collect(Collectors.toList());