diff --git a/ghy-custom/src/main/java/com/ghy/customer/domain/Customer.java b/ghy-custom/src/main/java/com/ghy/customer/domain/Customer.java index 5d35c1c4..2be64a27 100644 --- a/ghy-custom/src/main/java/com/ghy/customer/domain/Customer.java +++ b/ghy-custom/src/main/java/com/ghy/customer/domain/Customer.java @@ -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; diff --git a/ghy-custom/src/main/java/com/ghy/customer/domain/CustomerPlace.java b/ghy-custom/src/main/java/com/ghy/customer/domain/CustomerPlace.java new file mode 100644 index 00000000..a103479e --- /dev/null +++ b/ghy-custom/src/main/java/com/ghy/customer/domain/CustomerPlace.java @@ -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; + +}