|
|
|
@ -26,6 +26,7 @@ import org.jeecg.modules.demo.annualcompetitionprojectregistration.entity.Annual |
|
|
|
|
import org.jeecg.modules.demo.annualcompetitionprojectregistration.service.IAnnualCompetitionProjectRegistrationService; |
|
|
|
|
import org.jeecg.modules.demo.awardpersion.entity.AwardPersion; |
|
|
|
|
import org.jeecg.modules.demo.awardpersion.entity.AwardPersionMb; |
|
|
|
|
import org.jeecg.modules.demo.awardpersion.service.IAwardPersionService; |
|
|
|
|
import org.jeecg.modules.demo.scorepersion.entity.ScorePersion; |
|
|
|
|
import org.jeecg.modules.demo.scorepersion.entity.ScorePersionMb; |
|
|
|
|
import org.jeecg.modules.demo.scorepersion.service.IScorePersionService; |
|
|
|
@ -63,6 +64,8 @@ import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
|
|
|
@RequestMapping("/scorepersion/scorePersion") |
|
|
|
|
@Slf4j |
|
|
|
|
public class ScorePersionController extends JeecgController<ScorePersion, IScorePersionService> { |
|
|
|
|
@Autowired |
|
|
|
|
private IAwardPersionService awardPersionService; |
|
|
|
|
@Autowired |
|
|
|
|
private IScorePersionService scorePersionService; |
|
|
|
|
@Autowired |
|
|
|
@ -93,6 +96,32 @@ public class ScorePersionController extends JeecgController<ScorePersion, IScore |
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 分页列表查询(学生端) |
|
|
|
|
* |
|
|
|
|
* @param scorePersion |
|
|
|
|
* @param pageNo |
|
|
|
|
* @param pageSize |
|
|
|
|
* @param req |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
//@AutoLog(value = "成绩管理-分页列表查询")
|
|
|
|
|
@ApiOperation(value="成绩管理-分页列表查询(学生端)", notes="成绩管理-分页列表查询(学生端)") |
|
|
|
|
@GetMapping(value = "/liststu") |
|
|
|
|
public Result<IPage<ScorePersion>> liststu(ScorePersion scorePersion, |
|
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
|
|
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
QueryWrapper<ScorePersion> queryWrapper = QueryGenerator.initQueryWrapper(scorePersion, req.getParameterMap()); |
|
|
|
|
LoginUser user= (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
|
|
|
|
List<String> str = awardPersionService.getteambyuserid(user.getId()); |
|
|
|
|
queryWrapper.in("enroll_code",str); |
|
|
|
|
Page<ScorePersion> page = new Page<ScorePersion>(pageNo, pageSize); |
|
|
|
|
IPage<ScorePersion> pageList = scorePersionService.page(page, queryWrapper); |
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 添加 |
|
|
|
|
* |
|
|
|
|