Joburgess 5 years ago
parent
commit
fd0ae0d43d

+ 2 - 2
edu-user/edu-user-biz/src/main/resources/config/mybatis/ExamSongMapper.xml

@@ -27,7 +27,7 @@
 	
 	<!-- 全查询 -->
 	<select id="findAll" resultMap="ExamSong">
-		SELECT * FROM exam_song WHERE tenant_id_ = #{tenantId} ORDER BY id_
+		SELECT * FROM exam_song WHERE tenant_id_ = #{tenantId} ORDER BY id_ DESC
 	</select>
 	
 	<!-- 向数据库增加一条记录 -->
@@ -103,7 +103,7 @@
 		LEFT JOIN subject s ON FIND_IN_SET(s.id_, es.subject_list_)
 		<include refid="queryCondition"/>
 		GROUP BY es.id_
-		ORDER BY id_
+		ORDER BY id_ DESC
 		<include refid="global.limit"/>
 	</select>