Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 93f886df
authored
Mar 30, 2021
by
leejoker
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
🐛
修复WeCustomerMapper报错
1 parent
724798e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
26 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeCustomer.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeCustomer.java
View file @
93f886d
package
com
.
linkwechat
.
wecom
.
domain
;
import
java.util.Date
;
import
java.util.List
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.linkwechat.common.annotation.Excel
;
import
com.linkwechat.common.annotation.Excels
;
import
com.linkwechat.common.core.domain.BaseEntity
;
import
com.linkwechat.common.utils.SnowFlakeUtil
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
javax.validation.constraints.NotBlank
;
import
java.util.Date
;
import
java.util.List
;
/**
* 企业微信客户对象 we_customer
*
*
* @author ruoyi
* @date 2020-09-13
*/
...
...
@@ -35,72 +30,99 @@ import javax.validation.constraints.NotBlank;
@AllArgsConstructor
@NoArgsConstructor
@TableName
(
"we_customer"
)
public
class
WeCustomer
extends
BaseEntity
{
public
class
WeCustomer
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** 外部联系人的userid */
/**
* 外部联系人的userid
*/
@TableId
@NotBlank
(
message
=
"外部联系人的id不可为空"
)
@ApiModelProperty
(
"外部联系人的userid"
)
private
String
externalUserid
;
/** 外部联系人名称 */
/**
* 外部联系人名称
*/
@Excel
(
name
=
"客户"
)
@ApiModelProperty
(
"外部联系人名称"
)
private
String
name
;
/** 外部联系人头像 */
/**
* 外部联系人头像
*/
@ApiModelProperty
(
"外部联系人头像"
)
private
String
avatar
;
/** 外部联系人的类型,1表示该外部联系人是微信用户,2表示该外部联系人是企业微信用户 */
/**
* 外部联系人的类型,1表示该外部联系人是微信用户,2表示该外部联系人是企业微信用户
*/
@ApiModelProperty
(
"外部联系人的类型,1表示该外部联系人是微信用户,2表示该外部联系人是企业微信用户"
)
@Excel
(
name
=
"客户类型"
,
readConverterExp
=
"1=微信,2=企业微信"
)
private
Integer
type
;
/** 外部联系人性别 0-未知 1-男性 2-女性 */
/**
* 外部联系人性别 0-未知 1-男性 2-女性
*/
@ApiModelProperty
(
"外部联系人性别 0-未知 1-男性 2-女性"
)
@Excel
(
name
=
"性别"
,
readConverterExp
=
"0=未知,1=男性,2=女性"
)
private
Integer
gender
;
/** 外部联系人在微信开放平台的唯一身份标识,通过此字段企业可将外部联系人与公众号/小程序用户关联起来。 */
/**
* 外部联系人在微信开放平台的唯一身份标识,通过此字段企业可将外部联系人与公众号/小程序用户关联起来。
*/
@ApiModelProperty
(
"外部联系人在微信开放平台的唯一身份标识,通过此字段企业可将外部联系人与公众号/小程序用户关联起来"
)
private
String
unionid
;
/** 生日 */
/**
* 生日
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
"生日"
)
private
Date
birthday
;
/** 客户企业简称 */
/**
* 客户企业简称
*/
@ApiModelProperty
(
"客户企业简称"
)
@Excel
(
name
=
"公司名称"
)
private
String
corpName
;
/** 客户企业全称 */
/**
* 客户企业全称
*/
@ApiModelProperty
(
"客户企业全称"
)
private
String
corpFullName
;
/** 职位 */
/**
* 职位
*/
@ApiModelProperty
(
"职位"
)
private
String
position
;
private
String
position
;
/** 是否开启会话存档 0:关闭 1:开启 */
/**
* 是否开启会话存档 0:关闭 1:开启
*/
@ApiModelProperty
(
"是否开启会话存档 0:关闭 1:开启"
)
private
Integer
isOpenChat
;
/** 添加人员 */
/**
* 添加人员
*/
@TableField
(
exist
=
false
)
private
List
<
WeFlowerCustomerRel
>
weFlowerCustomerRels
;
/** 添加人id */
/**
* 添加人id
*/
@TableField
(
exist
=
false
)
private
String
userIds
;
/** 标签 */
/**
* 标签
*/
@TableField
(
exist
=
false
)
private
String
tagIds
;
...
...
@@ -108,7 +130,9 @@ public class WeCustomer extends BaseEntity
@JSONField
(
defaultValue
=
"0"
)
private
Integer
status
;
/** 部门 */
/**
* 部门
*/
@TableField
(
exist
=
false
)
private
String
departmentIds
;
...
...
@@ -125,4 +149,17 @@ public class WeCustomer extends BaseEntity
private
String
userId
;
/**
* 创建者
*/
@ApiModelProperty
(
hidden
=
true
)
@TableField
(
exist
=
false
)
private
String
createBy
;
/**
* 更新者
*/
@ApiModelProperty
(
hidden
=
true
)
@TableField
(
exist
=
false
)
private
String
updateBy
;
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment