|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.luoo.user.service;
|
|
|
|
|
|
|
|
|
|
import api.PageResult;
|
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
|
import com.luoo.user.dao.LotteryUserDao;
|
|
|
|
|
import com.luoo.user.dao.TaskPointDao;
|
|
|
|
|
import com.luoo.user.dao.UserInfoDao;
|
|
|
|
@ -19,6 +20,7 @@ import constants.TaskPointIdConstants;
|
|
|
|
|
import dto.UserLoginDto;
|
|
|
|
|
import enums.PointEnums;
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.time.LocalDate;
|
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
|
import java.util.List;
|
|
|
|
@ -133,7 +135,16 @@ public class UserPointLogService {
|
|
|
|
|
.userId(userId)
|
|
|
|
|
.build();
|
|
|
|
|
|
|
|
|
|
rabbitTemplate.convertAndSend("pointLog", userPointLog);
|
|
|
|
|
ObjectMapper objectMapper = new ObjectMapper();
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
String json = objectMapper.writeValueAsString(userPointLog);
|
|
|
|
|
System.out.println(json);
|
|
|
|
|
|
|
|
|
|
rabbitTemplate.convertAndSend("pointLog", json);
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void addByTask(String taskPointId, UserLoginDto userLoginDto) {
|
|
|
|
@ -146,7 +157,16 @@ public class UserPointLogService {
|
|
|
|
|
.userId(userLoginDto.getUserId())
|
|
|
|
|
.build();
|
|
|
|
|
|
|
|
|
|
rabbitTemplate.convertAndSend("pointLog", userPointLog);
|
|
|
|
|
ObjectMapper objectMapper = new ObjectMapper();
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
String json = objectMapper.writeValueAsString(userPointLog);
|
|
|
|
|
System.out.println(json);
|
|
|
|
|
|
|
|
|
|
rabbitTemplate.convertAndSend("pointLog", json);
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|