CrmClientData.java 4.33 KB
Newer Older
邓实川 committed
1 2 3 4 5 6 7 8 9 10
/**  
* <p>Title: CrmClientData.java</p>  
* <p>Description: </p>  
* @author dsc  
* @date 2020年6月5日  
* @version 1.0  
*/
package cn.timer.api.bean.crm;

import java.util.Date;
11
import java.util.List;
邓实川 committed
12 13 14 15 16

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
17
import javax.persistence.Transient;
邓实川 committed
18

19
import com.baomidou.mybatisplus.annotation.FieldFill;
邓实川 committed
20
import com.baomidou.mybatisplus.annotation.IdType;
21
import com.baomidou.mybatisplus.annotation.TableField;
邓实川 committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * Title: CrmClientData.java
 * </p>
 * <p>
 * Description:
 * </p>
 * 
 * @author dsc
 * @date 2020年6月5日
 * @version 1.0
 */

@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "crm_client_data")
@ApiModel("客户数据表")
52
public class CrmClientData extends Model<CrmClientData> {
邓实川 committed
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78

	private static final long serialVersionUID = -5368056704790782780L;

	@Id
	@GeneratedValue
	@TableId(type = IdType.AUTO)
	@ApiModelProperty(value = "编号")
	private Integer id;

	@ApiModelProperty(value = "客户姓名")
	private String clientName;

	@ApiModelProperty(value = "客户手机号")
	private String clientCellphone;

	@ApiModelProperty(value = "客户座机")
	private String clientTelephone;

	@ApiModelProperty(value = "客户官网")
	private String clientUrl;

	@ApiModelProperty(value = "行业id(字典表)")
	private Integer industry;

	@ApiModelProperty(value = "行业名")
	private String industryName;
79

邓实川 committed
80 81 82 83 84
	@ApiModelProperty(value = "客户邮箱")
	private String clientEmail;

	@ApiModelProperty(value = "省")
	private String province;
85 86
	@ApiModelProperty(value = "省id")
	private Integer provinceId;
邓实川 committed
87 88
	@ApiModelProperty(value = "市")
	private String city;
89 90
	@ApiModelProperty(value = "市")
	private Integer cityId;
邓实川 committed
91 92
	@ApiModelProperty(value = "区")
	private String district;
93 94
	@ApiModelProperty(value = "区编号")
	private Integer districtId;
邓实川 committed
95 96
	@ApiModelProperty(value = "邮编")
	private String zipCode;
97 98
	@ApiModelProperty(value = "详细地址")
	private String address;
邓实川 committed
99

100 101
	@ApiModelProperty(value = "客户类型id")
	private Integer clientType;
邓实川 committed
102

103 104 105 106 107 108 109 110
	@ApiModelProperty(value = "客户类型名")
	private String clientTypeName;

	@ApiModelProperty(value = "客户来源id")
	private Integer clientSource;

	@ApiModelProperty(value = "客户来源名")
	private String clientSourceName;
邓实川 committed
111 112 113 114

	@ApiModelProperty(value = "备注")
	private String remarks;

115
	@ApiModelProperty(value = "客户所属(创建人empNum) 0-进入客户公海")
邓实川 committed
116 117 118 119 120
	private Integer belongUser;

	@ApiModelProperty(value = "客户所属人姓名")
	private String belongUserName;

121 122
	@ApiModelProperty(value = "客户所属业务组id")
	private Integer belongGroup;
邓实川 committed
123

124 125 126 127 128
	@ApiModelProperty(value = "客户所属业务组名")
	private String belongGroupName;

	@ApiModelProperty(value = "客户数据状态 0-无 1-潜在 2-意向 3-签约 4-合作中 5-已封档")
	private Integer clientStatus;
邓实川 committed
129 130 131

	@ApiModelProperty(value = "附件地址")
	private String fileUrl;
132

133 134
	@ApiModelProperty(value = "客户联系人数量")
	private Integer contactsNum;
邓实川 committed
135

136 137 138 139 140 141 142
	@ApiModelProperty(value = "收藏关注 0-否 1-是")
	private Integer star;

	@ApiModelProperty(value = "创建人")
	private Integer createUser;

	@TableField(fill = FieldFill.INSERT)
邓实川 committed
143
	@ApiModelProperty(value = "创建时间")
144 145 146 147 148 149 150 151 152 153 154
	private Date createTime;

	@ApiModelProperty(value = "修改人")
	private Integer modifyUser;

	@TableField(fill = FieldFill.INSERT_UPDATE)
	@ApiModelProperty(value = "修改时间")
	private Date modifyTime;

	@ApiModelProperty(value = "最近跟进时间")
	private Date lastFollowTime;
邓实川 committed
155 156 157

	@ApiModelProperty(value = "企业id")
	private Integer orgCode;
158 159 160 161 162 163 164 165 166 167

	@Transient
	@TableField(exist = false)
	@ApiModelProperty(value = "协作人id")
	private Integer[] ids;

	@Transient
	@TableField(exist = false)
	@ApiModelProperty(value = "客户联系人数据列表")
	private List<CrmClientContacts> CrmClientContacts;
邓实川 committed
168
}