|
|
@@ -12,6 +12,7 @@ import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
+import java.time.LocalDateTime;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -222,6 +223,15 @@ public class SysUserJzgInfo extends BaseModel implements Serializable {
|
|
|
@Schema(description = "是否删除 0未删除 1 删除")
|
|
|
private Integer isDelete;
|
|
|
|
|
|
+
|
|
|
+ @TableField(value = "is_distribution")
|
|
|
+ @Schema(description = "是否是分销员 0-否 1-是")
|
|
|
+ private String isDistribution;
|
|
|
+
|
|
|
+ @TableField(value = "distribution_time")
|
|
|
+ @Schema(description = "成为分销员时间")
|
|
|
+ private LocalDateTime distributionTime;
|
|
|
+
|
|
|
@TableField(exist = false)
|
|
|
@Schema(description = "身份证正面")
|
|
|
private String sfz1;
|
|
|
@@ -336,6 +346,17 @@ public class SysUserJzgInfo extends BaseModel implements Serializable {
|
|
|
this.referrerId = yqirInfo.getId();
|
|
|
}
|
|
|
|
|
|
+ public SysUserJzgInfo(SysUser sysUser,SysUserJzgInfo inviterInfo) {
|
|
|
+ this.userId = sysUser.getId();
|
|
|
+ this.name = sysUser.getUsername();
|
|
|
+ this.status = 0;
|
|
|
+ this.isEnable = 0;
|
|
|
+ this.deptId = inviterInfo.getDeptId() == null ? "" : inviterInfo.getDeptId();
|
|
|
+ this.typeAttr = inviterInfo.getTypeAttr();
|
|
|
+ this.referrerId = inviterInfo.getId();
|
|
|
+ this.systemCode = inviterInfo.getSystemCode();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 重置人员类型 团队 渠道 电销 转为个代
|
|
|
* @param typeAttr
|