|
@@ -10,7 +10,9 @@ import com.miaxis.common.core.page.ResponsePageInfo;
|
|
|
import com.miaxis.common.enums.BusinessTypeEnum;
|
|
|
import com.miaxis.common.utils.SecurityUtils;
|
|
|
import com.miaxis.score.domain.ScoreInfo;
|
|
|
+import com.miaxis.score.dto.ScoreInfoAllDTO;
|
|
|
import com.miaxis.score.dto.ScoreInfoPcDTO;
|
|
|
+import com.miaxis.score.dto.ScoreInfoUserIdDTO;
|
|
|
import com.miaxis.score.service.IScoreInfoService;
|
|
|
import com.miaxis.score.vo.ScoreIStudentInfoPcVo;
|
|
|
import com.miaxis.user.service.IUserInfoService;
|
|
@@ -125,7 +127,17 @@ public class PcScoreInfoController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 根据userID获取最大成绩,平均成绩,预测成绩
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/getScoreInfoAllByUserId")
|
|
|
+ @ApiOperation("根据userID获取最大成绩,平均成绩,预测成绩")
|
|
|
+ public Response<ScoreInfoAllDTO> getScoreInfoAllByUserId(ScoreInfoUserIdDTO scoreInfoUserIdDTO){
|
|
|
+ ScoreInfo scoreInfo = new ScoreInfo();
|
|
|
+ scoreInfo.setUserId(scoreInfoUserIdDTO.getUserId());
|
|
|
+ ScoreInfoAllDTO scoreInfoAllDTO = scoreInfoService.getScoreInfoAll(scoreInfo);
|
|
|
+ return Response.success(scoreInfoAllDTO);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|