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
491d733d
Commit
491d733d
authored
Dec 19, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导航保存增加icon路径
parent
4f86b124
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
85 additions
and
5 deletions
+85
-5
CustomGuideDTO.java
.../src/main/java/com/gic/enterprise/dto/CustomGuideDTO.java
+27
-0
TabCustomGuide.java
...c/main/java/com/gic/enterprise/entity/TabCustomGuide.java
+26
-0
TabCustomGuideMapper.xml
...ervice/src/main/resources/mapper/TabCustomGuideMapper.xml
+30
-5
CustomGuideController.java
.../gic/enterprise/web/controller/CustomGuideController.java
+2
-0
No files found.
gic-platform-enterprise-api/src/main/java/com/gic/enterprise/dto/CustomGuideDTO.java
View file @
491d733d
...
...
@@ -64,6 +64,16 @@ public class CustomGuideDTO implements Serializable {
private
String
appid
;
/**
* 导航未选中图标
*/
private
String
iconPath
;
/**
* 导航选中图标
*/
private
String
selectedIconPath
;
public
Integer
getGuideId
()
{
return
guideId
;
}
...
...
@@ -159,4 +169,20 @@ public class CustomGuideDTO implements Serializable {
public
void
setAppid
(
String
appid
)
{
this
.
appid
=
appid
;
}
public
String
getIconPath
()
{
return
iconPath
;
}
public
void
setIconPath
(
String
iconPath
)
{
this
.
iconPath
=
iconPath
;
}
public
String
getSelectedIconPath
()
{
return
selectedIconPath
;
}
public
void
setSelectedIconPath
(
String
selectedIconPath
)
{
this
.
selectedIconPath
=
selectedIconPath
;
}
}
\ No newline at end of file
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/entity/TabCustomGuide.java
View file @
491d733d
...
...
@@ -62,6 +62,16 @@ public class TabCustomGuide {
private
Integer
version
;
/**
* 导航未选中图标
*/
private
String
iconPath
;
/**
* 导航选中图标
*/
private
String
selectedIconPath
;
/**
* 自定义链接类型1:商城 2:商品分类 3:购物车 4:附近门店5:我的 6:积分服务,7其它
*/
private
Integer
customLinkType
;
...
...
@@ -164,6 +174,22 @@ public class TabCustomGuide {
this
.
version
=
version
;
}
public
String
getIconPath
()
{
return
iconPath
;
}
public
void
setIconPath
(
String
iconPath
)
{
this
.
iconPath
=
iconPath
;
}
public
String
getSelectedIconPath
()
{
return
selectedIconPath
;
}
public
void
setSelectedIconPath
(
String
selectedIconPath
)
{
this
.
selectedIconPath
=
selectedIconPath
;
}
public
Integer
getCustomLinkType
()
{
return
customLinkType
;
}
...
...
gic-platform-enterprise-service/src/main/resources/mapper/TabCustomGuideMapper.xml
View file @
491d733d
...
...
@@ -13,13 +13,16 @@
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"version"
jdbcType=
"INTEGER"
property=
"version"
/>
<result
column=
"icon_path"
jdbcType=
"VARCHAR"
property=
"iconPath"
/>
<result
column=
"selected_icon_path"
jdbcType=
"VARCHAR"
property=
"selectedIconPath"
/>
<result
column=
"custom_link_type"
jdbcType=
"INTEGER"
property=
"customLinkType"
/>
<result
column=
"custom_page"
jdbcType=
"VARCHAR"
property=
"customPage"
/>
<result
column=
"appid"
jdbcType=
"VARCHAR"
property=
"appid"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
guide_id, enterprise_id, icon, title, entry_condition, link, status, sort, create_time,
update_time, version, custom_link_type, custom_page, appid
update_time, version, icon_path, selected_icon_path, custom_link_type, custom_page,
appid
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
...
...
@@ -35,13 +38,15 @@
insert into tab_custom_guide (guide_id, enterprise_id, icon,
title, entry_condition, link,
status, sort, create_time,
update_time, version, custom_link_type,
custom_page, appid)
update_time, version, icon_path,
selected_icon_path, custom_link_type, custom_page,
appid)
values (#{guideId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{icon,jdbcType=VARCHAR},
#{title,jdbcType=VARCHAR}, #{entryCondition,jdbcType=INTEGER}, #{link,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{version,jdbcType=INTEGER}, #{customLinkType,jdbcType=INTEGER},
#{customPage,jdbcType=VARCHAR}, #{appid,jdbcType=VARCHAR})
#{updateTime,jdbcType=TIMESTAMP}, #{version,jdbcType=INTEGER}, #{iconPath,jdbcType=VARCHAR},
#{selectedIconPath,jdbcType=VARCHAR}, #{customLinkType,jdbcType=INTEGER}, #{customPage,jdbcType=VARCHAR},
#{appid,jdbcType=VARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.enterprise.entity.TabCustomGuide"
>
insert into tab_custom_guide
...
...
@@ -79,6 +84,12 @@
<if
test=
"version != null"
>
version,
</if>
<if
test=
"iconPath != null"
>
icon_path,
</if>
<if
test=
"selectedIconPath != null"
>
selected_icon_path,
</if>
<if
test=
"customLinkType != null"
>
custom_link_type,
</if>
...
...
@@ -123,6 +134,12 @@
<if
test=
"version != null"
>
#{version,jdbcType=INTEGER},
</if>
<if
test=
"iconPath != null"
>
#{iconPath,jdbcType=VARCHAR},
</if>
<if
test=
"selectedIconPath != null"
>
#{selectedIconPath,jdbcType=VARCHAR},
</if>
<if
test=
"customLinkType != null"
>
#{customLinkType,jdbcType=INTEGER},
</if>
...
...
@@ -167,6 +184,12 @@
<if
test=
"version != null"
>
version = #{version,jdbcType=INTEGER},
</if>
<if
test=
"iconPath != null"
>
icon_path = #{iconPath,jdbcType=VARCHAR},
</if>
<if
test=
"selectedIconPath != null"
>
selected_icon_path = #{selectedIconPath,jdbcType=VARCHAR},
</if>
<if
test=
"customLinkType != null"
>
custom_link_type = #{customLinkType,jdbcType=INTEGER},
</if>
...
...
@@ -191,6 +214,8 @@
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
version = #{version,jdbcType=INTEGER},
icon_path = #{iconPath,jdbcType=VARCHAR},
selected_icon_path = #{selectedIconPath,jdbcType=VARCHAR},
custom_link_type = #{customLinkType,jdbcType=INTEGER},
custom_page = #{customPage,jdbcType=VARCHAR},
appid = #{appid,jdbcType=VARCHAR}
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/CustomGuideController.java
View file @
491d733d
...
...
@@ -46,6 +46,8 @@ public class CustomGuideController {
guideDTO
.
setSort
(
json
.
getInteger
(
"sort"
));
guideDTO
.
setStatus
(
json
.
getInteger
(
"status"
));
guideDTO
.
setAppid
(
appId
);
guideDTO
.
setIcon
(
json
.
getString
(
"iconPath"
));
guideDTO
.
setSelectedIconPath
(
json
.
getString
(
"selectedIconPath"
));
this
.
getPath
(
guideDTO
,
list
,
response
.
getResult
());
list
.
add
(
guideDTO
);
}
...
...
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