Affiliate功能-数据库表设计更新
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package com.ai.da.mapper.primary;
|
||||
|
||||
import com.ai.da.mapper.primary.entity.AffiliateIncome;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface AffiliateIncomeMapper extends BaseMapper<AffiliateIncome> {
|
||||
|
||||
List<Map<String, Object>> getPersonalMonthlyIncome(Long affiliateAccountId, int year);
|
||||
|
||||
List<Map<String, Object>> getMonthlyAffiliateIncome(int year, int month);
|
||||
}
|
||||
@@ -3,5 +3,9 @@ package com.ai.da.mapper.primary;
|
||||
import com.ai.da.mapper.primary.entity.Affiliate;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public interface AffiliateMapper extends BaseMapper<Affiliate> {
|
||||
|
||||
Map<String, Long> getMonthlyApprovedAffiliate(int year, int month);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.ai.da.mapper.primary.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("t_affiliate_income")
|
||||
public class AffiliateIncome extends BaseEntity {
|
||||
|
||||
private Long affiliateId;
|
||||
|
||||
private Long affiliateAccountId;
|
||||
|
||||
private Long inviteeAccountId;
|
||||
|
||||
private Float amount;
|
||||
|
||||
private LocalDateTime paymentTime;
|
||||
|
||||
private Float commission;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user