|
@@ -32,6 +32,8 @@ public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> impl
|
|
private CommentMapper commentMapper;
|
|
private CommentMapper commentMapper;
|
|
@Resource
|
|
@Resource
|
|
private CompanyProductsMapper companyProductsMapper;
|
|
private CompanyProductsMapper companyProductsMapper;
|
|
|
|
+ @Resource
|
|
|
|
+ private CharacteristicMapper characteristicMapper;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public Model getList(Model model) {
|
|
public Model getList(Model model) {
|
|
@@ -40,12 +42,14 @@ public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> impl
|
|
.eq("sticky", 1)
|
|
.eq("sticky", 1)
|
|
.orderByAsc("position"));
|
|
.orderByAsc("position"));
|
|
model.addAttribute("articles", articles);
|
|
model.addAttribute("articles", articles);
|
|
- List<Cooperations> cooperations = cooperationsMapper.selectList(new QueryWrapper<Cooperations>().orderByAsc("id"));
|
|
|
|
- model.addAttribute("cooperations", cooperations);
|
|
|
|
- List<BannerPictures> pictures = bannerPicturesMapper.selectList(new QueryWrapper<BannerPictures>().orderByAsc("id"));
|
|
|
|
- model.addAttribute("pictures", pictures);
|
|
|
|
- List<Comment> comment = commentMapper.selectList(new QueryWrapper<Comment>().orderByAsc("id"));
|
|
|
|
- model.addAttribute("comment", comment);
|
|
|
|
|
|
+ model.addAttribute("cooperations", cooperationsMapper
|
|
|
|
+ .selectList(new QueryWrapper<Cooperations>().orderByAsc("id")));
|
|
|
|
+ model.addAttribute("pictures", bannerPicturesMapper
|
|
|
|
+ .selectList(new QueryWrapper<BannerPictures>().orderByAsc("id")));
|
|
|
|
+ model.addAttribute("comment", commentMapper
|
|
|
|
+ .selectList(new QueryWrapper<Comment>().orderByAsc("id")));
|
|
|
|
+ model.addAttribute("characteristic", characteristicMapper
|
|
|
|
+ .selectList(new QueryWrapper<Characteristic>().orderByAsc("id")));
|
|
return model;
|
|
return model;
|
|
}
|
|
}
|
|
|
|
|