| | |
| | | return R.data(AssessmentScoreWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | @GetMapping("/listGroupByTask/{scoreUserId}") |
| | | @ApiOperation(value = "我的得分列表", notes = "传入要查询的用户id") |
| | | public R listGroupByTask(@ApiIgnore @PathVariable Long scoreUserId) { |
| | | QueryWrapper<AssessmentScoreEntity> setEntityQueryWrapper = new QueryWrapper<>(); |
| | | setEntityQueryWrapper.select("id,assessment_task_id,be_id,score_user_id,SUM(weight*score_val*0.01) as score_val,type"); |
| | | setEntityQueryWrapper.eq("be_id",scoreUserId); |
| | | setEntityQueryWrapper.eq("type", 0l); |
| | | setEntityQueryWrapper.groupBy("assessment_task_id"); |
| | | List<AssessmentScoreEntity> list = assessmentScoreService.list(setEntityQueryWrapper); |
| | | List<AssessmentScoreVO> voList = AssessmentScoreWrapper.build().listVO(list); |
| | | |
| | | return R.data(voList); |
| | | } |
| | | |
| | | @GetMapping("/listMyScore/{userId}") |
| | | @ApiOperation(value = "我的得分列表", notes = "传入要查询的用户id") |
| | | public R listMyScore(@ApiIgnore @PathVariable Long userId) { |