| | |
| | | package com.yeshi.fanli.entity.bus.share;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.Date;
|
| | |
|
| | | import org.yeshi.utils.mybatis.Column;
|
| | | import org.yeshi.utils.mybatis.Table;
|
| | |
|
| | | import com.google.gson.annotations.Expose;
|
| | |
|
| | | @Table("yeshi_ec_share_goods_record")
|
| | | public class UserShareGoodsRecord {
|
| | |
|
| | | // 分享来源
|
| | | public enum ShareSourceTypeEnum {
|
| | | storage("选品库"), activity("动态"), goodsDetail("商品详情页");
|
| | | |
| | | private final String desc;
|
| | | |
| | | private ShareSourceTypeEnum(String desc) {
|
| | | this.desc = desc;
|
| | | }
|
| | |
|
| | | public String getDesc() {
|
| | | return desc;
|
| | | }
|
| | | }
|
| | | |
| | | public static String SHARETYPE_SINGLE = "single"; // 单个商品分享
|
| | | public static String SHARETYPE_GROUP = "group"; // 多商品分享
|
| | | |
| | | @Expose
|
| | | @Column(name = "sgr_id")
|
| | | private Long id;
|
| | |
|
| | | // 用户id
|
| | | @Expose
|
| | | @Column(name = "sgr_uid")
|
| | | private Long uid;
|
| | |
|
| | | // 分享来源
|
| | | @Expose
|
| | | @Column(name = "sgr_source")
|
| | | private ShareSourceTypeEnum source;
|
| | |
|
| | | // 显示主图
|
| | | @Expose
|
| | | @Column(name = "sgr_picture")
|
| | | private String picture;
|
| | | |
| | | // 分享时间
|
| | | @Column(name = "sgr_createtime")
|
| | | private Date createTime;
|
| | | |
| | | // 更新时间 : 单个商品重复分享时 只更新 不重复生成分享记录
|
| | | @Column(name = "sgr_updatetime")
|
| | | private Date updateTime;
|
| | | |
| | | // 分享时间
|
| | | private Long shareTime;
|
| | |
|
| | |
|
| | | // 分享类型
|
| | | @Expose
|
| | | private String shareType;
|
| | | |
| | | // 商品总数
|
| | | @Expose
|
| | | private int totalGoods;
|
| | | |
| | | // 今日浏览
|
| | | @Expose
|
| | | private int todayBrowse;
|
| | | |
| | | // 累计浏览
|
| | | @Expose
|
| | | private int totalBrowse;
|
| | | |
| | | // 商品总数
|
| | | @Expose
|
| | | private int totalOrder;
|
| | | |
| | | // 预计收益
|
| | | private BigDecimal revenueMoney;
|
| | | |
| | | // 显示收益
|
| | | @Expose
|
| | | private BigDecimal totalMoney;
|
| | |
|
| | |
|
| | | |
| | | public UserShareGoodsRecord(){}
|
| | | |
| | | public UserShareGoodsRecord(Long id){
|
| | | this.id = id;
|
| | | }
|
| | | |
| | | |
| | | public Long getId() {
|
| | | return id;
|
| | | }
|
| | |
|
| | | public void setId(Long id) {
|
| | | this.id = id;
|
| | | }
|
| | |
|
| | | public Long getUid() {
|
| | | return uid;
|
| | | }
|
| | |
|
| | | public void setUid(Long uid) {
|
| | | this.uid = uid;
|
| | | }
|
| | |
|
| | | public ShareSourceTypeEnum getSource() {
|
| | | return source;
|
| | | }
|
| | |
|
| | | public void setSource(ShareSourceTypeEnum source) {
|
| | | this.source = source;
|
| | | }
|
| | |
|
| | | public String getPicture() {
|
| | | return picture;
|
| | | }
|
| | |
|
| | | public void setPicture(String picture) {
|
| | | this.picture = picture;
|
| | | }
|
| | |
|
| | | public Date getCreateTime() {
|
| | | return createTime;
|
| | | }
|
| | |
|
| | | public void setCreateTime(Date createTime) {
|
| | | this.createTime = createTime;
|
| | | }
|
| | |
|
| | | public Date getUpdateTime() {
|
| | | return updateTime;
|
| | | }
|
| | |
|
| | | public void setUpdateTime(Date updateTime) {
|
| | | this.updateTime = updateTime;
|
| | | }
|
| | |
|
| | | public String getShareType() {
|
| | | return shareType;
|
| | | }
|
| | |
|
| | | public void setShareType(String shareType) {
|
| | | this.shareType = shareType;
|
| | | }
|
| | |
|
| | | public int getTotalGoods() {
|
| | | return totalGoods;
|
| | | }
|
| | |
|
| | | public void setTotalGoods(int totalGoods) {
|
| | | this.totalGoods = totalGoods;
|
| | | }
|
| | |
|
| | | public int getTodayBrowse() {
|
| | | return todayBrowse;
|
| | | }
|
| | |
|
| | | public void setTodayBrowse(int todayBrowse) {
|
| | | this.todayBrowse = todayBrowse;
|
| | | }
|
| | |
|
| | | public int getTotalBrowse() {
|
| | | return totalBrowse;
|
| | | }
|
| | |
|
| | | public void setTotalBrowse(int totalBrowse) {
|
| | | this.totalBrowse = totalBrowse;
|
| | | }
|
| | |
|
| | | public int getTotalOrder() {
|
| | | return totalOrder;
|
| | | }
|
| | |
|
| | | public void setTotalOrder(int totalOrder) {
|
| | | this.totalOrder = totalOrder;
|
| | | }
|
| | |
|
| | | public BigDecimal getTotalMoney() {
|
| | | return totalMoney;
|
| | | }
|
| | |
|
| | | public void setTotalMoney(BigDecimal totalMoney) {
|
| | | this.totalMoney = totalMoney;
|
| | | }
|
| | |
|
| | | public Long getShareTime() {
|
| | | return shareTime;
|
| | | }
|
| | |
|
| | | public void setShareTime(Long shareTime) {
|
| | | this.shareTime = shareTime;
|
| | | }
|
| | |
|
| | | public BigDecimal getRevenueMoney() {
|
| | | return revenueMoney;
|
| | | }
|
| | |
|
| | | public void setRevenueMoney(BigDecimal revenueMoney) {
|
| | | this.revenueMoney = revenueMoney;
|
| | | }
|
| | | |
| | | }
|
| | | package com.yeshi.fanli.entity.bus.share; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import org.yeshi.utils.generater.mybatis.Column; |
| | | import org.yeshi.utils.generater.mybatis.Table; |
| | | |
| | | import com.google.gson.annotations.Expose; |
| | | |
| | | @Table("yeshi_ec_share_goods_record") |
| | | public class UserShareGoodsRecord { |
| | | |
| | | // 分享来源 |
| | | public enum ShareSourceTypeEnum { |
| | | storage("选品库"), activity("动态"), goodsDetail("商品详情页"); |
| | | |
| | | private final String desc; |
| | | |
| | | private ShareSourceTypeEnum(String desc) { |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public String getDesc() { |
| | | return desc; |
| | | } |
| | | } |
| | | |
| | | public static String SHARETYPE_SINGLE = "single"; // 单个商品分享 |
| | | public static String SHARETYPE_GROUP = "group"; // 多商品分享 |
| | | |
| | | @Expose |
| | | @Column(name = "sgr_id") |
| | | private Long id; |
| | | |
| | | // 用户id |
| | | @Expose |
| | | @Column(name = "sgr_uid") |
| | | private Long uid; |
| | | |
| | | // 分享来源 |
| | | @Expose |
| | | @Column(name = "sgr_source") |
| | | private ShareSourceTypeEnum source; |
| | | |
| | | // 显示主图 |
| | | @Expose |
| | | @Column(name = "sgr_picture") |
| | | private String picture; |
| | | |
| | | // 显示标题内容 |
| | | @Expose |
| | | @Column(name = "sgr_title") |
| | | private String title; |
| | | |
| | | // 是否已分享 状态:0初始值 1已分享 |
| | | @Expose |
| | | @Column(name = "sgr_share_state") |
| | | private Integer shareState; |
| | | |
| | | // 分享时间 |
| | | @Column(name = "sgr_createtime") |
| | | private Date createTime; |
| | | |
| | | // 更新时间 : 单个商品重复分享时 只更新 不重复生成分享记录 |
| | | @Column(name = "sgr_updatetime") |
| | | private Date updateTime; |
| | | |
| | | // 分享时间 |
| | | @Expose |
| | | private Long shareTime; |
| | | |
| | | |
| | | // 分享类型 |
| | | @Expose |
| | | private String shareType; |
| | | |
| | | // 商品总数 |
| | | @Expose |
| | | private int totalGoods; |
| | | |
| | | // 今日浏览 |
| | | @Expose |
| | | private int todayBrowse; |
| | | |
| | | // 累计浏览 |
| | | @Expose |
| | | private int totalBrowse; |
| | | |
| | | // 商品总数 |
| | | @Expose |
| | | private int totalOrder; |
| | | |
| | | // 预计收益 |
| | | private BigDecimal revenueMoney; |
| | | |
| | | // 显示收益 |
| | | @Expose |
| | | private BigDecimal totalMoney; |
| | | |
| | | |
| | | |
| | | public UserShareGoodsRecord(){} |
| | | |
| | | public UserShareGoodsRecord(Long id){ |
| | | this.id = id; |
| | | } |
| | | |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getUid() { |
| | | return uid; |
| | | } |
| | | |
| | | public void setUid(Long uid) { |
| | | this.uid = uid; |
| | | } |
| | | |
| | | public ShareSourceTypeEnum getSource() { |
| | | return source; |
| | | } |
| | | |
| | | public void setSource(ShareSourceTypeEnum source) { |
| | | this.source = source; |
| | | } |
| | | |
| | | public String getPicture() { |
| | | return picture; |
| | | } |
| | | |
| | | public void setPicture(String picture) { |
| | | this.picture = picture; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public Date getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getShareType() { |
| | | return shareType; |
| | | } |
| | | |
| | | public void setShareType(String shareType) { |
| | | this.shareType = shareType; |
| | | } |
| | | |
| | | public int getTotalGoods() { |
| | | return totalGoods; |
| | | } |
| | | |
| | | public void setTotalGoods(int totalGoods) { |
| | | this.totalGoods = totalGoods; |
| | | } |
| | | |
| | | public int getTodayBrowse() { |
| | | return todayBrowse; |
| | | } |
| | | |
| | | public void setTodayBrowse(int todayBrowse) { |
| | | this.todayBrowse = todayBrowse; |
| | | } |
| | | |
| | | public int getTotalBrowse() { |
| | | return totalBrowse; |
| | | } |
| | | |
| | | public void setTotalBrowse(int totalBrowse) { |
| | | this.totalBrowse = totalBrowse; |
| | | } |
| | | |
| | | public int getTotalOrder() { |
| | | return totalOrder; |
| | | } |
| | | |
| | | public void setTotalOrder(int totalOrder) { |
| | | this.totalOrder = totalOrder; |
| | | } |
| | | |
| | | public BigDecimal getTotalMoney() { |
| | | return totalMoney; |
| | | } |
| | | |
| | | public void setTotalMoney(BigDecimal totalMoney) { |
| | | this.totalMoney = totalMoney; |
| | | } |
| | | |
| | | public Long getShareTime() { |
| | | return shareTime; |
| | | } |
| | | |
| | | public void setShareTime(Long shareTime) { |
| | | this.shareTime = shareTime; |
| | | } |
| | | |
| | | public BigDecimal getRevenueMoney() { |
| | | return revenueMoney; |
| | | } |
| | | |
| | | public void setRevenueMoney(BigDecimal revenueMoney) { |
| | | this.revenueMoney = revenueMoney; |
| | | } |
| | | |
| | | public String getTitle() { |
| | | return title; |
| | | } |
| | | |
| | | public void setTitle(String title) { |
| | | this.title = title; |
| | | } |
| | | |
| | | public Integer getShareState() { |
| | | return shareState; |
| | | } |
| | | |
| | | public void setShareState(Integer shareState) { |
| | | this.shareState = shareState; |
| | | } |
| | | } |