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
774deefe
Commit
774deefe
authored
Mar 26, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量添加跟进记录
parent
5200ae6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
ContactController.java
...an/manage/web/controller/potential/ContactController.java
+14
-3
ContactFollowQO.java
...com/gic/haoban/manage/web/qo/contact/ContactFollowQO.java
+7
-6
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/potential/ContactController.java
View file @
774deefe
...
...
@@ -15,11 +15,15 @@ import com.gic.haoban.manage.api.service.contact.ContactLogApiService;
import
com.gic.haoban.manage.web.qo.contact.ContactFollowPageQO
;
import
com.gic.haoban.manage.web.qo.contact.ContactFollowQO
;
import
com.gic.haoban.manage.web.qo.contact.ContactLogQO
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
* 潜客雷达-跟进记录
*/
...
...
@@ -39,9 +43,16 @@ public class ContactController {
*/
@RequestMapping
(
path
=
"/follow"
)
public
RestResponse
<
Void
>
saveFollow
(
@RequestBody
ContactFollowQO
contactFollowQO
)
{
ContactFollowQDTO
followQDTO
=
EntityUtil
.
changeEntityNew
(
ContactFollowQDTO
.
class
,
contactFollowQO
);
followQDTO
.
setFollowTime
(
DateUtil
.
date
());
ServiceResponse
<
Void
>
serviceResponse
=
contactFollowApiService
.
saveFollow
(
followQDTO
);
List
<
String
>
memberIdList
=
contactFollowQO
.
getMemberIdList
();
if
(
CollectionUtils
.
isEmpty
(
memberIdList
))
{
return
RestResponse
.
successResult
();
}
List
<
ContactFollowQDTO
>
list
=
memberIdList
.
stream
().
map
(
x
->
{
ContactFollowQDTO
followQDTO
=
EntityUtil
.
changeEntityNew
(
ContactFollowQDTO
.
class
,
contactFollowQO
);
followQDTO
.
setMemberId
(
x
);
return
followQDTO
;
}).
collect
(
Collectors
.
toList
());
ServiceResponse
<
Void
>
serviceResponse
=
contactFollowApiService
.
saveBatchFollow
(
list
);
if
(!
serviceResponse
.
isSuccess
())
{
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/qo/contact/ContactFollowQO.java
View file @
774deefe
...
...
@@ -8,9 +8,10 @@ import java.util.List;
public
class
ContactFollowQO
{
/**
* 会员id
* 会员id
列表
*/
private
String
memberId
;
private
List
<
String
>
memberIdList
;
/**
* 导购id
*/
...
...
@@ -33,12 +34,12 @@ public class ContactFollowQO {
*/
private
String
enterpriseId
;
public
String
getMemberId
()
{
return
memberId
;
public
List
<
String
>
getMemberIdList
()
{
return
memberId
List
;
}
public
void
setMemberId
(
String
memberId
)
{
this
.
memberId
=
memberId
;
public
void
setMemberId
List
(
List
<
String
>
memberIdList
)
{
this
.
memberId
List
=
memberIdList
;
}
public
String
getClerkId
()
{
...
...
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