增加实体类,以及部分逻辑修改
This commit is contained in:
@@ -91,6 +91,16 @@ public class UserInfo {
|
||||
private String oldPhone;
|
||||
@TableField(exist = false)
|
||||
private String roleIds;
|
||||
/**
|
||||
* 用户注册选择身份
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String typeCode;
|
||||
/**
|
||||
* 费率
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String currentFee;
|
||||
|
||||
/**
|
||||
* 生成一个新的用户对象
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
package cn.pluss.platform.entity;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 用户推广费率对照表
|
||||
* @author lyf
|
||||
*/
|
||||
@Data
|
||||
@TableName("tb_pluss_user_promotion")
|
||||
public class UserPromotion {
|
||||
@TableField(value = "user_id")
|
||||
private Long userId;
|
||||
|
||||
@TableField(value = "type_code")
|
||||
private String typeCode;
|
||||
|
||||
@TableField(value = "current_fee")
|
||||
private String currentFee;
|
||||
|
||||
@TableField(value = "parent_user_id")
|
||||
private String parentUserId;
|
||||
|
||||
@TableField(value = "create_time")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime;
|
||||
|
||||
@TableField(value = "update_time")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updateTime;
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package cn.pluss.platform.entity;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 分佣相关
|
||||
* @author lyf
|
||||
*/
|
||||
@Data
|
||||
@TableName("tb_pluss_user_type")
|
||||
public class UserType {
|
||||
/**
|
||||
* 分佣类型(层级)
|
||||
*/
|
||||
@TableField(value = "type_code")
|
||||
private String typeCode;
|
||||
/**
|
||||
* 类型名称
|
||||
*/
|
||||
@TableField(value = "type_name")
|
||||
private String typeName;
|
||||
/**
|
||||
* 当前层级费率
|
||||
*/
|
||||
@TableField(value = "current_fee")
|
||||
private BigDecimal currentFee;
|
||||
/**
|
||||
* 下级推广费率
|
||||
*/
|
||||
@TableField(value = "low_fee")
|
||||
private BigDecimal lowFee;
|
||||
|
||||
@TableField(value = "create_time")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime;
|
||||
|
||||
@TableField(value = "update_time")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user