Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
cfld-region-outline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-backend
cfld-region-outline
Commits
8c5c49e0
Commit
8c5c49e0
authored
Dec 19, 2023
by
yaobaizheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改小程序首页轮播图存储位置
parent
c14b3b21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
HomePageVO.java
src/main/java/com/lyy/admin/VO/HomePageVO.java
+2
-2
HomePageController.java
...com/lyy/admin/controller/homepage/HomePageController.java
+12
-9
No files found.
src/main/java/com/lyy/admin/VO/HomePageVO.java
View file @
8c5c49e0
...
...
@@ -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
=
"热点园区"
)
...
...
src/main/java/com/lyy/admin/controller/homepage/HomePageController.java
View file @
8c5c49e0
...
...
@@ -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> lis
t = 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
>
collec
t
=
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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment