Commit 8c5c49e0 authored by yaobaizheng's avatar yaobaizheng

更改小程序首页轮播图存储位置

parent c14b3b21
......@@ -24,8 +24,8 @@ public class HomePageVO {
private Integer megalopolisInfoId = null;
@ApiModelProperty(value = "轮播图列表")
// private List<SysCarouselInfo> sysCarouselInfolist = new ArrayList<>();
private List<SysCommonFileVo> sysCarouselInfolist = new ArrayList<>();
private List<SysCarouselInfo> sysCarouselInfolist = new ArrayList<>();
// private List<SysCommonFileVo> sysCarouselInfolist = new ArrayList<>();
@ApiModelProperty(value = "热点园区")
......
......@@ -73,6 +73,9 @@ public class HomePageController extends BaseController {
@Autowired
SysCommonFileService sysCommonFileService;
@Autowired
SysCarouselInfoService sysCarouselInfoService;
@Autowired
SysAreaCodeService sysAreaCodeService;
......@@ -148,15 +151,15 @@ public class HomePageController extends BaseController {
}
}
// QueryWrapper<SysCarouselInfo> sysCarouselInfoQW = new QueryWrapper<>();
// sysCarouselInfoQW.eq("`status`", 1);
// sysCarouselInfoQW.eq("`type`", 3);
// List<SysCarouselInfo> list = sysCarouselInfoService.list(sysCarouselInfoQW);
LambdaQueryWrapper<SysCommonFile> sysCommonFileLambdaQueryWrapper = new LambdaQueryWrapper<>();
sysCommonFileLambdaQueryWrapper.eq(SysCommonFile::getStatus, StatusEnum.ENABLE.getCode());
sysCommonFileLambdaQueryWrapper.eq(SysCommonFile::getType, CommonFileTypeEnum.YQZDSYLBT.getType());
List<SysCommonFile> list = sysCommonFileService.list(sysCommonFileLambdaQueryWrapper);
List<SysCommonFileVo> collect = list.stream().map(data -> BeanUtil.copyProperties(data, SysCommonFileVo.class)).collect(Collectors.toList());
QueryWrapper<SysCarouselInfo> sysCarouselInfoQW = new QueryWrapper<>();
sysCarouselInfoQW.eq("`status`", 1);
sysCarouselInfoQW.eq("`type`", 3);
List<SysCarouselInfo> collect = sysCarouselInfoService.list(sysCarouselInfoQW);
// LambdaQueryWrapper<SysCommonFile> sysCommonFileLambdaQueryWrapper = new LambdaQueryWrapper<>();
// sysCommonFileLambdaQueryWrapper.eq(SysCommonFile::getStatus, StatusEnum.ENABLE.getCode());
// sysCommonFileLambdaQueryWrapper.eq(SysCommonFile::getType, CommonFileTypeEnum.YQZDSYLBT.getType());
// List<SysCommonFile> list = sysCommonFileService.list(sysCommonFileLambdaQueryWrapper);
// List<SysCommonFileVo> collect = list.stream().map(data -> BeanUtil.copyProperties(data, SysCommonFileVo.class)).collect(Collectors.toList());
List<ParkInfo> lists = parkInfoService.selectHotParkInfoListVO();
......
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