Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
2a118786
Commit
2a118786
authored
Mar 18, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通过消息队列批量保存跟进记录
parent
4224ccb5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
19 deletions
+45
-19
ContactFollowBatchQDTO.java
...aoban/manage/api/qdto/contact/ContactFollowBatchQDTO.java
+40
-14
ContactFollowApiServiceImpl.java
...service/out/impl/contact/ContactFollowApiServiceImpl.java
+5
-5
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/qdto/contact/ContactFollowBatchQDTO.java
View file @
2a118786
...
...
@@ -9,7 +9,7 @@ public class ContactFollowBatchQDTO implements Serializable {
/**
* 会员id
*/
private
List
<
String
>
memberId
List
;
private
List
<
MemberFollow
>
member
List
;
/**
* 导购id
*/
...
...
@@ -18,17 +18,13 @@ public class ContactFollowBatchQDTO implements Serializable {
* 跟进记录
*/
private
String
followRemark
;
/**
* 跟进时间
*/
private
Date
followTime
;
public
List
<
String
>
getMemberId
List
()
{
return
member
Id
List
;
public
List
<
MemberFollow
>
getMember
List
()
{
return
memberList
;
}
public
void
setMember
IdList
(
List
<
String
>
memberId
List
)
{
this
.
member
IdList
=
memberId
List
;
public
void
setMember
List
(
List
<
MemberFollow
>
member
List
)
{
this
.
member
List
=
member
List
;
}
public
String
getClerkId
()
{
...
...
@@ -47,11 +43,40 @@ public class ContactFollowBatchQDTO implements Serializable {
this
.
followRemark
=
followRemark
;
}
public
Date
getFollowTime
()
{
return
followTime
;
}
public
static
class
MemberFollow
implements
Serializable
{
/**
* 会员id
*/
private
String
memberId
;
/**
* 跟进时间
*/
private
Date
followTime
;
public
MemberFollow
()
{
}
public
MemberFollow
(
String
memberId
,
Date
followTime
)
{
this
.
memberId
=
memberId
;
this
.
followTime
=
followTime
;
}
public
String
getMemberId
()
{
return
memberId
;
}
public
void
setMemberId
(
String
memberId
)
{
this
.
memberId
=
memberId
;
}
public
Date
getFollowTime
()
{
return
followTime
;
}
public
void
setFollowTime
(
Date
followTime
)
{
this
.
followTime
=
followTime
;
public
void
setFollowTime
(
Date
followTime
)
{
this
.
followTime
=
followTime
;
}
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/contact/ContactFollowApiServiceImpl.java
View file @
2a118786
...
...
@@ -53,8 +53,8 @@ public class ContactFollowApiServiceImpl implements ContactFollowApiService {
return
ServiceResponse
.
success
();
}
ContactFollowBatchQDTO
qdto
=
JSONObject
.
parseObject
(
message
,
ContactFollowBatchQDTO
.
class
);
List
<
String
>
memberIdList
=
qdto
.
getMemberId
List
();
if
(
CollectionUtils
.
isEmpty
(
member
Id
List
))
{
List
<
ContactFollowBatchQDTO
.
MemberFollow
>
memberList
=
qdto
.
getMember
List
();
if
(
CollectionUtils
.
isEmpty
(
memberList
))
{
return
ServiceResponse
.
success
();
}
String
clerkId
=
qdto
.
getClerkId
();
...
...
@@ -65,13 +65,13 @@ public class ContactFollowApiServiceImpl implements ContactFollowApiService {
if
(
clerkDTO
==
null
)
{
return
ServiceResponse
.
success
();
}
List
<
ContactFollowQDTO
>
list
=
member
Id
List
.
stream
().
map
(
x
->
{
List
<
ContactFollowQDTO
>
list
=
memberList
.
stream
().
map
(
x
->
{
ContactFollowQDTO
followQDTO
=
new
ContactFollowQDTO
();
followQDTO
.
setMemberId
(
x
);
followQDTO
.
setMemberId
(
x
.
getMemberId
()
);
followQDTO
.
setClerkId
(
clerkId
);
followQDTO
.
setClerkCode
(
clerkDTO
.
getClerkCode
());
followQDTO
.
setFollowRemark
(
clerkDTO
.
getClerkName
()
+
qdto
.
getFollowRemark
());
followQDTO
.
setFollowTime
(
qdto
.
getFollowTime
());
followQDTO
.
setFollowTime
(
x
.
getFollowTime
());
followQDTO
.
setEnterpriseId
(
clerkDTO
.
getEnterpriseId
());
return
followQDTO
;
}).
collect
(
Collectors
.
toList
());
...
...
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