Commit 9991e4e1 by 吴博 Committed by guiq

feat: [1006243] 会员背景图

parent 26c20b78
...@@ -56,4 +56,14 @@ public class ResourcePageColumn extends BaseEntity { ...@@ -56,4 +56,14 @@ public class ResourcePageColumn extends BaseEntity {
* 导航id * 导航id
*/ */
private Long navigationId; private Long navigationId;
/**
* 背景图类型
*/
private Integer backgroundType;
/**
* 背景图地址
*/
private String backgroundUrl;
} }
\ No newline at end of file
...@@ -97,4 +97,14 @@ public class ResourceColumnAndServeVO extends BaseDto{ ...@@ -97,4 +97,14 @@ public class ResourceColumnAndServeVO extends BaseDto{
* 导航id * 导航id
*/ */
private Long navigationId; private Long navigationId;
/**
* 背景图类型
*/
private Integer backgroundType;
/**
* 背景图地址
*/
private String backgroundUrl;
} }
...@@ -74,4 +74,14 @@ public class UpdateResourceColumnVO { ...@@ -74,4 +74,14 @@ public class UpdateResourceColumnVO {
* 渠道id * 渠道id
*/ */
private Long channelId; private Long channelId;
/**
* 背景图类型
*/
private Integer backgroundType;
/**
* 背景图地址
*/
private String backgroundUrl;
} }
...@@ -80,4 +80,6 @@ public class UpdateResourcePageVO { ...@@ -80,4 +80,6 @@ public class UpdateResourcePageVO {
@ApiModelProperty("RAYS码落地页类型1本书服务2企微") @ApiModelProperty("RAYS码落地页类型1本书服务2企微")
private Integer landingPageType; private Integer landingPageType;
} }
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
<result property="createUser" column="create_user" jdbcType="INTEGER"/> <result property="createUser" column="create_user" jdbcType="INTEGER"/>
<result property="labelIcon" column="label_icon" jdbcType="VARCHAR"/> <result property="labelIcon" column="label_icon" jdbcType="VARCHAR"/>
<result property="navigationId" column="navigation_id" jdbcType="INTEGER"/> <result property="navigationId" column="navigation_id" jdbcType="INTEGER"/>
<result property="backgroundType" column="background_type" jdbcType="INTEGER"/>
<result property="backgroundUrl" column="background_url" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
<resultMap id="ResourceColumnAndServe" type="com.pcloud.book.group.vo.ResourceColumnAndServeVO"> <resultMap id="ResourceColumnAndServe" type="com.pcloud.book.group.vo.ResourceColumnAndServeVO">
...@@ -29,12 +31,14 @@ ...@@ -29,12 +31,14 @@
<result property="showMore" column="show_more" jdbcType="BOOLEAN"/> <result property="showMore" column="show_more" jdbcType="BOOLEAN"/>
<result property="labelIcon" column="label_icon" jdbcType="VARCHAR"/> <result property="labelIcon" column="label_icon" jdbcType="VARCHAR"/>
<result property="navigationId" column="navigation_id" jdbcType="INTEGER"/> <result property="navigationId" column="navigation_id" jdbcType="INTEGER"/>
<result property="backgroundType" column="background_type" jdbcType="INTEGER"/>
<result property="backgroundUrl" column="background_url" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
<!--查询单个--> <!--查询单个-->
<select id="getById" resultMap="ResourcePageColumnMap"> <select id="getById" resultMap="ResourcePageColumnMap">
select select
id, resource_page_id, column_type, column_name, column_format, column_seq, show_more,show_count, create_time, label_icon, navigation_id id, resource_page_id, column_type, column_name, column_format, column_seq, show_more,show_count, create_time, label_icon, navigation_id,background_type,background_url
from book.resource_page_column from book.resource_page_column
where id = #{id} where id = #{id}
</select> </select>
...@@ -42,9 +46,9 @@ ...@@ -42,9 +46,9 @@
<!--新增所有列--> <!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true"> <insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into book.resource_page_column(resource_page_id, column_type, column_name, column_format, column_seq, insert into book.resource_page_column(resource_page_id, column_type, column_name, column_format, column_seq,
show_more, show_count, create_time, update_time, create_user, label_icon, navigation_id) show_more, show_count, create_time, update_time, create_user, label_icon, navigation_id,background_type,background_url)
values (#{resourcePageId}, #{columnType}, #{columnName}, #{columnFormat}, #{columnSeq}, values (#{resourcePageId}, #{columnType}, #{columnName}, #{columnFormat}, #{columnSeq},
#{showMore}, #{showCount}, now(), now(), #{createUser}, #{labelIcon}, #{navigationId}) #{showMore}, #{showCount}, now(), now(), #{createUser}, #{labelIcon}, #{navigationId},#{backgroundType}, #{backgroundUrl})
</insert> </insert>
<!--通过主键修改数据--> <!--通过主键修改数据-->
...@@ -74,6 +78,12 @@ ...@@ -74,6 +78,12 @@
<if test="navigationId != null"> <if test="navigationId != null">
navigation_id = #{navigationId}, navigation_id = #{navigationId},
</if> </if>
<if test="backgroundType != null">
background_type = #{backgroundType},
</if>
<if test="backgroundUrl != null">
background_url = #{backgroundUrl},
</if>
</set> </set>
where id = #{id} where id = #{id}
</update> </update>
...@@ -105,7 +115,9 @@ ...@@ -105,7 +115,9 @@
show_count, show_count,
show_more, show_more,
label_icon, label_icon,
navigation_id navigation_id,
background_type,
background_url
FROM FROM
resource_page_column resource_page_column
WHERE WHERE
...@@ -120,7 +132,7 @@ ...@@ -120,7 +132,7 @@
<select id="getByColumnTypeAndPage" parameterType="map" resultMap="ResourcePageColumnMap"> <select id="getByColumnTypeAndPage" parameterType="map" resultMap="ResourcePageColumnMap">
select select
id, resource_page_id, column_type, column_name, column_format, column_seq, show_more, show_count, create_time, navigation_id id, resource_page_id, column_type, column_name, column_format, column_seq, show_more, show_count, create_time, navigation_id, background_type, background_url
from book.resource_page_column from book.resource_page_column
where resource_page_id = #{resourcePageId} where resource_page_id = #{resourcePageId}
and column_type = #{columnType} and column_type = #{columnType}
...@@ -135,7 +147,7 @@ ...@@ -135,7 +147,7 @@
<select id="getColumByMoveType" parameterType="map" resultMap="ResourcePageColumnMap"> <select id="getColumByMoveType" parameterType="map" resultMap="ResourcePageColumnMap">
SELECT SELECT
id, resource_page_id, column_type, column_name, column_format, column_seq, show_more, show_count, create_time, navigation_id id, resource_page_id, column_type, column_name, column_format, column_seq, show_more, show_count, create_time, navigation_id,background_type, background_url
FROM FROM
book.resource_page_column book.resource_page_column
WHERE WHERE
...@@ -179,7 +191,7 @@ ...@@ -179,7 +191,7 @@
<select id="getByNavigation" resultMap="ResourcePageColumnMap" parameterType="long"> <select id="getByNavigation" resultMap="ResourcePageColumnMap" parameterType="long">
select select
id, resource_page_id, column_type, column_name, column_format, column_seq, show_more,show_count, create_time, label_icon, navigation_id id, resource_page_id, column_type, column_name, column_format, column_seq, show_more,show_count, create_time, label_icon, navigation_id, background_type, background_url
from book.resource_page_column from book.resource_page_column
where navigation_id = #{navigationId} where navigation_id = #{navigationId}
</select> </select>
......
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