Merge branch 'master-jdk21' of https://gitee.com/zhijiantianya/ruoyi-vue-pro
This commit is contained in:
commit
fd42257ed0
@ -242,10 +242,8 @@ public class MemberLevelServiceImpl implements MemberLevelService {
|
||||
MemberUserDO user = memberUserService.getUser(userId);
|
||||
Integer userExperience = ObjUtil.defaultIfNull(user.getExperience(), 0);
|
||||
userExperience = NumberUtil.max(userExperience + experience, 0); // 防止扣出负数
|
||||
MemberLevelRecordDO levelRecord = new MemberLevelRecordDO()
|
||||
.setUserId(user.getId())
|
||||
.setExperience(experience)
|
||||
.setUserExperience(userExperience);
|
||||
MemberLevelRecordDO levelRecord = new MemberLevelRecordDO().setUserId(user.getId())
|
||||
.setExperience(experience).setUserExperience(userExperience).setLevelId(user.getLevelId());
|
||||
memberExperienceRecordService.createExperienceRecord(userId, experience, userExperience,
|
||||
bizType, bizId);
|
||||
|
||||
|
@ -21,6 +21,9 @@ public class MpUserPageReqVO extends PageParam {
|
||||
@Schema(description = "公众号粉丝标识,模糊匹配", example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M")
|
||||
private String openid;
|
||||
|
||||
@Schema(description = "微信生态唯一标识,模糊匹配", example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M")
|
||||
private String unionId;
|
||||
|
||||
@Schema(description = "公众号粉丝昵称,模糊匹配", example = "芋艿")
|
||||
private String nickname;
|
||||
|
||||
|
@ -4,7 +4,6 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 公众号粉丝 Response VO")
|
||||
@ -17,6 +16,9 @@ public class MpUserRespVO {
|
||||
@Schema(description = "公众号粉丝标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M")
|
||||
private String openid;
|
||||
|
||||
@Schema(description = "微信生态唯一标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M")
|
||||
private String unionId;
|
||||
|
||||
@Schema(description = "关注状态 参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
private Integer subscribeStatus;
|
||||
@Schema(description = "关注时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
@ -29,6 +29,7 @@ public interface MpUserConvert {
|
||||
|
||||
@Mappings(value = {
|
||||
@Mapping(source = "openId", target = "openid"),
|
||||
@Mapping(source = "unionId", target = "unionId"),
|
||||
@Mapping(source = "headImgUrl", target = "headImageUrl"),
|
||||
@Mapping(target = "subscribeTime", ignore = true), // 单独转换
|
||||
})
|
||||
|
@ -38,6 +38,10 @@ public class MpUserDO extends BaseDO {
|
||||
* 粉丝标识
|
||||
*/
|
||||
private String openid;
|
||||
/**
|
||||
* 微信生态唯一标识
|
||||
*/
|
||||
private String unionId;
|
||||
/**
|
||||
* 关注状态
|
||||
*
|
||||
|
@ -125,7 +125,7 @@ public interface ErrorCodeConstants {
|
||||
|
||||
ErrorCode SOCIAL_CLIENT_WEIXIN_MINI_APP_PHONE_CODE_ERROR = new ErrorCode(1_002_018_200, "获得手机号失败");
|
||||
ErrorCode SOCIAL_CLIENT_NOT_EXISTS = new ErrorCode(1_002_018_201, "社交客户端不存在");
|
||||
ErrorCode SOCIAL_CLIENT_UNIQUE = new ErrorCode(1_002_018_201, "社交客户端已存在配置");
|
||||
ErrorCode SOCIAL_CLIENT_UNIQUE = new ErrorCode(1_002_018_202, "社交客户端已存在配置");
|
||||
|
||||
// ========== 系统敏感词 1-002-019-000 =========
|
||||
ErrorCode SENSITIVE_WORD_NOT_EXISTS = new ErrorCode(1_002_019_000, "系统敏感词在所有标签中都不存在");
|
||||
|
Loading…
Reference in New Issue
Block a user