Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
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
吴迪
gs1-office-web-sit
Commits
38691092
Commit
38691092
authored
Jan 24, 2022
by
rongkailun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】首页大小轮播列表
parent
ab288e95
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
0 deletions
+37
-0
IndexCarouselManageController.java
...ules/manage/controller/IndexCarouselManageController.java
+10
-0
IndexCarouselManageDao.java
.../io/office/modules/manage/dao/IndexCarouselManageDao.java
+2
-0
IndexCarouselManageParams.java
.../modules/manage/entity/dto/IndexCarouselManageParams.java
+1
-0
IndexCarouselManageService.java
...ce/modules/manage/service/IndexCarouselManageService.java
+2
-0
IndexCarouselManageServiceImpl.java
...s/manage/service/impl/IndexCarouselManageServiceImpl.java
+8
-0
IndexCarouselManageDao.xml
src/main/resources/mapper/manage/IndexCarouselManageDao.xml
+14
-0
No files found.
src/main/java/io/office/modules/manage/controller/IndexCarouselManageController.java
View file @
38691092
...
@@ -158,5 +158,15 @@ public class IndexCarouselManageController extends AbstractController {
...
@@ -158,5 +158,15 @@ public class IndexCarouselManageController extends AbstractController {
}
}
/**
* 列表
*/
@RequestMapping
(
"/indexCarouselManageList"
)
public
R
indexCarouselManageList
(
@RequestBody
IndexCarouselManageParams
indexCarouselManage
){
Page
<
IndexCarouselManageEntity
>
page
=
this
.
indexCarouselManageService
.
indexCarouselManageList
(
indexCarouselManage
,
new
Page
(
indexCarouselManage
.
getPage
(),
indexCarouselManage
.
getLimit
()));
PageUtils
pageUtils
=
new
PageUtils
(
page
);
return
R
.
ok
().
put
(
"page"
,
pageUtils
);
}
}
}
src/main/java/io/office/modules/manage/dao/IndexCarouselManageDao.java
View file @
38691092
...
@@ -20,4 +20,6 @@ import java.util.List;
...
@@ -20,4 +20,6 @@ import java.util.List;
public
interface
IndexCarouselManageDao
extends
BaseMapper
<
IndexCarouselManageEntity
>
{
public
interface
IndexCarouselManageDao
extends
BaseMapper
<
IndexCarouselManageEntity
>
{
List
<
IndexCarouselManageEntity
>
selectIndexCarouselManageList
(
@Param
(
"indexCarouselManage"
)
IndexCarouselManageParams
indexCarouselManage
,
Page
page
);
List
<
IndexCarouselManageEntity
>
selectIndexCarouselManageList
(
@Param
(
"indexCarouselManage"
)
IndexCarouselManageParams
indexCarouselManage
,
Page
page
);
List
<
IndexCarouselManageEntity
>
indexCarouselManageList
(
@Param
(
"indexCarouselManage"
)
IndexCarouselManageParams
indexCarouselManage
,
Page
page
);
}
}
src/main/java/io/office/modules/manage/entity/dto/IndexCarouselManageParams.java
View file @
38691092
...
@@ -22,4 +22,5 @@ public class IndexCarouselManageParams extends PageParams {
...
@@ -22,4 +22,5 @@ public class IndexCarouselManageParams extends PageParams {
private
Date
startTime
;
private
Date
startTime
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
endTime
;
private
Date
endTime
;
private
String
type
;
}
}
src/main/java/io/office/modules/manage/service/IndexCarouselManageService.java
View file @
38691092
...
@@ -33,5 +33,7 @@ public interface IndexCarouselManageService extends IService<IndexCarouselManage
...
@@ -33,5 +33,7 @@ public interface IndexCarouselManageService extends IService<IndexCarouselManage
R
verifyIndexCarouselManage
(
IndexCarouselManageEntity
indexCarouselManage
,
SysUserEntity
user
);
R
verifyIndexCarouselManage
(
IndexCarouselManageEntity
indexCarouselManage
,
SysUserEntity
user
);
Page
<
IndexCarouselManageEntity
>
selectIndexCarouselManageList
(
IndexCarouselManageParams
indexCarouselManage
,
Page
page
);
Page
<
IndexCarouselManageEntity
>
selectIndexCarouselManageList
(
IndexCarouselManageParams
indexCarouselManage
,
Page
page
);
Page
<
IndexCarouselManageEntity
>
indexCarouselManageList
(
IndexCarouselManageParams
indexCarouselManage
,
Page
page
);
}
}
src/main/java/io/office/modules/manage/service/impl/IndexCarouselManageServiceImpl.java
View file @
38691092
...
@@ -116,4 +116,11 @@ public class IndexCarouselManageServiceImpl extends ServiceImpl<IndexCarouselMan
...
@@ -116,4 +116,11 @@ public class IndexCarouselManageServiceImpl extends ServiceImpl<IndexCarouselMan
return
page
;
return
page
;
}
}
@Override
public
Page
<
IndexCarouselManageEntity
>
indexCarouselManageList
(
IndexCarouselManageParams
indexCarouselManage
,
Page
page
)
{
List
<
IndexCarouselManageEntity
>
list
=
this
.
indexCarouselManageDao
.
indexCarouselManageList
(
indexCarouselManage
,
page
);
page
.
setRecords
(
list
);
return
page
;
}
}
}
\ No newline at end of file
src/main/resources/mapper/manage/IndexCarouselManageDao.xml
View file @
38691092
...
@@ -54,4 +54,17 @@
...
@@ -54,4 +54,17 @@
ORDER BY
ORDER BY
t.levels desc,t.starttime_index DESC,t.id desc
t.levels desc,t.starttime_index DESC,t.id desc
</select>
</select>
<select
id=
"indexCarouselManageList"
resultMap=
"indexCarouselManageMap"
>
SELECT
*
FROM
index_carousel_manage
WHERE
levels > 0
AND checkflag_index >= 0
AND classnum = #{indexCarouselManage.type}
ORDER BY
id DESC
</select>
</mapper>
</mapper>
\ No newline at end of file
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