|
@@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
import javax.validation.constraints.NotBlank;
|
|
|
|
+import javax.validation.constraints.NotNull;
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -31,7 +32,7 @@ public class TBCrm extends BaseEntity implements Serializable {
|
|
private String name;
|
|
private String name;
|
|
|
|
|
|
@ApiModelProperty(value = "派单时间")
|
|
@ApiModelProperty(value = "派单时间")
|
|
- @NotBlank(message = "派单时间不能为空")
|
|
|
|
|
|
+ @NotNull(message = "派单时间不能为空")
|
|
private Long beginTime;
|
|
private Long beginTime;
|
|
|
|
|
|
@ApiModelProperty(value = "服务单元id")
|
|
@ApiModelProperty(value = "服务单元id")
|
|
@@ -40,12 +41,12 @@ public class TBCrm extends BaseEntity implements Serializable {
|
|
|
|
|
|
@ApiModelProperty(value = "派单人id")
|
|
@ApiModelProperty(value = "派单人id")
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
- @NotBlank(message = "派单人id不能为空")
|
|
|
|
|
|
+ @NotNull(message = "派单人id不能为空")
|
|
private Long crmUserId;
|
|
private Long crmUserId;
|
|
|
|
|
|
@ApiModelProperty(value = "客户id")
|
|
@ApiModelProperty(value = "客户id")
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
- @NotBlank(message = "客户id不能为空")
|
|
|
|
|
|
+ @NotNull(message = "客户id不能为空")
|
|
private Long customId;
|
|
private Long customId;
|
|
|
|
|
|
@ApiModelProperty(value = "考试开始时间")
|
|
@ApiModelProperty(value = "考试开始时间")
|
|
@@ -56,7 +57,7 @@ public class TBCrm extends BaseEntity implements Serializable {
|
|
|
|
|
|
@ApiModelProperty(value = "产品id")
|
|
@ApiModelProperty(value = "产品id")
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
- @NotBlank(message = "产品id不能为空")
|
|
|
|
|
|
+ @NotNull(message = "产品id不能为空")
|
|
private Long productId;
|
|
private Long productId;
|
|
|
|
|
|
@ApiModelProperty(value = "区域经理id")
|
|
@ApiModelProperty(value = "区域经理id")
|
|
@@ -64,11 +65,11 @@ public class TBCrm extends BaseEntity implements Serializable {
|
|
private Long leadId;
|
|
private Long leadId;
|
|
|
|
|
|
@ApiModelProperty(value = "是否crm同步,false:否,true:是")
|
|
@ApiModelProperty(value = "是否crm同步,false:否,true:是")
|
|
- @NotBlank(message = "是否crm同步不能为空")
|
|
|
|
|
|
+ @NotNull(message = "是否crm同步不能为空")
|
|
private Boolean sync;
|
|
private Boolean sync;
|
|
|
|
|
|
@ApiModelProperty(value = "是否启用,0:停用,1:启用")
|
|
@ApiModelProperty(value = "是否启用,0:停用,1:启用")
|
|
- @NotBlank(message = "是否启用不能为空")
|
|
|
|
|
|
+ @NotNull(message = "是否启用不能为空")
|
|
private Boolean enable;
|
|
private Boolean enable;
|
|
|
|
|
|
public String getCrmNo() {
|
|
public String getCrmNo() {
|