Commit 4c760c87 by 田超

Merge branch 'feature/1005292' into 'master'

feat: [1005292] 站内信加推图

See merge request rays/pcloud-book!1385
parents 726bf035 cf92906d
...@@ -35,6 +35,9 @@ public class CultivateNotifyItem extends BaseEntity { ...@@ -35,6 +35,9 @@ public class CultivateNotifyItem extends BaseEntity {
@ApiModelProperty("图片地址") @ApiModelProperty("图片地址")
private String picUrl; private String picUrl;
@ApiModelProperty("首页推图")
private String squareImg;
@ApiModelProperty("音频资源id") @ApiModelProperty("音频资源id")
private Long resourceId; private Long resourceId;
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<result column="jump_type" jdbcType="INTEGER" property="jumpType"/> <result column="jump_type" jdbcType="INTEGER" property="jumpType"/>
<result column="jump_url" jdbcType="VARCHAR" property="jumpUrl"/> <result column="jump_url" jdbcType="VARCHAR" property="jumpUrl"/>
<result column="ext_json" jdbcType="LONGVARCHAR" property="extJson"/> <result column="ext_json" jdbcType="LONGVARCHAR" property="extJson"/>
<result column="square_img" jdbcType="VARCHAR" property="squareImg"/>
</resultMap> </resultMap>
<sql id="Base_Column_List" > <sql id="Base_Column_List" >
...@@ -23,7 +24,8 @@ ...@@ -23,7 +24,8 @@
jump_url, jump_url,
serve_id, serve_id,
serve_type, serve_type,
ext_json ext_json,
square_img
</sql> </sql>
<insert id="batchInsert" parameterType="com.pcloud.book.cultivate.entity.CultivateNotifyItem" useGeneratedKeys="true" keyProperty="id"> <insert id="batchInsert" parameterType="com.pcloud.book.cultivate.entity.CultivateNotifyItem" useGeneratedKeys="true" keyProperty="id">
...@@ -40,7 +42,8 @@ ...@@ -40,7 +42,8 @@
jump_url, jump_url,
serve_id, serve_id,
serve_type, serve_type,
ext_json ext_json,
square_img
) )
values values
<foreach collection="list" item="item" index="index" separator=","> <foreach collection="list" item="item" index="index" separator=",">
...@@ -56,7 +59,8 @@ ...@@ -56,7 +59,8 @@
#{item.jumpUrl}, #{item.jumpUrl},
#{item.serveId}, #{item.serveId},
#{item.serveType}, #{item.serveType},
#{item.extJson} #{item.extJson},
#{item.squareImg}
) )
</foreach> </foreach>
</insert> </insert>
......
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