Parcourir la source

学员成绩列表 按时间倒序

Althars123 il y a 3 ans
Parent
commit
f48698925c

+ 0 - 2
twzd-admin/src/main/java/com/miaxis/app/controller/h5/ScoreInfoController.java

@@ -18,7 +18,6 @@ import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
-import java.util.Arrays;
 import java.util.List;
 
 /**
@@ -47,7 +46,6 @@ public class ScoreInfoController extends BaseController {
         startPage();
         ScoreInfo scoreInfo = new ScoreInfo();
         scoreInfo.setUserId(SecurityUtils.getLoginUser().getStudent().getId());
-        System.out.println();
         List<ScoreInfo> list = scoreInfoService.selectScoreInfoList(scoreInfo);
         return toResponsePageInfo(list);
     }

+ 1 - 1
twzd-admin/src/main/java/com/miaxis/pc/controller/question/PcScoreInfoController.java

@@ -92,7 +92,7 @@ public class PcScoreInfoController extends BaseController {
     })
     public ResponsePageInfo<ScoreInfo> studentscore( @PathVariable("userId") Long userId){
         startPage();
-        List<ScoreInfo> list = scoreInfoService.list(new QueryWrapper<ScoreInfo>().eq("user_id",userId));
+        List<ScoreInfo> list = scoreInfoService.list(new QueryWrapper<ScoreInfo>().eq("user_id",userId).orderByDesc("create_time"));
         return toResponsePageInfo(list);
     }
 

+ 0 - 1
twzd-service/src/main/resources/mapper/score/ScoreInfoMapper.xml

@@ -40,7 +40,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="kskm != null  and kskm != ''"> and kskm = #{kskm}</if>
             <if test="score != null "> and score = #{score}</if>
         </where>
-        order by create_time desc
     </select>