Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
c80cae7a
Commit
c80cae7a
authored
Nov 10, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跟进修改状态接口调整
parent
6e461c76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
17 deletions
+2
-17
CustomerFollowupServiceImpl.java
...service/customerFollowup/CustomerFollowupServiceImpl.java
+2
-14
CustomerFollowupUpdateStatusReqVO.java
...o/customerFollowup/CustomerFollowupUpdateStatusReqVO.java
+0
-3
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customerFollowup/CustomerFollowupServiceImpl.java
View file @
c80cae7a
...
...
@@ -203,20 +203,9 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu
@Override
public
void
updateFollowupStatus
(
CustomerFollowupUpdateStatusReqVO
updateStatusReqVO
)
{
Long
updateId
=
updateStatusReqVO
.
getId
();
List
<
Long
>
ids
=
updateStatusReqVO
.
getIds
();
List
<
Long
>
idList
=
new
ArrayList
<>();
// id + ids 到idList
if
(
updateId
!=
null
)
{
idList
.
add
(
updateId
);
}
if
(
CollectionUtil
.
isNotEmpty
(
ids
))
{
idList
.
addAll
(
ids
);
}
for
(
Long
id
:
idList
)
{
for
(
Long
id
:
ids
)
{
CustomerFollowupDO
customerFollowupDO
=
followupMapper
.
selectById
(
id
);
if
(
customerFollowupDO
==
null
)
{
throw
exception
(
FOLLOWUP_NOT_EXISTS
);
...
...
@@ -227,7 +216,7 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu
}
}
for
(
Long
id
:
id
List
)
{
for
(
Long
id
:
id
s
)
{
CustomerFollowupDO
customerFollowupDO
=
followupMapper
.
selectById
(
id
);
customerFollowupDO
.
setStatus
(
updateStatusReqVO
.
getStatus
());
...
...
@@ -238,7 +227,6 @@ public class CustomerFollowupServiceImpl extends AbstractService<CustomerFollowu
if
(
customerId
!=
null
)
{
CustomerDO
customer
=
customerMapper
.
selectById
(
customerId
);
if
(
customer
!=
null
)
{
// 插入日志
LoginUser
loginUser
=
SecurityFrameworkUtils
.
getLoginUser
();
//保存客户捞取记录
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customerFollowup/CustomerFollowupUpdateStatusReqVO.java
View file @
c80cae7a
...
...
@@ -14,9 +14,6 @@ import java.util.List;
@ToString
(
callSuper
=
true
)
public
class
CustomerFollowupUpdateStatusReqVO
{
@ApiModelProperty
(
value
=
"主键"
,
required
=
true
)
@NotNull
(
message
=
"主键不能为空"
)
private
Long
id
;
//ids
@ApiModelProperty
(
value
=
"主键列表"
,
required
=
true
)
...
...
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