|
|
|
|
@ -21,7 +21,7 @@ import java.time.LocalDateTime;
|
|
|
|
|
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
|
|
|
|
import static cn.iocoder.yudao.module.crm.enums.DictTypeConstants.CRM_CUSTOMER_INDUSTRY;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "管理后台 - CRM 线索 创建/更新 Request VO")
|
|
|
|
|
@Schema(description = "管理后台 - CRM 线索创建/更新 Request VO")
|
|
|
|
|
@Data
|
|
|
|
|
public class CrmClueSaveReqVO {
|
|
|
|
|
|
|
|
|
|
@ -33,50 +33,28 @@ public class CrmClueSaveReqVO {
|
|
|
|
|
@NotEmpty(message = "线索名称不能为空")
|
|
|
|
|
private String name;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "最后跟进时间")
|
|
|
|
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
|
|
@DiffLogField(name = "最后跟进时间")
|
|
|
|
|
private LocalDateTime contactLastTime;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "下次联系时间", example = "2023-10-18 01:00:00")
|
|
|
|
|
@DiffLogField(name = "下次联系时间")
|
|
|
|
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
|
|
private LocalDateTime contactNextTime;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "电话", example = "18000000000")
|
|
|
|
|
@DiffLogField(name = "电话")
|
|
|
|
|
@Telephone
|
|
|
|
|
private String telephone;
|
|
|
|
|
@Schema(description = "负责人编号", example = "2048")
|
|
|
|
|
private Long ownerUserId;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "手机号", example = "18000000000")
|
|
|
|
|
@DiffLogField(name = "手机号")
|
|
|
|
|
@Mobile
|
|
|
|
|
private String mobile;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "地址", example = "北京市海淀区")
|
|
|
|
|
@DiffLogField(name = "地址")
|
|
|
|
|
private String address;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "最后跟进时间")
|
|
|
|
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
|
|
@DiffLogField(name = "最后跟进时间")
|
|
|
|
|
private LocalDateTime contactLastTime;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "负责人编号", example = "2048")
|
|
|
|
|
private Long ownerUserId;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "备注", example = "随便")
|
|
|
|
|
@DiffLogField(name = "备注")
|
|
|
|
|
private String remark;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "所属行业", example = "1")
|
|
|
|
|
@DiffLogField(name = "所属行业", function = CrmCustomerIndustryParseFunction.NAME)
|
|
|
|
|
@DictFormat(CRM_CUSTOMER_INDUSTRY)
|
|
|
|
|
private Integer industryId;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "客户等级", example = "2")
|
|
|
|
|
@DiffLogField(name = "客户等级", function = CrmCustomerLevelParseFunction.NAME)
|
|
|
|
|
@InEnum(CrmCustomerLevelEnum.class)
|
|
|
|
|
private Integer level;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "客户来源", example = "3")
|
|
|
|
|
@DiffLogField(name = "客户来源", function = CrmCustomerSourceParseFunction.NAME)
|
|
|
|
|
private Integer source;
|
|
|
|
|
@Schema(description = "电话", example = "18000000000")
|
|
|
|
|
@DiffLogField(name = "电话")
|
|
|
|
|
@Telephone
|
|
|
|
|
private String telephone;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "网址", example = "https://www.baidu.com")
|
|
|
|
|
@DiffLogField(name = "网址")
|
|
|
|
|
@ -98,8 +76,31 @@ public class CrmClueSaveReqVO {
|
|
|
|
|
@Size(max = 255, message = "邮箱长度不能超过 255 个字符")
|
|
|
|
|
private String email;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "地址", example = "北京市海淀区")
|
|
|
|
|
@DiffLogField(name = "地址")
|
|
|
|
|
private String address;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "所属行业", example = "1")
|
|
|
|
|
@DiffLogField(name = "所属行业", function = CrmCustomerIndustryParseFunction.NAME)
|
|
|
|
|
@DictFormat(CRM_CUSTOMER_INDUSTRY)
|
|
|
|
|
private Integer industryId;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "客户等级", example = "2")
|
|
|
|
|
@DiffLogField(name = "客户等级", function = CrmCustomerLevelParseFunction.NAME)
|
|
|
|
|
@InEnum(CrmCustomerLevelEnum.class)
|
|
|
|
|
private Integer level;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "客户来源", example = "3")
|
|
|
|
|
@DiffLogField(name = "客户来源", function = CrmCustomerSourceParseFunction.NAME)
|
|
|
|
|
private Integer source;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "客户描述", example = "任意文字")
|
|
|
|
|
@DiffLogField(name = "客户描述")
|
|
|
|
|
@Size(max = 4096, message = "客户描述长度不能超过 4096 个字符")
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
@Schema(description = "备注", example = "随便")
|
|
|
|
|
@DiffLogField(name = "备注")
|
|
|
|
|
private String remark;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|