Commit 1a6c98c4 authored by yanghao's avatar yanghao

chore: 添加客户新字段

parent f9d3c0eb
......@@ -366,6 +366,69 @@ public class CustomerDO extends BaseDO {
@ApiModelProperty("延期申请次数")
private int delayApprovalNum ;
// ======== 20240821 add start
/**
* 首次成交时间
*/
private Date firstDealTime;
/**
* 获取方式
* <p>
* 枚举 {@link TODO customer_get_method 字典}
*/
private Integer getMethod;
/**
* 创建入口
* <p>
* 枚举 {@link TODO customer_create_from 字典}
*/
private Integer createFrom;
/**
* 归属时间
*/
private Date customerServiceConfirmedTime;
/**
* 客户角色
* <p>
* 枚举 {@link TODO customer_role 字典}
*/
private Integer role;
/**
* 业务国家 逗号分隔
*/
private String busiCountryIds;
/**
* 竞争对手ID
*/
private Long competitorId;
/**
* 年度发货量
*/
private BigDecimal weightYearly;
/**
* 年度发货次数
*/
private Integer numYearly;
/**
* 默认开票,1-是,0-否
*/
private Boolean defaultBilling;
// ======== 20240821 add end
/**
* vip等级-中文
*/
......
package cn.iocoder.yudao.module.ecw.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
/**
* 客户创建入口类型枚举
*/
@AllArgsConstructor
@Getter
public enum CustomerCreateFromEnum {
//1、导入 2、后台用户创建 3、APP注册 4、发货人创建
IMPORT(1, "导入"),
BACKEND(2, "后台用户创建"),
APP_REGISTER(3, "APP注册"),
APP_CONSIGNOR(4, "APP发货人创建");
;
/**
* 类型
*/
private final Integer value;
/**
* 类型名
*/
private final String name;
public static String getNameByValue(Integer value) {
return Arrays.stream(CustomerCreateFromEnum.values()).filter(t -> t.getValue().equals(value)).map(CustomerCreateFromEnum::getName).findFirst().orElse("");
}
public static CustomerCreateFromEnum get(Integer value) {
return Arrays.stream(CustomerCreateFromEnum.values()).filter(t -> t.getValue().equals(value)).findFirst().orElse(null);
}
}
package cn.iocoder.yudao.module.ecw.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
/**
* 客户获取方式类型枚举
*/
@AllArgsConstructor
@Getter
public enum CustomerGetMethodEnum {
CREATE(1, "自主创建"),
ASSIGN(2, "分配/移交接收"),
CATCH(3, "公海捞取");
;
/**
* 类型
*/
private final Integer value;
/**
* 类型名
*/
private final String name;
public static String getNameByValue(Integer value) {
return Arrays.stream(CustomerGetMethodEnum.values()).filter(t -> t.getValue().equals(value)).map(CustomerGetMethodEnum::getName).findFirst().orElse("");
}
public static CustomerGetMethodEnum get(Integer value) {
return Arrays.stream(CustomerGetMethodEnum.values()).filter(t -> t.getValue().equals(value)).findFirst().orElse(null);
}
}
package cn.iocoder.yudao.module.ecw.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
/**
* 客户角色类型枚举
*/
@AllArgsConstructor
@Getter
public enum CustomerRoleEnum {
//0、CO 1、工程商 2、代理 6、集运
C0(0, "C0"),
CONTRACTOR(1, "工程商"),
PROXY(2, "代理"),
CONSOLIDATOR(6, "集运");
;
/**
* 类型
*/
private final Integer value;
/**
* 类型名
*/
private final String name;
public static String getNameByValue(Integer value) {
return Arrays.stream(CustomerRoleEnum.values()).filter(t -> t.getValue().equals(value)).map(CustomerRoleEnum::getName).findFirst().orElse("");
}
public static CustomerRoleEnum get(Integer value) {
return Arrays.stream(CustomerRoleEnum.values()).filter(t -> t.getValue().equals(value)).findFirst().orElse(null);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment