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
bb5fdf25
Commit
bb5fdf25
authored
Jun 12, 2020
by
邓实川
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增联系人优化
parent
18786b51
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/main/java/cn/timer/api/controller/crm/CrmController.java
+3
-3
No files found.
src/main/java/cn/timer/api/controller/crm/CrmController.java
View file @
bb5fdf25
...
@@ -479,7 +479,6 @@ public class CrmController {
...
@@ -479,7 +479,6 @@ public class CrmController {
crmClientDatas
=
getCilentFollowOvertime
(
empNum
,
orgCode
,
groupId
,
status
);
crmClientDatas
=
getCilentFollowOvertime
(
empNum
,
orgCode
,
groupId
,
status
);
else
else
return
ResultUtil
.
error
(
"查询失败"
);
return
ResultUtil
.
error
(
"查询失败"
);
// TODO 排序
Collections
.
sort
(
crmClientDatas
,
Comparator
.
comparing
(
CrmClientData:
:
getCreateTime
).
reversed
());
// 按时间降序排序
Collections
.
sort
(
crmClientDatas
,
Comparator
.
comparing
(
CrmClientData:
:
getCreateTime
).
reversed
());
// 按时间降序排序
return
ResultUtil
.
data
(
crmClientDatas
,
"查询成功"
);
return
ResultUtil
.
data
(
crmClientDatas
,
"查询成功"
);
}
}
...
@@ -562,9 +561,10 @@ public class CrmController {
...
@@ -562,9 +561,10 @@ public class CrmController {
@PostMapping
(
"addCilentLinkMan"
)
@PostMapping
(
"addCilentLinkMan"
)
@Transactional
@Transactional
@ApiOperation
(
value
=
"新增/编辑客户联系人"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"新增/编辑客户联系人"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
public
Result
<
Void
>
addCilentLinkMan
(
@CurrentUser
UserBean
userBean
,
CrmClientContacts
crmClientContacts
)
{
public
Result
<
Void
>
addCilentLinkMan
(
@CurrentUser
UserBean
userBean
,
@RequestBody
CrmClientContacts
crmClientContacts
)
{
if
(
crmClientContacts
.
getId
()
==
null
)
{
if
(
crmClientContacts
.
getId
()
==
null
)
{
Integer
num
=
CrmClientData
.
builder
().
build
().
selectById
().
getContactsNum
();
Integer
num
=
CrmClientData
.
builder
().
id
(
crmClientContacts
.
getCid
()).
build
().
selectById
().
getContactsNum
();
CrmClientData
.
builder
().
id
(
crmClientContacts
.
getCid
()).
contactsNum
(++
num
).
build
().
updateById
();
CrmClientData
.
builder
().
id
(
crmClientContacts
.
getCid
()).
contactsNum
(++
num
).
build
().
updateById
();
}
}
if
(
crmClientContacts
.
insertOrUpdate
())
if
(
crmClientContacts
.
insertOrUpdate
())
...
...
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