分销关系
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.czg.account.entity;
|
||||
|
||||
import com.alibaba.fastjson2.annotation.JSONField;
|
||||
import com.czg.utils.CzgRandomUtils;
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
@@ -152,22 +151,6 @@ public class ShopUser implements Serializable {
|
||||
private LocalDateTime nextDeliverTime;
|
||||
// 是否分销员
|
||||
private String distributionShops;
|
||||
/**
|
||||
* 上级分销员id
|
||||
*/
|
||||
private Long parentUserId;
|
||||
/**
|
||||
* 上上级分销员id
|
||||
*/
|
||||
private Long gradeUserId;
|
||||
/**
|
||||
* 一级分销收入
|
||||
*/
|
||||
private BigDecimal oneIncome;
|
||||
/**
|
||||
* 二级分销收入
|
||||
*/
|
||||
private BigDecimal twoIncome;
|
||||
|
||||
private String memberCircleName;
|
||||
private Integer memberCircleReward;
|
||||
@@ -179,8 +162,6 @@ public class ShopUser implements Serializable {
|
||||
private Integer discount;
|
||||
@Column(ignore = true)
|
||||
private Integer isMemberPrice;
|
||||
@JSONField(format = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime inviteTime;
|
||||
|
||||
/**
|
||||
* 添加或更新分销店铺:若shopId已存在(无论后缀),则替换为新的id_后缀;否则插入
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.czg.market.entity;
|
||||
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 全民股东邀请关系 实体类。
|
||||
*
|
||||
* @author ww
|
||||
* @since 2026-01-31
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Table("mk_distribution_invite")
|
||||
public class MkDistributionInvite implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id(keyType = KeyType.Auto)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 店铺Id
|
||||
*/
|
||||
private Long shopId;
|
||||
/**
|
||||
* 用户Id
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 用户Id
|
||||
*/
|
||||
private Long shopUserId;
|
||||
|
||||
/**
|
||||
* 邀请人ID mk_distribution_user.id
|
||||
*/
|
||||
private Long parentUserId;
|
||||
|
||||
/**
|
||||
* 邀请人上级ID mk_distribution_user.id
|
||||
*/
|
||||
private Long gradeUserId;
|
||||
|
||||
/**
|
||||
* 一级分润
|
||||
*/
|
||||
private BigDecimal oneIncome;
|
||||
|
||||
/**
|
||||
* 二级分润
|
||||
*/
|
||||
private BigDecimal twoIncome;
|
||||
|
||||
/**
|
||||
* 邀请时间
|
||||
*/
|
||||
private LocalDateTime inviteTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.czg.market.service;
|
||||
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.czg.market.entity.MkDistributionInvite;
|
||||
|
||||
/**
|
||||
* 全民股东邀请关系 服务层。
|
||||
*
|
||||
* @author ww
|
||||
* @since 2026-01-31
|
||||
*/
|
||||
public interface MkDistributionInviteService extends IService<MkDistributionInvite> {
|
||||
|
||||
MkDistributionInvite getByShopIdAndShopUserId(Long shopId, Long shopUserId);
|
||||
}
|
||||
Reference in New Issue
Block a user