|
|
|
@ -19,6 +19,7 @@ import com.querydsl.core.types.dsl.StringExpression;
|
|
|
|
|
import com.querydsl.jpa.impl.JPAQueryFactory;
|
|
|
|
|
import constants.Constants;
|
|
|
|
|
import constants.ErrorConstants;
|
|
|
|
|
import constants.TaskPointIdConstants;
|
|
|
|
|
import dto.UserLoginDto;
|
|
|
|
|
import enums.PointEnums;
|
|
|
|
|
import enums.UserTypeEnum;
|
|
|
|
@ -309,7 +310,7 @@ public class LotteryService {
|
|
|
|
|
.id(String.valueOf(idWorker.nextId()))
|
|
|
|
|
.type(PointEnums.TASK_POINT_TYPE_ADD.getCode())
|
|
|
|
|
.createUser(lotteryUser.getUserId())
|
|
|
|
|
.taskPointId(null)
|
|
|
|
|
.taskPointId(TaskPointIdConstants.LOTTERY_RETURNS)
|
|
|
|
|
.description(POINTS_WILL_BE_RETURNED)
|
|
|
|
|
.userId(lotteryUser.getUserId())
|
|
|
|
|
.score(lottery.getPoint())
|
|
|
|
@ -402,6 +403,7 @@ public class LotteryService {
|
|
|
|
|
.score(point)
|
|
|
|
|
.type(PointEnums.TASK_POINT_TYPE_REDUCE.getCode())
|
|
|
|
|
.userId(userLoginDto.getUserId())
|
|
|
|
|
.taskPointId(TaskPointIdConstants.LOTTERY)
|
|
|
|
|
.build();
|
|
|
|
|
rabbitTemplate.convertAndSend("draw", drawDTO);
|
|
|
|
|
|
|
|
|
|