|
|
|
@ -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;
|
|
|
|
|