修改用户实体,增加多级分销逻辑

This commit is contained in:
clunt 2022-04-27 11:21:14 +08:00
parent 51539c8011
commit 183f18df9e
2 changed files with 36 additions and 0 deletions

View File

@ -11,6 +11,8 @@ import lombok.Data;
@Data
public class Customer extends BaseEntity {
private static final long serialVersionUID = 1L;
@Excel(name = "用户id", cellType = Excel.ColumnType.NUMERIC)
private Long customerId;

View File

@ -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;
}