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
5d2964bb
Commit
5d2964bb
authored
Aug 27, 2020
by
ilal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
009b32fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
19 deletions
+24
-19
src/main/java/cn/timer/api/controller/crm/CrmController.java
+24
-19
No files found.
src/main/java/cn/timer/api/controller/crm/CrmController.java
View file @
5d2964bb
...
@@ -1480,26 +1480,31 @@ public class CrmController {
...
@@ -1480,26 +1480,31 @@ public class CrmController {
crmClientData
.
insert
();
crmClientData
.
insert
();
Integer
cid
=
crmClientData
.
getId
();
Integer
cid
=
crmClientData
.
getId
();
CrmClientContacts
contacts
=
new
CrmClientContacts
();
if
(
linkname
!=
null
&&
linkcellphone
!=
null
)
{
contacts
.
setName
(
linkname
);
CrmClientContacts
contacts
=
new
CrmClientContacts
();
contacts
.
setCellphone
(
linkcellphone
);
contacts
.
setName
(
linkname
);
contacts
.
setCompany
(
linkcompany
);
contacts
.
setCellphone
(
linkcellphone
);
if
(
linkgender
==
"女"
)
contacts
.
setCompany
(
linkcompany
);
contacts
.
setGender
(
0
);
if
((
"女"
).
equals
(
linkgender
))
else
if
(
linkgender
==
"男"
)
contacts
.
setGender
(
0
);
contacts
.
setGender
(
1
);
else
if
((
"男"
).
equals
(
linkgender
))
else
contacts
.
setGender
(
1
);
contacts
.
setGender
(
null
);
else
contacts
.
setPosition
(
linkposition
);
contacts
.
setGender
(
null
);
contacts
.
setTelephone
(
linktelephone
);
contacts
.
setPosition
(
linkposition
);
contacts
.
setEmail
(
linkemail
);
contacts
.
setTelephone
(
linktelephone
);
contacts
.
setAddress
(
linkaddress
);
contacts
.
setEmail
(
linkemail
);
if
(!(
linkname
==
null
&&
linkcellphone
==
null
&&
linkcompany
==
null
&&
linkgender
==
null
contacts
.
setAddress
(
linkaddress
);
&&
linkposition
==
null
&&
linktelephone
==
null
&&
linkemail
==
null
&&
linkaddress
==
null
))
{
if
(!(
linkname
==
null
&&
linkcellphone
==
null
&&
linkcompany
==
null
&&
linkgender
==
null
contacts
.
setCid
(
cid
);
&&
linkposition
==
null
&&
linktelephone
==
null
&&
linkemail
==
null
&&
linkaddress
==
null
))
{
contacts
.
insert
();
contacts
.
setCid
(
cid
);
contacts
.
insert
();
}
}
}
}
}
return
ResultUtil
.
success
(
"导入成功"
);
return
ResultUtil
.
success
(
"导入成功"
);
}
}
...
...
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