Affiliate-新增、查询、佣金计算等
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package com.ai.da.mapper.primary;
|
||||
|
||||
import com.ai.da.mapper.primary.entity.Affiliate;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
public interface AffiliateMapper extends BaseMapper<Affiliate> {
|
||||
}
|
||||
@@ -104,4 +104,7 @@ public class Account implements Serializable {
|
||||
* 头像
|
||||
*/
|
||||
private String avatar;
|
||||
|
||||
private Long invitationCode;
|
||||
|
||||
}
|
||||
|
||||
28
src/main/java/com/ai/da/mapper/primary/entity/Affiliate.java
Normal file
28
src/main/java/com/ai/da/mapper/primary/entity/Affiliate.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package com.ai.da.mapper.primary.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("t_affiliate")
|
||||
public class Affiliate extends BaseEntity{
|
||||
|
||||
private Long accountId;
|
||||
|
||||
// Active(活跃) || Inactive(过期) || Pending(待审批) || Refused(拒绝)
|
||||
private String status;
|
||||
|
||||
private Float totalEarnings = 0.00F;
|
||||
|
||||
private Float monthlyEarnings = 0.00F;
|
||||
|
||||
private Float unpaidEarnings = 0.00F;
|
||||
|
||||
private Integer visits = 0;
|
||||
|
||||
private Boolean approved = false;
|
||||
|
||||
private String link;
|
||||
}
|
||||
@@ -24,4 +24,9 @@ public class OrderInfo extends BaseEntity{
|
||||
private String note;
|
||||
|
||||
private String paymentType;//支付方式
|
||||
|
||||
// 可用于标记用户订单是否首次订阅
|
||||
private byte isFirstSubscription = 0;
|
||||
|
||||
private byte isCommissionCalculated = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user