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
2edf8332
Commit
2edf8332
authored
Jul 28, 2023
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crm需求
省市区导入为必填项
parent
80554387
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
24 deletions
+29
-24
src/main/java/cn/timer/api/controller/crm/CrmController.java
+29
-24
No files found.
src/main/java/cn/timer/api/controller/crm/CrmController.java
View file @
2edf8332
...
...
@@ -1536,11 +1536,11 @@ public class CrmController {
reader
.
addHeaderAlias
(
"官网"
,
"clientUrl"
);
reader
.
addHeaderAlias
(
"邮箱"
,
"clientEmail"
);
reader
.
addHeaderAlias
(
"地址"
,
"address"
);
reader
.
addHeaderAlias
(
"
省
"
,
"province"
);
reader
.
addHeaderAlias
(
"
市
"
,
"city"
);
reader
.
addHeaderAlias
(
"
区
"
,
"district"
);
reader
.
addHeaderAlias
(
"
*省(必填)
"
,
"province"
);
reader
.
addHeaderAlias
(
"
*市(必填)
"
,
"city"
);
reader
.
addHeaderAlias
(
"
*区(必填)
"
,
"district"
);
reader
.
addHeaderAlias
(
"联系人姓名"
,
"linkName"
);
reader
.
addHeaderAlias
(
"
*手机号码(必填)
"
,
"cellphone"
);
reader
.
addHeaderAlias
(
"
手机号码
"
,
"cellphone"
);
reader
.
addHeaderAlias
(
"所属公司"
,
"company"
);
reader
.
addHeaderAlias
(
"性别"
,
"gender"
);
reader
.
addHeaderAlias
(
"职位"
,
"position"
);
...
...
@@ -1584,40 +1584,41 @@ public class CrmController {
String
followuprecord
=
crmClientDataImportVo
.
getFollowuprecord
();
// 跟进记录
CrmClientData
crmClientData
=
new
CrmClientData
();
if
(
province
!=
null
)
{
if
(
StringUtils
.
isNotBlank
(
province
)
)
{
SysRegion
provinceSysRegion
=
SysRegion
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
SysRegion
>().
lambda
()
.
eq
(
SysRegion:
:
getLevel
,
1
).
eq
(
SysRegion:
:
getRegionName
,
province
));
if
(
provinceSysRegion
==
null
)
{
if
(
provinceSysRegion
==
null
)
{
return
ResultUtil
.
error
(
"省名错误"
);
}
else
{
}
else
{
crmClientData
.
setProvinceId
(
provinceSysRegion
.
getKeyId
());
crmClientData
.
setProvince
(
provinceSysRegion
.
getRegionName
());
}
}
else
{
return
ResultUtil
.
error
(
"省为必填项"
);
}
if
(
city
!=
null
)
{
if
(
city
!=
null
)
{
SysRegion
citySysRegion
=
SysRegion
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
SysRegion
>().
lambda
()
.
eq
(
SysRegion:
:
getLevel
,
2
).
eq
(
SysRegion:
:
getRegionName
,
city
));
if
(
citySysRegion
==
null
){
return
ResultUtil
.
error
(
"市名错误"
);
}
else
{
crmClientData
.
setCityId
(
citySysRegion
.
getKeyId
());
crmClientData
.
setCity
(
citySysRegion
.
getRegionName
());
}
if
(
StringUtils
.
isNotBlank
(
city
))
{
SysRegion
citySysRegion
=
SysRegion
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
SysRegion
>().
lambda
()
.
eq
(
SysRegion:
:
getLevel
,
2
).
eq
(
SysRegion:
:
getRegionName
,
city
));
if
(
citySysRegion
==
null
)
{
return
ResultUtil
.
error
(
"市名错误"
);
}
else
{
crmClientData
.
setCityId
(
citySysRegion
.
getKeyId
());
crmClientData
.
setCity
(
citySysRegion
.
getRegionName
());
}
}
else
{
return
ResultUtil
.
error
(
"市为必填项"
);
}
if
(
district
!=
null
)
{
if
(
district
!=
null
)
{
if
(
StringUtils
.
isNotBlank
(
district
))
{
SysRegion
districtSysRegion
=
SysRegion
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
SysRegion
>().
lambda
()
.
eq
(
SysRegion:
:
getLevel
,
3
).
eq
(
SysRegion:
:
getRegionName
,
district
));
if
(
districtSysRegion
==
null
)
{
if
(
districtSysRegion
==
null
)
{
return
ResultUtil
.
error
(
"区名错误"
);
}
else
{
}
else
{
crmClientData
.
setDistrictId
(
districtSysRegion
.
getKeyId
());
crmClientData
.
setDistrict
(
districtSysRegion
.
getRegionName
());
}
}
}
else
{
return
ResultUtil
.
error
(
"区为必填项"
);
}
// 业务组
...
...
@@ -1685,7 +1686,11 @@ public class CrmController {
crmClientData
.
setClientTypeName
(
clientTypeName
);
crmClientData
.
setClientCellphone
(
clientCellphone
);
if
(
StringUtils
.
isNotBlank
(
clientCellphone
))
{
crmClientData
.
setClientCellphone
(
clientCellphone
);
}
else
{
return
ResultUtil
.
error
(
"手机号码为必填项 "
);
}
crmClientData
.
setClientTelephone
(
clientTelephone
);
crmClientData
.
setClientUrl
(
clientUrl
);
crmClientData
.
setClientEmail
(
clientEmail
);
...
...
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