提交 c477a655 作者: 刘明祎-运维用途

添加字段

上级 409815a0
......@@ -94,8 +94,8 @@
<insert id="insert" parameterType="com.mmc.csf.release.entity.information.IndustryNewsDO" useGeneratedKeys="true"
keyColumn="id">
insert into industry_news(news_title, news_author, user_account_id, surface_img, news_contents, origin,
create_time)
values (#{newsTitle}, #{newsAuthor}, #{userAccountId}, #{surfaceImg}, #{newsContents}, #{origin}, now())
create_time,is_hot)
values (#{newsTitle}, #{newsAuthor}, #{userAccountId}, #{surfaceImg}, #{newsContents}, #{origin}, now(),#{isHot})
</insert>
<update id="update" parameterType="com.mmc.csf.release.entity.information.IndustryNewsDO">
......@@ -122,6 +122,9 @@
<if test="isDeleted !=null">
is_deleted = #{isDeleted},
</if>
<if test="isHot != null">
is_hot = #{isHot}
</if>
</set>
where is_deleted = 0 and id = #{id}
</update>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论