Commit 1e692437 by guojuxing

装修页面添加:快捷导航字段

parent c38bd683
......@@ -27,6 +27,11 @@ public class TabAppletCustomPage {
private Integer entryCondition;
/**
* 快捷导航开关 1:开启 0:关闭 默认开启
*/
private Integer quickGuideSwitch;
/**
* 背景颜色 灰色 白色 ,默认灰色(会员中心页面、积分服务页面、自定义页面、商城装首页 有该设置)
*/
private String backgroundColor;
......@@ -162,4 +167,13 @@ public class TabAppletCustomPage {
this.backgroundColor = backgroundColor;
return this;
}
public Integer getQuickGuideSwitch() {
return quickGuideSwitch;
}
public TabAppletCustomPage setQuickGuideSwitch(Integer quickGuideSwitch) {
this.quickGuideSwitch = quickGuideSwitch;
return this;
}
}
\ No newline at end of file
......@@ -91,6 +91,11 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "页面类型错误");
}
Integer quickGuideSwitch = jsonObject.getInteger("quickGuideSwitch");
if (quickGuideSwitch == null) {
quickGuideSwitch = 1;
}
String backgroundColor = jsonObject.getString("backgroundColor");
if (AppletPageTypeEnum.hasBackgroundColor(pageType)) {
if (backgroundColor == null) {
......@@ -114,6 +119,7 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
record.setSetting(jsonObject.getString("setting"));
record.setPageType(pageType);
record.setBackgroundColor(backgroundColor);
record.setQuickGuideSwitch(quickGuideSwitch);
//如果是有默认数据的类型(会员中心),第一条记录,即使saveType = 2,也自动变成1
if (AppletPageTypeEnum.hasDefault(pageType)) {
......
......@@ -6,6 +6,7 @@
<result column="enterprise_id" jdbcType="INTEGER" property="enterpriseId" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="entry_condition" jdbcType="INTEGER" property="entryCondition" />
<result column="quick_guide_switch" jdbcType="INTEGER" property="quickGuideSwitch" />
<result column="background_color" jdbcType="VARCHAR" property="backgroundColor" />
<result column="page_type" jdbcType="INTEGER" property="pageType" />
<result column="status" jdbcType="INTEGER" property="status" />
......@@ -18,7 +19,7 @@
<result column="setting" jdbcType="LONGVARCHAR" property="setting" />
</resultMap>
<sql id="Base_Column_List">
page_id, enterprise_id, title, entry_condition, background_color, page_type, status,
page_id, enterprise_id, title, entry_condition, quick_guide_switch, background_color, page_type, status,
app_type, app_id, create_time, update_time
</sql>
<sql id="Blob_Column_List">
......@@ -38,11 +39,11 @@
</delete>
<insert id="insert" parameterType="com.gic.enterprise.entity.TabAppletCustomPage" useGeneratedKeys="true" keyProperty="pageId">
insert into tab_applet_custom_page (page_id, enterprise_id, title,
entry_condition, background_color, page_type, status, app_type,
entry_condition, quick_guide_switch, background_color, page_type, status, app_type,
app_id, create_time, update_time,
setting)
values (#{pageId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR},
#{entryCondition,jdbcType=INTEGER}, #{backgroundColor,jdbcType=VARCHAR}, #{pageType,jdbcType=INTEGER},
#{entryCondition,jdbcType=INTEGER}, #{quickGuideSwitch,jdbcType=INTEGER}, #{backgroundColor,jdbcType=VARCHAR}, #{pageType,jdbcType=INTEGER},
#{status,jdbcType=INTEGER}, #{appType,jdbcType=INTEGER},
#{appId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{setting,jdbcType=LONGVARCHAR})
......@@ -62,6 +63,9 @@
<if test="entryCondition != null">
entry_condition,
</if>
<if test="quickGuideSwitch != null">
quick_guide_switch,
</if>
<if test="backgroundColor != null">
background_color,
</if>
......@@ -100,6 +104,9 @@
<if test="entryCondition != null">
#{entryCondition,jdbcType=INTEGER},
</if>
<if test="quickGuideSwitch != null">
#{quickGuideSwitch,jdbcType=INTEGER},
</if>
<if test="backgroundColor != null">
#{backgroundColor,jdbcType=VARCHAR},
</if>
......@@ -138,6 +145,9 @@
<if test="entryCondition != null">
entry_condition = #{entryCondition,jdbcType=INTEGER},
</if>
<if test="quickGuideSwitch != null">
quick_guide_switch = #{quickGuideSwitch,jdbcType=INTEGER},
</if>
<if test="backgroundColor != null">
background_color = #{backgroundColor,jdbcType=VARCHAR},
</if>
......@@ -170,6 +180,7 @@
set enterprise_id = #{enterpriseId,jdbcType=INTEGER},
title = #{title,jdbcType=VARCHAR},
entry_condition = #{entryCondition,jdbcType=INTEGER},
quick_guide_switch = #{quickGuideSwitch,jdbcType=INTEGER},
background_color = #{backgroundColor,jdbcType=VARCHAR},
page_type = #{pageType,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
......@@ -185,6 +196,7 @@
set enterprise_id = #{enterpriseId,jdbcType=INTEGER},
title = #{title,jdbcType=VARCHAR},
entry_condition = #{entryCondition,jdbcType=INTEGER},
quick_guide_switch = #{quickGuideSwitch,jdbcType=INTEGER},
background_color = #{backgroundColor,jdbcType=VARCHAR},
page_type = #{pageType,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
......
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