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
635ef68f
Commit
635ef68f
authored
Jun 12, 2020
by
邓实川
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复客户跟进 字段类型
parent
2e277b5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/main/java/cn/timer/api/bean/crm/CrmClientFollow.java
+1
-1
src/main/java/cn/timer/api/controller/crm/CrmController.java
+7
-3
No files found.
src/main/java/cn/timer/api/bean/crm/CrmClientFollow.java
View file @
635ef68f
...
...
@@ -60,7 +60,7 @@ public class CrmClientFollow extends Model<CrmClientFollow> {
private
Integer
content
;
@ApiModelProperty
(
value
=
"客户数据状态 0-无 1-潜在 2-意向 3-签约 4-合作中 5-已封档"
)
private
String
clientStatus
;
private
Integer
clientStatus
;
@ApiModelProperty
(
value
=
"联系人姓名"
)
private
String
name
;
...
...
src/main/java/cn/timer/api/controller/crm/CrmController.java
View file @
635ef68f
...
...
@@ -73,7 +73,7 @@ public class CrmController {
@Autowired
private
CrmClientDataMapper
crmClientDataMapper
;
@Autowired
private
CrmClientContactsMapper
crmClientContactsMapper
;
...
...
@@ -591,7 +591,10 @@ public class CrmController {
if
(
cid
==
null
)
return
ResultUtil
.
error
(
"删除失败,请传入客户id"
);
Integer
num
=
CrmClientData
.
builder
().
id
(
cid
).
build
().
selectById
().
getContactsNum
();
CrmClientData
.
builder
().
id
(
cid
).
contactsNum
(--
num
).
build
().
updateById
();
if
(--
num
<
0
)
{
return
ResultUtil
.
error
(
"删除失败,已经没有可以删的联系人了"
);
}
CrmClientData
.
builder
().
id
(
cid
).
contactsNum
(
num
).
build
().
updateById
();
if
(
crmClientContactsMapper
.
deleteById
(
id
)
>
0
)
return
ResultUtil
.
success
(
"删除成功"
);
return
ResultUtil
.
error
(
"删除失败"
);
...
...
@@ -645,7 +648,8 @@ public class CrmController {
Integer
orgCode
=
getOrgCode
(
userBean
);
Integer
empNum
=
getEmpNum
(
userBean
);
CrmClientData
.
builder
().
id
(
crmClientFollow
.
getCid
()).
lastFollowTime
(
new
Date
()).
build
().
updateById
();
// 更新客户最近跟进时间
CrmClientData
.
builder
().
id
(
crmClientFollow
.
getCid
()).
clientStatus
(
crmClientFollow
.
getClientStatus
())
.
lastFollowTime
(
new
Date
()).
build
().
updateById
();
// 更新客户最近跟进时间
crmClientFollow
.
setOrgCode
(
orgCode
);
crmClientFollow
.
setCreateUserName
(
getEmpName
(
orgCode
,
empNum
));
...
...
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