Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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
base_platform_enterprise
gic-platform-enterprise
Commits
1e692437
Commit
1e692437
authored
Sep 03, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
装修页面添加:快捷导航字段
parent
c38bd683
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
3 deletions
+36
-3
TabAppletCustomPage.java
...n/java/com/gic/enterprise/entity/TabAppletCustomPage.java
+15
-0
AppletCustomPageApiServiceImpl.java
...se/service/outer/impl/AppletCustomPageApiServiceImpl.java
+6
-0
TabAppletCustomPageMapper.xml
...e/src/main/resources/mapper/TabAppletCustomPageMapper.xml
+15
-3
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabAppletCustomPage.java
View file @
1e692437
...
...
@@ -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
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/AppletCustomPageApiServiceImpl.java
View file @
1e692437
...
...
@@ -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
))
{
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabAppletCustomPageMapper.xml
View file @
1e692437
...
...
@@ -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},
...
...
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