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
7195b8e9
Commit
7195b8e9
authored
Jul 24, 2022
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】显示或隐藏了解更多按钮
parent
c98bef7e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
2 deletions
+26
-2
IndexCarouselManageController.java
...ules/manage/controller/IndexCarouselManageController.java
+20
-0
IndexCarouselManageEntity.java
...fice/modules/manage/entity/IndexCarouselManageEntity.java
+2
-0
application.yml
src/main/resources/application.yml
+2
-2
IndexCarouselManageDao.xml
src/main/resources/mapper/manage/IndexCarouselManageDao.xml
+2
-0
No files found.
src/main/java/io/office/modules/manage/controller/IndexCarouselManageController.java
View file @
7195b8e9
...
@@ -141,6 +141,26 @@ public class IndexCarouselManageController extends AbstractController {
...
@@ -141,6 +141,26 @@ public class IndexCarouselManageController extends AbstractController {
}
}
}
}
@Transactional
@SysLog
(
"隐藏或显示首页轮播更多按钮[indexcarouselmanage]"
)
@PostMapping
(
"/updateIsShow"
)
@RequiresPermissions
(
"manage:indexcarouselmanage:check"
)
public
R
updateIsShow
(
@RequestBody
IndexCarouselManageEntity
indexCarouselManage
)
{
try
{
QueryWrapper
<
IndexCarouselManageEntity
>
updateQueryWrapper
=
new
QueryWrapper
();
updateQueryWrapper
.
eq
(
"id"
,
indexCarouselManage
.
getId
());
indexCarouselManageService
.
update
(
indexCarouselManage
,
updateQueryWrapper
);
return
R
.
ok
();
}
catch
(
Exception
e
)
{
log
.
error
(
"verifyIndexCarouselManage error:"
,
e
);
return
R
.
error
(
e
.
getMessage
());
}
}
@Login
@Login
...
...
src/main/java/io/office/modules/manage/entity/IndexCarouselManageEntity.java
View file @
7195b8e9
...
@@ -93,4 +93,6 @@ public class IndexCarouselManageEntity implements Serializable {
...
@@ -93,4 +93,6 @@ public class IndexCarouselManageEntity implements Serializable {
*/
*/
private
String
briefShow
;
private
String
briefShow
;
private
String
isShow
;
}
}
src/main/resources/application.yml
View file @
7195b8e9
...
@@ -14,7 +14,7 @@ spring:
...
@@ -14,7 +14,7 @@ spring:
name
:
GS1OfficeWebSit
name
:
GS1OfficeWebSit
# 环境 dev|test|prod
# 环境 dev|test|prod
profiles
:
profiles
:
active
:
test
active
:
dev
# jackson时间格式化
# jackson时间格式化
jackson
:
jackson
:
time-zone
:
GMT+8
time-zone
:
GMT+8
...
@@ -34,7 +34,7 @@ spring:
...
@@ -34,7 +34,7 @@ spring:
mybatis-plus
:
mybatis-plus
:
mapper-locations
:
classpath*:/mapper/**/*.xml
mapper-locations
:
classpath*:/mapper/**/*.xml
#实体扫描,多个package用逗号或者分号分隔
#实体扫描,多个package用逗号或者分号分隔
typeAliasesPackage
:
io.
renren
.modules.*.entity
typeAliasesPackage
:
io.
office
.modules.*.entity
global-config
:
global-config
:
#数据库相关配置
#数据库相关配置
db-config
:
db-config
:
...
...
src/main/resources/mapper/manage/IndexCarouselManageDao.xml
View file @
7195b8e9
...
@@ -23,6 +23,8 @@
...
@@ -23,6 +23,8 @@
<result
property=
"colorBrief"
column=
"color_brief"
/>
<result
property=
"colorBrief"
column=
"color_brief"
/>
<result
property=
"colorMore"
column=
"color_more"
/>
<result
property=
"colorMore"
column=
"color_more"
/>
<result
property=
"briefShow"
column=
"brief_show"
/>
<result
property=
"briefShow"
column=
"brief_show"
/>
<result
property=
"isShow"
column=
"is_show"
/>
</resultMap>
</resultMap>
<select
id=
"selectIndexCarouselManageList"
resultMap=
"indexCarouselManageMap"
parameterType=
"io.office.modules.manage.entity.dto.IndexCarouselManageParams"
>
<select
id=
"selectIndexCarouselManageList"
resultMap=
"indexCarouselManageMap"
parameterType=
"io.office.modules.manage.entity.dto.IndexCarouselManageParams"
>
...
...
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