Commit 7195b8e9 by 吴迪

【修改】显示或隐藏了解更多按钮

parent c98bef7e
...@@ -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
......
...@@ -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;
} }
...@@ -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:
......
...@@ -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">
......
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