|
@@ -92,9 +92,14 @@ public class CmsInformationController {
|
|
|
.in(GoodsDon::getId, goodsIds)
|
|
.in(GoodsDon::getId, goodsIds)
|
|
|
.eq(GoodsDon::getStatus, true)
|
|
.eq(GoodsDon::getStatus, true)
|
|
|
.eq(GoodsDon::getDeleted,true)).stream().map(GoodsDon::getTitle).collect(Collectors.toList()));
|
|
.eq(GoodsDon::getDeleted,true)).stream().map(GoodsDon::getTitle).collect(Collectors.toList()));
|
|
|
|
|
+ List<Long> categoryIds = Jsons.parseList(data.getCategoryIds(), Long.class);
|
|
|
|
|
+ data.setCategoryNames(informationCategoryService.list(Wrappers.lambdaQuery(InformationCategory.class)
|
|
|
|
|
+ .select(InformationCategory::getName)
|
|
|
|
|
+ .in(InformationCategory::getId,categoryIds)).stream().map(InformationCategory::getName).collect(Collectors.toList()));
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(list);
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(list);
|
|
|
}
|
|
}
|