This commit is contained in:
zwt13703 2026-03-15 17:14:51 +08:00
parent ae1364c934
commit 508a5ebd27
2 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ public class YxScoreController {
JSONObject jsonObject = userScoreService.todayOfEditScoreCount(); JSONObject jsonObject = userScoreService.todayOfEditScoreCount();
VipDTO userVip = miniUserService.getUserVip(userId); VipDTO userVip = miniUserService.getUserVip(userId);
if (userVip.getVipLevel() != 9) { if (userVip.getVipLevel() != 9) {
AssertUtils.notTrue(jsonObject.getInteger("residueCount") > 0, "已无修改次数"); AssertUtils.notTrue(jsonObject.getInteger("useCount") > 0, "已无修改次数");
} }
String professionalCategory = userScoreUpdateDTO.getProfessionalCategory(); String professionalCategory = userScoreUpdateDTO.getProfessionalCategory();
String cognitioPolyclinic = userScoreUpdateDTO.getCognitioPolyclinic();//文科/理科 String cognitioPolyclinic = userScoreUpdateDTO.getCognitioPolyclinic();//文科/理科

View File

@ -106,10 +106,10 @@ public class UserScoreService {
AssertUtils.notNull(loginUser, "请先登录!"); AssertUtils.notNull(loginUser, "请先登录!");
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
Date date = new Date(); Date date = new Date();
if (date.getTime()>=1750780800000l) { if (date.getTime()>=1782316800000l) {
// 2024-06-25 00:00:00 之后仅可修改一次成绩 // 2024-06-25 00:00:00 之后仅可修改一次成绩
LambdaQueryWrapper<YxUserScore> lambdaQueryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<YxUserScore> lambdaQueryWrapper = new LambdaQueryWrapper<>();
lambdaQueryWrapper.ge(YxUserScore::getCreateTime,"2025-06-25 00:00:00"); lambdaQueryWrapper.ge(YxUserScore::getCreateTime,"2026-06-25 00:00:00");
lambdaQueryWrapper.eq(YxUserScore::getCreateBy, loginUser.getId()); lambdaQueryWrapper.eq(YxUserScore::getCreateBy, loginUser.getId());
// 已修改次数 // 已修改次数
useCount = yxUserScoreMapper.selectCount(lambdaQueryWrapper); useCount = yxUserScoreMapper.selectCount(lambdaQueryWrapper);