Commit 491d733d by 陶光胜

导航保存增加icon路径

parent 4f86b124
......@@ -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
......@@ -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;
}
......
......@@ -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}
......
......@@ -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);
}
......
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