Commit bb7f0db4 by sdif

用户端新闻资讯公告取消城市筛选

parent df346608
......@@ -45,7 +45,7 @@ public class AppletInformationController extends BaseController {
*/
@GetMapping("/list")
public TableDataInfo<InformationVo> list(InformationBo bo, PageQuery pageQuery, HttpServletRequest reques) {
bo.setCityId(CityIdUtils.setCityIdPasLong(reques));
//bo.setCityId(CityIdUtils.setCityIdPasLong(reques));
return iInformationService.queryPageList(bo, pageQuery);
}
......
......@@ -134,10 +134,15 @@ public class CarouselServiceImpl implements ICarouselService {
public HomeVo selectHome(Integer cityId) {
HomeVo homeVo = new HomeVo();
List<Notice> notices = noticeMapper.selectList(
new LambdaQueryWrapper<Notice>().eq(Notice::getSite,1).eq(Notice::getCityId,cityId)
new LambdaQueryWrapper<Notice>().eq(Notice::getSite,1)
);
if(null != notices && notices.size() != 0){
homeVo.setNotice(notices.get(0).getInfo());
StringBuilder stringBuilder = new StringBuilder();
for (Notice notice : notices) {
stringBuilder.append(notice.getInfo());
stringBuilder.append(" ");
}
homeVo.setNotice(stringBuilder.toString());
}
homeVo.setCarousel(baseMapper.selectList(
new LambdaQueryWrapper<Carousel>().eq(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment