Commit 8964e1c4 authored by hezhen's avatar hezhen

修改获取用户信息

parent b1250388
......@@ -75,6 +75,13 @@ public class BaseUserMember implements Serializable {
@Column(name = "rent_free_days")
@ApiModelProperty(value = "剩余天数")
private Integer rentFreeDays;
//折扣
@Column(name = "discount")
@ApiModelProperty(value = "折扣")
private Integer discount;
/**
* 有效期;0代表永久
......
......@@ -27,6 +27,7 @@ public class AppUserDTO {
private Integer certificationStatus;
private Integer rentFreeDays;
private Integer totalNumber;
private Integer discount;
private Integer memberLevel;
private Integer memberNo;
private Long cardLeave;
......
......@@ -62,6 +62,10 @@ public class UserMemberVo {
*/
@ApiModelProperty(value = "剩余天数")
private Integer rentFreeDays;
//折扣
@ApiModelProperty(value = "折扣")
private Integer discount;
/**
* 有效期;0代表永久
......
package com.github.wxiaoqi.security.admin.biz;
import com.ace.cache.annotation.Cache;
import com.ace.cache.annotation.CacheClear;
import com.github.wxiaoqi.security.admin.vo.UserMemberVo;
import org.springframework.stereotype.Service;
import com.github.wxiaoqi.security.admin.entity.BaseUserMember;
......@@ -25,5 +26,17 @@ public class BaseUserMemberBiz extends BaseBiz<BaseUserMemberMapper,BaseUserMemb
return mapper.getInfoByUserId(userId);
}
//更新会员信息
@Override
@CacheClear(key = "user:member{1.userid}")
public void updateSelectiveById(BaseUserMember userMember){ super.updateSelectiveById(userMember);}
//用户会员信息更新
public void updUserMemberByUserId(){
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment