|
@@ -10,7 +10,9 @@ import com.miaxis.common.utils.SecurityUtils;
|
|
|
import com.miaxis.score.domain.ScoreInfo;
|
|
|
import com.miaxis.score.dto.ScoreInfoAllDTO;
|
|
|
import com.miaxis.score.dto.ScoreInfoDTO;
|
|
|
+import com.miaxis.score.dto.ScoreInfoUserIdDTO;
|
|
|
import com.miaxis.score.service.IScoreInfoService;
|
|
|
+import com.miaxis.score.vo.ScoreInfoH5Vo;
|
|
|
import io.swagger.annotations.*;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -90,15 +92,15 @@ public class ScoreInfoController extends BaseController {
|
|
|
/**
|
|
|
* 删除模拟考成绩
|
|
|
*/
|
|
|
- @Log(title = "模拟考成绩", businessType = BusinessTypeEnum.DELETE)
|
|
|
- @DeleteMapping("/{ids}")
|
|
|
- @ApiOperation("删除模拟考成绩")
|
|
|
- public Response<Integer> remove(
|
|
|
- @ApiParam(name = "ids", value = "模拟考成绩ids参数", required = true)
|
|
|
- @PathVariable Long[] ids
|
|
|
- ){
|
|
|
- return toResponse(scoreInfoService.removeByIds(Arrays.asList(ids)) ? 1 : 0);
|
|
|
- }
|
|
|
+// @Log(title = "模拟考成绩", businessType = BusinessTypeEnum.DELETE)
|
|
|
+// @DeleteMapping("/{ids}")
|
|
|
+// @ApiOperation("删除模拟考成绩")
|
|
|
+// public Response<Integer> remove(
|
|
|
+// @ApiParam(name = "ids", value = "模拟考成绩ids参数", required = true)
|
|
|
+// @PathVariable Long[] ids
|
|
|
+// ){
|
|
|
+// return toResponse(scoreInfoService.removeByIds(Arrays.asList(ids)) ? 1 : 0);
|
|
|
+// }
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -139,4 +141,15 @@ public class ScoreInfoController extends BaseController {
|
|
|
ScoreInfoAllDTO scoreInfoAllDTO = scoreInfoService.getScoreInfoAll(scoreInfo);
|
|
|
return Response.success(scoreInfoAllDTO);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据用户ID获取列表
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/getScoreInfoByUserId")
|
|
|
+ @ApiOperation("根据用户ID获取列表")
|
|
|
+ public Response<List<ScoreInfoH5Vo>> getScoreInfoByUserId(ScoreInfoUserIdDTO scoreInfoUserIdDTO){
|
|
|
+ List<ScoreInfoH5Vo> list = scoreInfoService.getScoreInfoByUserId(scoreInfoUserIdDTO);
|
|
|
+ return Response.success(list);
|
|
|
+ }
|
|
|
+
|
|
|
}
|