release- mq bug修复

release-2024-04-25
huangyawei 2 months ago
parent ce76fac30a
commit 1344a8b279

@ -21,9 +21,6 @@ public class TaskPointIdConstants {
// 首次收藏期刊 // 首次收藏期刊
public static final String FIRST_COLLECT_JOURNAL = "9"; public static final String FIRST_COLLECT_JOURNAL = "9";
// 每日登录 todo
public static final String DAILY_LOGIN = "10";
// 每日签到 // 每日签到
public static final String DAILY_SIGN = "11"; public static final String DAILY_SIGN = "11";
// 分享期刊 // 分享期刊

@ -55,4 +55,5 @@ public class UserPointLog implements Serializable {
@ApiModelProperty(value = "更新人") @ApiModelProperty(value = "更新人")
private String updateUser; private String updateUser;
} }

@ -153,9 +153,9 @@ public class MyController extends BaseController {
// 信息是否已完善 // 信息是否已完善
if (StringUtils.isNotBlank(userInfoUpdateDto.getBirthDay()) if (StringUtils.isNotBlank(userInfoUpdateDto.getBirthDay())
|| StringUtils.isNotBlank(userInfoUpdateDto.getNickName()) && StringUtils.isNotBlank(userInfoUpdateDto.getNickName())
|| !Objects.isNull(userInfoUpdateDto.getSex()) && !Objects.isNull(userInfoUpdateDto.getSex())
|| StringUtils.isNotBlank(userInfoUpdateDto.getBirthDay()) && StringUtils.isNotBlank(userInfoUpdateDto.getBirthDay())
) { ) {
userPointLogService.addByTaskNew(TaskPointIdConstants.MODIFY_INFORMATION, authorization); userPointLogService.addByTaskNew(TaskPointIdConstants.MODIFY_INFORMATION, authorization);
} }

@ -5,6 +5,7 @@ import com.luoo.user.service.UserPointLogService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler; import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener; import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -23,9 +24,11 @@ public class PointLogListener {
private UserPointLogService userPointLogService; private UserPointLogService userPointLogService;
@RabbitHandler @RabbitHandler
public void executePointLog(UserPointLog userPointLog) { public void executePointLog(Object userPointLog) {
log.info("userPointLog:{}", userPointLog); log.info("userPointLog:{}", userPointLog);
userPointLogService.add(userPointLog); UserPointLog result = new UserPointLog();
BeanUtils.copyProperties(userPointLog, result);
userPointLogService.add(result);
} }
} }

@ -80,8 +80,5 @@ public class UserPointLog implements Serializable {
@ApiModelProperty(value = "更新人") @ApiModelProperty(value = "更新人")
private String updateUser; private String updateUser;
@Transient
@ApiModelProperty(value = "所在月份")
private String createMonth;
} }

@ -24,10 +24,7 @@ import constants.Constants;
import constants.ErrorConstants; import constants.ErrorConstants;
import constants.TaskPointIdConstants; import constants.TaskPointIdConstants;
import dto.UserLoginDto; import dto.UserLoginDto;
import enums.UserBankStateEnum; import enums.*;
import enums.UserRealNameStateEnum;
import enums.UserStatusEnum;
import enums.WithdrawStateEnum;
import exception.BizException; import exception.BizException;
import org.apache.commons.lang.ObjectUtils; import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
@ -254,6 +251,9 @@ public class UserInfoService {
userInfo.setAvatar(Constants.DEFAULT_USER_AVATAR); userInfo.setAvatar(Constants.DEFAULT_USER_AVATAR);
userInfo.setThumbnail(Constants.DEFAULT_USER_THUMBNAIL); userInfo.setThumbnail(Constants.DEFAULT_USER_THUMBNAIL);
userInfo.setSignature(Constants.DEFAULT_USER_SIGNATURE); userInfo.setSignature(Constants.DEFAULT_USER_SIGNATURE);
userInfo.setIsAuthor(0);
userInfo.setPoint(0);
userInfo.setVipStatus(UserVipStatusEnum.INITIAL.getCode());
isNewUser = true; isNewUser = true;
} else { } else {
@ -324,6 +324,9 @@ public class UserInfoService {
userInfo.setAvatar(Constants.DEFAULT_USER_AVATAR); userInfo.setAvatar(Constants.DEFAULT_USER_AVATAR);
userInfo.setThumbnail(Constants.DEFAULT_USER_THUMBNAIL); userInfo.setThumbnail(Constants.DEFAULT_USER_THUMBNAIL);
userInfo.setSignature(Constants.DEFAULT_USER_SIGNATURE); userInfo.setSignature(Constants.DEFAULT_USER_SIGNATURE);
userInfo.setIsAuthor(0);
userInfo.setPoint(0);
userInfo.setVipStatus(UserVipStatusEnum.INITIAL.getCode());
isNewUser = true; isNewUser = true;
} else { } else {
@ -363,6 +366,9 @@ public class UserInfoService {
userInfo.setAvatar(Constants.DEFAULT_USER_AVATAR); userInfo.setAvatar(Constants.DEFAULT_USER_AVATAR);
userInfo.setThumbnail(Constants.DEFAULT_USER_THUMBNAIL); userInfo.setThumbnail(Constants.DEFAULT_USER_THUMBNAIL);
userInfo.setSignature(Constants.DEFAULT_USER_SIGNATURE); userInfo.setSignature(Constants.DEFAULT_USER_SIGNATURE);
userInfo.setIsAuthor(0);
userInfo.setPoint(0);
userInfo.setVipStatus(UserVipStatusEnum.INITIAL.getCode());
isNewUser = true; isNewUser = true;
} else { } else {
@ -444,6 +450,9 @@ public class UserInfoService {
userInfo.setAvatar(Constants.DEFAULT_USER_AVATAR); userInfo.setAvatar(Constants.DEFAULT_USER_AVATAR);
userInfo.setThumbnail(Constants.DEFAULT_USER_THUMBNAIL); userInfo.setThumbnail(Constants.DEFAULT_USER_THUMBNAIL);
userInfo.setSignature(Constants.DEFAULT_USER_SIGNATURE); userInfo.setSignature(Constants.DEFAULT_USER_SIGNATURE);
userInfo.setIsAuthor(0);
userInfo.setPoint(0);
userInfo.setVipStatus(UserVipStatusEnum.INITIAL.getCode());
isNewUser = true; isNewUser = true;
} else { } else {

Loading…
Cancel
Save