zouxuan 3 éve
szülő
commit
16c95aea76

+ 1 - 0
cms/src/main/resources/config/mybatis/SysNewsInformationMapper.xml

@@ -193,6 +193,7 @@
 				and type_ = #{type}
 			</if>
 		</where>
+		ORDER BY order_
 	</select>
 	
 	<update id="deleteWithLogical">

+ 8 - 1
cms/src/main/resources/config/mybatis/SysNewsTypeMapper.xml

@@ -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>