Commit 093ad4a4 by 宋珺琪

我的分数降序排序

parent e3c77aee
...@@ -27,7 +27,7 @@ public interface ScoreMapper { ...@@ -27,7 +27,7 @@ public interface ScoreMapper {
IPage<Score> findById(Page<?> page,@Param("studentId") String studentId); IPage<Score> findById(Page<?> page,@Param("studentId") String studentId);
// 不分页 // 不分页
@Select("select scoreId,examCode,studentId,subject,ptScore,etScore,score,answerDate from score where studentId = #{studentId}") @Select("select scoreId,examCode,studentId,subject,ptScore,etScore,score,answerDate from score where studentId = #{studentId} ORDER BY STR_TO_DATE(answerDate, '%Y-%m-%d') DESC")
List<Score> findById(String studentId); List<Score> findById(String studentId);
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment