From 183f18df9eb6118e7d60e29a62dc40cf13da9e47 Mon Sep 17 00:00:00 2001 From: clunt Date: Wed, 27 Apr 2022 11:21:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E5=AE=9E?= =?UTF-8?q?=E4=BD=93=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=A4=9A=E7=BA=A7=E5=88=86?= =?UTF-8?q?=E9=94=80=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ghy/customer/domain/Customer.java | 2 ++ .../ghy/customer/domain/CustomerPlace.java | 34 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 ghy-custom/src/main/java/com/ghy/customer/domain/CustomerPlace.java 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; + +}