New file |
| | |
| | | package cn.lili.modules.member.entity.vo; |
| | | |
| | | import cn.lili.common.enums.ClientTypeEnum; |
| | | import cn.lili.common.security.sensitive.Sensitive; |
| | | import cn.lili.common.security.sensitive.enums.SensitiveStrategy; |
| | | import cn.lili.common.utils.BeanUtil; |
| | | import cn.lili.modules.lmk.domain.vo.MemberTagVO; |
| | | import cn.lili.modules.member.entity.dos.Member; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author paulG |
| | | * @since 2021/11/8 |
| | | **/ |
| | | @Data |
| | | @NoArgsConstructor |
| | | public class MemberExportVO implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1810890757303309436L; |
| | | |
| | | @ApiModelProperty(value = "唯一标识", hidden = true) |
| | | private String id; |
| | | |
| | | @ApiModelProperty(value = "会员用户名") |
| | | private String username; |
| | | |
| | | @ApiModelProperty(value = "昵称") |
| | | |
| | | private String nickName; |
| | | |
| | | @ApiModelProperty(value = "会员性别,1为男,0为女") |
| | | private String sex; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "会员生日") |
| | | private String birthday; |
| | | |
| | | @ApiModelProperty(value = "会员地址ID") |
| | | private String regionId; |
| | | |
| | | @ApiModelProperty(value = "会员地址") |
| | | private String region; |
| | | |
| | | @ApiModelProperty(value = "手机号码", required = true) |
| | | private String mobile; |
| | | |
| | | @ApiModelProperty(value = "积分数量") |
| | | private String point; |
| | | |
| | | @ApiModelProperty(value = "积分总数量") |
| | | private String totalPoint; |
| | | |
| | | @ApiModelProperty(value = "会员头像") |
| | | private String face; |
| | | |
| | | @ApiModelProperty(value = "会员状态") |
| | | private String disabled; |
| | | |
| | | @ApiModelProperty(value = "是否开通店铺") |
| | | private String haveStore; |
| | | |
| | | @ApiModelProperty(value = "店铺ID") |
| | | private String storeId; |
| | | |
| | | @ApiModelProperty(value = "openId") |
| | | private String openId; |
| | | |
| | | /** |
| | | * @see ClientTypeEnum |
| | | */ |
| | | @ApiModelProperty(value = "客户端") |
| | | private String clientEnum; |
| | | |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "最后一次登录时间") |
| | | private String lastLoginDate; |
| | | |
| | | @ApiModelProperty(value = "会员等级ID") |
| | | private String gradeId; |
| | | |
| | | @ApiModelProperty(value = "经验值数量") |
| | | private String experience; |
| | | |
| | | @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "创建时间", hidden = true) |
| | | private String createTime; |
| | | |
| | | @ApiModelProperty(value = "客户标签列表") |
| | | private String tags; |
| | | |
| | | /** |
| | | * 为null则不在黑名单内 |
| | | */ |
| | | @ApiModelProperty(value = "黑名单id") |
| | | private String blackId; |
| | | |
| | | public MemberExportVO(Member member) { |
| | | BeanUtil.copyProperties(member, this); |
| | | } |
| | | |
| | | public String getRegionId() { |
| | | return getDefaultValue(regionId); |
| | | } |
| | | |
| | | public String getRegion() { |
| | | return getDefaultValue(region); |
| | | } |
| | | |
| | | /** |
| | | * JSON转换中的null 会转成 "null" |
| | | * @param value |
| | | * @return |
| | | */ |
| | | private String getDefaultValue(String value){ |
| | | return (value == null || "null".equals(value)) ? "" : value; |
| | | } |
| | | } |