|
|
@ -163,6 +163,11 @@ public class ActUserClockLogServiceImpl extends BaseServiceImpl<ActUserClockLogD |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result pointCheck(ActPointCheckFormDTO dto) { |
|
|
|
ActUserRelationDTO actUserRelationDTO = actUserRelationService.get(dto.getId()); |
|
|
|
// 同一个用户对同一活动只能被确认一次积分,如果该用户对该活动已被确认过积分,提示“当前活动已对该用户确认过积分,请勿重复操作”
|
|
|
|
Integer confirmationTimes = baseDao.countPointsConfirmationTimes(actUserRelationDTO.getUserId(), dto.getActId()); |
|
|
|
if (NumConstant.ZERO < confirmationTimes){ |
|
|
|
throw new RenException("当前活动已对该用户确认过积分,请勿重复操作"); |
|
|
|
} |
|
|
|
ActInfoDTO actInfoDTO = actInfoService.get(dto.getActId()); |
|
|
|
ActUserPointsLogDTO actUserPointsLogDTO = new ActUserPointsLogDTO(); |
|
|
|
actUserPointsLogDTO.setActUserId(dto.getId()); |
|
|
|