release- 每日积分获取修复状态显示

release-2024-04-25
huangyawei 1 month ago
parent 6f14c9c67d
commit c404a10a7e

@ -61,6 +61,6 @@ public class ErrorConstants {
public static final String POINT_NOT_ENOUGH = "积分不足"; public static final String POINT_NOT_ENOUGH = "积分不足";
// 积分部分 // 积分部分
public static final String DAILY_SIGN_ALREADY = "进入已签到"; public static final String DAILY_SIGN_ALREADY = "今日已签到";
} }

@ -193,14 +193,15 @@ public class TaskPointService {
} else { } else {
taskPoint.setUserStatus(PointEnums.NOT_PARTICIPATED.getCode()); taskPoint.setUserStatus(PointEnums.NOT_PARTICIPATED.getCode());
} }
} } else {
if (Objects.equals(taskPoint.getType(), Integer.valueOf(TaskPointIdConstants.DAILY_SIGN))) { if (!Objects.equals(taskPoint.getId(), TaskPointIdConstants.NEW_USER_INVITE)) {
// 校验今日是否已签到 // 校验今日是否已签到
UserPointLog todayByUserIdAndTaskPointId = userPointLogDao.findTodayByUserIdAndTaskPointId(userLoginDto.getUserId(), TaskPointIdConstants.DAILY_SIGN); UserPointLog todayByUserIdAndTaskPointId = userPointLogDao.findTodayByUserIdAndTaskPointId(userLoginDto.getUserId(), taskPoint.getId());
if(todayByUserIdAndTaskPointId != null) { if(todayByUserIdAndTaskPointId != null) {
taskPoint.setUserStatus(PointEnums.PARTICIPATED.getCode()); taskPoint.setUserStatus(PointEnums.PARTICIPATED.getCode());
} else { } else {
taskPoint.setUserStatus(PointEnums.NOT_PARTICIPATED.getCode()); taskPoint.setUserStatus(PointEnums.NOT_PARTICIPATED.getCode());
}
} }
} }

Loading…
Cancel
Save