Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
479f66b1
Commit
479f66b1
authored
Aug 28, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'master'
Develop See merge request 8timerv2/8timerapiv200!463
parents
af8cac99
7746d1c1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
4 deletions
+38
-4
src/main/java/cn/timer/api/bean/crm/CrmClientData.java
+6
-0
src/main/java/cn/timer/api/controller/crm/CrmController.java
+25
-4
src/main/java/cn/timer/api/dto/crm/CrmClientDataImportVo.java
+7
-0
No files found.
src/main/java/cn/timer/api/bean/crm/CrmClientData.java
View file @
479f66b1
...
...
@@ -156,6 +156,12 @@ public class CrmClientData extends Model<CrmClientData> {
@ApiModelProperty
(
value
=
"企业id"
)
private
Integer
orgCode
;
@ApiModelProperty
(
value
=
"微信"
)
private
String
wechat
;
@ApiModelProperty
(
value
=
"产品"
)
private
String
product
;
@Transient
@TableField
(
exist
=
false
)
@ApiModelProperty
(
value
=
"协作人id"
)
...
...
src/main/java/cn/timer/api/controller/crm/CrmController.java
View file @
479f66b1
...
...
@@ -579,6 +579,14 @@ public class CrmController {
@RequestParam
(
required
=
false
)
String
endCreateTime
,
@RequestParam
(
required
=
false
)
String
startFollowTime
,
@RequestParam
(
required
=
false
)
String
endFollowTime
)
{
if
(
endCreateTime
!=
null
)
{
endCreateTime
=
endCreateTime
.
substring
(
0
,
10
)+
" 23:59:59"
;
}
if
(
endFollowTime
!=
null
)
{
endFollowTime
=
endFollowTime
.
substring
(
0
,
10
)+
" 23:59:59"
;
}
Integer
empNum
=
getEmpNum
(
userBean
);
Integer
orgCode
=
getOrgCode
(
userBean
);
List
<
CrmClientData
>
crmClientDatas
=
null
;
...
...
@@ -1378,6 +1386,8 @@ public class CrmController {
reader
.
addHeaderAlias
(
"*客户名称(必填)"
,
"clientName"
);
reader
.
addHeaderAlias
(
"*所属分组(必填)"
,
"belongGroupName"
);
reader
.
addHeaderAlias
(
"行业"
,
"industryName"
);
reader
.
addHeaderAlias
(
"微信"
,
"wechat"
);
reader
.
addHeaderAlias
(
"产品"
,
"product"
);
reader
.
addHeaderAlias
(
"客户类型"
,
"clientTypeName"
);
reader
.
addHeaderAlias
(
"手机号码(客户)"
,
"clientCellphone"
);
reader
.
addHeaderAlias
(
"座机号码"
,
"clientTelephone"
);
...
...
@@ -1385,7 +1395,7 @@ public class CrmController {
reader
.
addHeaderAlias
(
"邮箱"
,
"clientEmail"
);
reader
.
addHeaderAlias
(
"地址"
,
"address"
);
reader
.
addHeaderAlias
(
"联系人姓名"
,
"linkName"
);
reader
.
addHeaderAlias
(
"手机号码
(联系人)
"
,
"cellphone"
);
reader
.
addHeaderAlias
(
"手机号码"
,
"cellphone"
);
reader
.
addHeaderAlias
(
"所属公司"
,
"company"
);
reader
.
addHeaderAlias
(
"性别"
,
"gender"
);
reader
.
addHeaderAlias
(
"职位"
,
"position"
);
...
...
@@ -1404,7 +1414,8 @@ public class CrmController {
String
clientUrl
=
crmClientDataImportVo
.
getClientUrl
();
// 官网
String
clientEmail
=
crmClientDataImportVo
.
getClientEmail
();
// 邮箱
String
clientAddress
=
crmClientDataImportVo
.
getAddress
();
// 地址
String
wechat
=
crmClientDataImportVo
.
getWechat
();
// 微信
String
product
=
crmClientDataImportVo
.
getProduct
();
// 产品
String
linkname
=
crmClientDataImportVo
.
getLinkName
();
// 联系人姓名
String
linkcellphone
=
crmClientDataImportVo
.
getCellphone
();
// 手机号码
String
linkcompany
=
crmClientDataImportVo
.
getCompany
();
// 所属公司
...
...
@@ -1444,7 +1455,9 @@ public class CrmController {
}
crmClientData
.
setClientStatus
(
1
);
if
(
linkname
!=
null
)
{
crmClientData
.
setContactsNum
(
1
);
}
crmClientData
.
setBelongUser
(
empNum
);
crmClientData
.
setBelongUserName
(
getEmpName
(
orgCode
,
empNum
));
crmClientData
.
setClientName
(
clientName
);
...
...
@@ -1452,6 +1465,9 @@ public class CrmController {
crmClientData
.
setBelongGroup
(
crmBusinessGroup
.
getId
());
crmClientData
.
setIndustryName
(
industryName
);
crmClientData
.
setWechat
(
wechat
);
crmClientData
.
setProduct
(
product
);
crmClientData
.
setClientTypeName
(
clientTypeName
);
crmClientData
.
setClientCellphone
(
clientCellphone
);
...
...
@@ -1464,13 +1480,14 @@ public class CrmController {
Integer
cid
=
crmClientData
.
getId
();
if
(
linkname
!=
null
)
{
CrmClientContacts
contacts
=
new
CrmClientContacts
();
contacts
.
setName
(
linkname
);
contacts
.
setCellphone
(
linkcellphone
);
contacts
.
setCompany
(
linkcompany
);
if
(
linkgender
==
"女"
)
if
((
"女"
).
equals
(
linkgender
)
)
contacts
.
setGender
(
0
);
else
if
(
linkgender
==
"男"
)
else
if
((
"男"
).
equals
(
linkgender
)
)
contacts
.
setGender
(
1
);
else
contacts
.
setGender
(
null
);
...
...
@@ -1484,6 +1501,10 @@ public class CrmController {
contacts
.
insert
();
}
}
}
return
ResultUtil
.
success
(
"导入成功"
);
}
...
...
src/main/java/cn/timer/api/dto/crm/CrmClientDataImportVo.java
View file @
479f66b1
...
...
@@ -9,6 +9,7 @@ package cn.timer.api.dto.crm;
import
java.io.Serializable
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
...
...
@@ -48,6 +49,12 @@ public class CrmClientDataImportVo implements Serializable {
// 详细地址
private
String
address
;
//微信
private
String
wechat
;
//产品
private
String
product
;
// 联系人信息
private
String
linkName
;
private
String
cellphone
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment