|
@@ -2,9 +2,11 @@ package com.qmth.sop.business.bean.result;
|
|
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
|
+import com.qmth.sop.common.enums.ProductTypeEnum;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
/**
|
|
|
* @Description: sop result
|
|
@@ -28,6 +30,55 @@ public class SopInfoResult implements Serializable {
|
|
|
@ApiModelProperty(value = "crm名称")
|
|
|
private String crmName;
|
|
|
|
|
|
+ @ApiModelProperty(value = "客户id")
|
|
|
+ @JsonSerialize(using = ToStringSerializer.class)
|
|
|
+ private Long customId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "客户名称")
|
|
|
+ private String customName;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "客户类型")
|
|
|
+ private ProductTypeEnum customType;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "客户类型str")
|
|
|
+ private String customTypeStr;
|
|
|
+
|
|
|
+ public ProductTypeEnum getCustomType() {
|
|
|
+ return customType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCustomType(ProductTypeEnum customType) {
|
|
|
+ this.customType = customType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCustomTypeStr() {
|
|
|
+ if (Objects.nonNull(customType)) {
|
|
|
+ return customType.getTitle();
|
|
|
+ } else {
|
|
|
+ return customTypeStr;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCustomTypeStr(String customTypeStr) {
|
|
|
+ this.customTypeStr = customTypeStr;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getCustomId() {
|
|
|
+ return customId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCustomId(Long customId) {
|
|
|
+ this.customId = customId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCustomName() {
|
|
|
+ return customName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCustomName(String customName) {
|
|
|
+ this.customName = customName;
|
|
|
+ }
|
|
|
+
|
|
|
public Long getId() {
|
|
|
return id;
|
|
|
}
|