Commit 3f2a8389 by wnb0128

车家智能数据服务 场景相关添加页面图标字段--think.wang

1 parent 91e889f6
......@@ -63,6 +63,16 @@ public class SmartScene implements Serializable {
private Long backPic;
/**
* 列表页面图ID 关联smart_sys_file中id
*/
private Long pagePic;
/**
* 列表页面图
*/
private String pagePicUrl;
/**
* 场景背景图
*/
private String backPicUrl;
......
......@@ -59,11 +59,21 @@ public class SmartSceneTemplate extends BaseDTO implements Serializable {
private Long backPic;
/**
* 列表页面图ID 关联smart_sys_file中id
*/
private Long pagePic;
/**
* 场景背景图
*/
private String backPicUrl;
/**
* 列表页面图
*/
private String pagePicUrl;
/**
* 查看次数
*/
private Long viewTimes;
......
......@@ -11,6 +11,7 @@
<result column="type_key" jdbcType="VARCHAR" property="typeKey"/>
<result column="icon" jdbcType="BIGINT" property="icon"/>
<result column="back_pic" jdbcType="BIGINT" property="backPic"/>
<result column="page_pic" jdbcType="BIGINT" property="pagePic"/>
<result column="view_times" jdbcType="BIGINT" property="viewTimes"/>
<result column="description" jdbcType="VARCHAR" property="description"/>
<result column="condition_rule" jdbcType="TINYINT" property="conditionRule"/>
......@@ -28,10 +29,14 @@
fetchType="eager"
select="com.glsx.smart.dao.mapper.SmartSysFileMapper.selectUrlById">
</collection>
<collection property="pagePicUrl" column="page_pic" ofType="com.glsx.smart.dao.entity.SmartScene"
fetchType="eager"
select="com.glsx.smart.dao.mapper.SmartSysFileMapper.selectUrlById">
</collection>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, user_id, scene_name, type_key, icon, back_pic, view_times, description, condition_rule,
id, user_id, scene_name, type_key, icon, back_pic, page_pic, view_times, description, condition_rule,
execute_cycle, `status`, remark, create_time, update_time
</sql>
<update id="updateBatch" parameterType="java.util.List">
......@@ -220,14 +225,14 @@
useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scene
(user_id, scene_name, type_key, icon, back_pic, view_times, description, condition_rule,
(user_id, scene_name, type_key, icon, back_pic, page_pic, view_times, description, condition_rule,
execute_cycle, `status`, remark, create_time, update_time)
values
<foreach collection="list" item="item" separator=",">
(#{item.userId,jdbcType=BIGINT}, #{item.sceneName,jdbcType=VARCHAR},
#{item.typeKey,jdbcType=VARCHAR},
#{item.icon,jdbcType=BIGINT}, #{item.backPic,jdbcType=BIGINT},
#{item.viewTimes,jdbcType=BIGINT},
#{item.pagePic,jdbcType=BIGINT}, #{item.viewTimes,jdbcType=BIGINT},
#{item.description,jdbcType=VARCHAR}, #{item.conditionRule,jdbcType=TINYINT},
#{item.executeCycle,jdbcType=TINYINT},
#{item.status,jdbcType=TINYINT}, #{item.remark,jdbcType=VARCHAR},
......@@ -319,6 +324,9 @@
<if test="backPic != null">
back_pic,
</if>
<if test="pagePic != null">
page_pic,
</if>
<if test="viewTimes != null">
view_times,
</if>
......@@ -364,6 +372,9 @@
<if test="backPic != null">
#{backPic,jdbcType=BIGINT},
</if>
<if test="pagePic != null">
#{pagePic,jdbcType=BIGINT},
</if>
<if test="viewTimes != null">
#{viewTimes,jdbcType=BIGINT},
</if>
......@@ -409,6 +420,9 @@
<if test="backPic != null">
back_pic = #{backPic,jdbcType=BIGINT},
</if>
<if test="pagePic != null">
page_pic = #{pagePic,jdbcType=BIGINT},
</if>
<if test="viewTimes != null">
view_times = #{viewTimes,jdbcType=BIGINT},
</if>
......
......@@ -10,6 +10,7 @@
<result column="type_key" jdbcType="VARCHAR" property="typeKey"/>
<result column="icon" jdbcType="BIGINT" property="icon"/>
<result column="back_pic" jdbcType="BIGINT" property="backPic"/>
<result column="page_pic" jdbcType="BIGINT" property="pagePic"/>
<result column="view_times" jdbcType="BIGINT" property="viewTimes"/>
<result column="description" jdbcType="VARCHAR" property="description"/>
<result column="condition_rule" jdbcType="TINYINT" property="conditionRule"/>
......@@ -28,10 +29,13 @@
<collection property="backPicUrl" column="back_pic" ofType="com.glsx.smart.dao.entity.SmartSceneTemplate" fetchType="eager"
select="com.glsx.smart.dao.mapper.SmartSysFileMapper.selectUrlById">
</collection>
<collection property="pagePicUrl" column="page_pic" ofType="com.glsx.smart.dao.entity.SmartSceneTemplate" fetchType="eager"
select="com.glsx.smart.dao.mapper.SmartSysFileMapper.selectUrlById">
</collection>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, scene_name, type_key, icon, back_pic, view_times, description, condition_rule,
id, scene_name, type_key, icon, back_pic, page_pic, view_times, description, condition_rule,
execute_cycle, `status`, remark, create_time, create_by, update_time, update_by
</sql>
<update id="updateBatch" parameterType="java.util.List">
......@@ -232,15 +236,15 @@
useGeneratedKeys="true">
<!--@mbg.generated-->
insert into smart_scene_template
(scene_name, type_key, icon, back_pic, view_times, description, condition_rule,
(scene_name, type_key, icon, back_pic, page_pic, view_times, description, condition_rule,
execute_cycle, `status`, remark, create_time, create_by, update_time, update_by
)
values
<foreach collection="list" item="item" separator=",">
(#{item.sceneName,jdbcType=VARCHAR}, #{item.typeKey,jdbcType=VARCHAR},
#{item.icon,jdbcType=BIGINT},
#{item.backPic,jdbcType=BIGINT}, #{item.viewTimes,jdbcType=BIGINT},
#{item.description,jdbcType=VARCHAR},
#{item.backPic,jdbcType=BIGINT}, #{item.pagePic,jdbcType=BIGINT},
#{item.viewTimes,jdbcType=BIGINT}, #{item.description,jdbcType=VARCHAR},
#{item.conditionRule,jdbcType=TINYINT}, #{item.executeCycle,jdbcType=TINYINT},
#{item.status,jdbcType=TINYINT}, #{item.remark,jdbcType=VARCHAR},
#{item.createTime,jdbcType=TIMESTAMP},
......@@ -333,6 +337,9 @@
<if test="backPic != null">
back_pic,
</if>
<if test="pagePic != null">
page_pic,
</if>
<if test="viewTimes != null">
view_times,
</if>
......@@ -381,6 +388,9 @@
<if test="backPic != null">
#{backPic,jdbcType=BIGINT},
</if>
<if test="pagePic != null">
#{pagePic,jdbcType=BIGINT},
</if>
<if test="viewTimes != null">
#{viewTimes,jdbcType=BIGINT},
</if>
......@@ -429,6 +439,9 @@
<if test="backPic != null">
back_pic = #{backPic,jdbcType=BIGINT},
</if>
<if test="pagePic != null">
page_pic = #{pagePic,jdbcType=BIGINT},
</if>
<if test="viewTimes != null">
view_times = #{viewTimes,jdbcType=BIGINT},
</if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!