隐藏一些数据
This commit is contained in:
parent
adec27f2d1
commit
898f819c5f
|
@ -80,7 +80,8 @@ public class AdminContestController {
|
||||||
if (limit == null || limit < 1) limit = 10;
|
if (limit == null || limit < 1) limit = 10;
|
||||||
IPage<Contest> iPage = new Page<>(currentPage, limit);
|
IPage<Contest> iPage = new Page<>(currentPage, limit);
|
||||||
QueryWrapper<Contest> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<Contest> queryWrapper = new QueryWrapper<>();
|
||||||
|
// 过滤密码
|
||||||
|
queryWrapper.select(Contest.class, info -> !info.getColumn().equals("pwd"));
|
||||||
if (!StringUtils.isEmpty(keyword)) {
|
if (!StringUtils.isEmpty(keyword)) {
|
||||||
keyword = keyword.trim();
|
keyword = keyword.trim();
|
||||||
queryWrapper
|
queryWrapper
|
||||||
|
|
|
@ -61,7 +61,8 @@ public class AdminTrainingController {
|
||||||
if (limit == null || limit < 1) limit = 10;
|
if (limit == null || limit < 1) limit = 10;
|
||||||
IPage<Training> iPage = new Page<>(currentPage, limit);
|
IPage<Training> iPage = new Page<>(currentPage, limit);
|
||||||
QueryWrapper<Training> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<Training> queryWrapper = new QueryWrapper<>();
|
||||||
|
// 过滤密码
|
||||||
|
queryWrapper.select(Training.class, info -> !info.getColumn().equals("private_pwd"));
|
||||||
if (!StringUtils.isEmpty(keyword)) {
|
if (!StringUtils.isEmpty(keyword)) {
|
||||||
keyword = keyword.trim();
|
keyword = keyword.trim();
|
||||||
queryWrapper
|
queryWrapper
|
||||||
|
|
|
@ -453,7 +453,7 @@ public class ContestController {
|
||||||
if (commonJudgeList.getTotal() == 0) { // 未查询到一条数据
|
if (commonJudgeList.getTotal() == 0) { // 未查询到一条数据
|
||||||
return CommonResult.successResponse(commonJudgeList, "暂无数据");
|
return CommonResult.successResponse(commonJudgeList, "暂无数据");
|
||||||
} else {
|
} else {
|
||||||
// 比赛还是进行阶段,同时不是超级管理员与比赛管理员,需要将除自己之外的提交的时间、空间、长度、分数隐藏
|
// 比赛还是进行阶段,同时不是超级管理员与比赛管理员,需要将除自己之外的提交的时间、空间、长度隐藏
|
||||||
if (contest.getStatus().intValue() == Constants.Contest.STATUS_RUNNING.getCode()
|
if (contest.getStatus().intValue() == Constants.Contest.STATUS_RUNNING.getCode()
|
||||||
&& !isRoot && !userRolesVo.getUid().equals(contest.getUid())) {
|
&& !isRoot && !userRolesVo.getUid().equals(contest.getUid())) {
|
||||||
commonJudgeList.getRecords().forEach(judgeVo -> {
|
commonJudgeList.getRecords().forEach(judgeVo -> {
|
||||||
|
|
|
@ -87,7 +87,7 @@ public class Contest implements Serializable {
|
||||||
@ApiModelProperty(value = "是否打开账号限制")
|
@ApiModelProperty(value = "是否打开账号限制")
|
||||||
private Boolean openAccountLimit;
|
private Boolean openAccountLimit;
|
||||||
|
|
||||||
@ApiModelProperty(value = "账号限制规则 <prefix>**</prefix><suffix>**</suffix><start>**</start><end>**</end>")
|
@ApiModelProperty(value = "账号限制规则 <prefix>**</prefix><suffix>**</suffix><start>**</start><end>**</end><extra>**</extra>")
|
||||||
private String accountLimitRule;
|
private String accountLimitRule;
|
||||||
|
|
||||||
@ApiModelProperty(value = "排行榜显示(username、nickname、realname)")
|
@ApiModelProperty(value = "排行榜显示(username、nickname、realname)")
|
||||||
|
|
Loading…
Reference in New Issue