|
@@ -13,10 +13,11 @@
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
+ <result property="image" column="image"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectLcdInfoVo">
|
|
|
- select id, title, send_time, detail, create_by, create_time, update_by, update_time from lcd_info
|
|
|
+ select id, title, send_time, detail, create_by, create_time, update_by, update_time, image from lcd_info
|
|
|
</sql>
|
|
|
<!--搜索消息列表,xml中>,
|
|
|
<不能被正确解析,需要XML转义字符
|
|
@@ -50,7 +51,7 @@
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
|
|
|
- <insert id="insertLcdInfo" parameterType="LcdInfo">
|
|
|
+ <insert id="insertLcdInfo" parameterType="LcdInfoVo" >
|
|
|
insert into lcd_info
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">id,</if>
|
|
@@ -61,6 +62,7 @@
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
+ <if test="image != null">image,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -71,6 +73,7 @@
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
+ <if test="image != null">#{image},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -84,6 +87,8 @@
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ <if test="image != null">image = #{image},</if>
|
|
|
+
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|