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 DAILY_SIGN_ALREADY = "进入已签到";
public static final String DAILY_SIGN_ALREADY = "今日已签到";
}

@ -193,16 +193,17 @@ public class TaskPointService {
} else {
taskPoint.setUserStatus(PointEnums.NOT_PARTICIPATED.getCode());
}
}
if (Objects.equals(taskPoint.getType(), Integer.valueOf(TaskPointIdConstants.DAILY_SIGN))) {
} else {
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) {
taskPoint.setUserStatus(PointEnums.PARTICIPATED.getCode());
} else {
taskPoint.setUserStatus(PointEnums.NOT_PARTICIPATED.getCode());
}
}
}
});
return result;

Loading…
Cancel
Save