|
@@ -24,7 +24,8 @@
|
|
|
|
|
|
<!-- 全查询 -->
|
|
|
<select id="findAll" resultMap="SysNewsType">
|
|
|
- SELECT * FROM sys_news_type ORDER BY order_
|
|
|
+ SELECT * FROM sys_news_type ORDER
|
|
|
+ BY id_
|
|
|
</select>
|
|
|
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
@@ -45,12 +46,18 @@
|
|
|
<if test="delFlag != null">
|
|
|
del_flag_ = #{delFlag},
|
|
|
</if>
|
|
|
+ <if test="id != null">
|
|
|
+ id_ = #{id},
|
|
|
+ </if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time_ = #{updateTime},
|
|
|
</if>
|
|
|
<if test="name != null">
|
|
|
name_ = #{name},
|
|
|
</if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time_ = #{createTime},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
WHERE id_ = #{id} and tenant_id_ = #{tenantId}
|
|
|
</update>
|