修改用户实体,增加多级分销逻辑
This commit is contained in:
parent
51539c8011
commit
183f18df9e
|
|
@ -11,6 +11,8 @@ import lombok.Data;
|
||||||
@Data
|
@Data
|
||||||
public class Customer extends BaseEntity {
|
public class Customer extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Excel(name = "用户id", cellType = Excel.ColumnType.NUMERIC)
|
@Excel(name = "用户id", cellType = Excel.ColumnType.NUMERIC)
|
||||||
private Long customerId;
|
private Long customerId;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
package com.ghy.customer.domain;
|
||||||
|
|
||||||
|
import com.ghy.common.annotation.Excel;
|
||||||
|
import com.ghy.common.core.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author clunt
|
||||||
|
* 用户多级分销,最多不超过3级
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class CustomerPlace extends BaseEntity {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Excel(name = "分销id", cellType = Excel.ColumnType.NUMERIC)
|
||||||
|
private Long customerPlaceId;
|
||||||
|
|
||||||
|
@Excel(name = "用户id", cellType = Excel.ColumnType.NUMERIC)
|
||||||
|
private Long customerId;
|
||||||
|
|
||||||
|
@Excel(name = "父级id", cellType = Excel.ColumnType.NUMERIC)
|
||||||
|
private Long parentCustomerId;
|
||||||
|
|
||||||
|
@Excel(name = "分销类型", cellType = Excel.ColumnType.STRING)
|
||||||
|
private Integer placeType;
|
||||||
|
|
||||||
|
@Excel(name = "分销比例", cellType = Excel.ColumnType.STRING)
|
||||||
|
private String placeRate;
|
||||||
|
|
||||||
|
@Excel(name = "分销金额", cellType = Excel.ColumnType.STRING)
|
||||||
|
private String placeMoney;
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue