updates
This commit is contained in:
parent
ae1364c934
commit
508a5ebd27
|
|
@ -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();//文科/理科
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue