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
2b6b61e4
Commit
2b6b61e4
authored
Apr 11, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-recommend' into 'master'
Feature recommend See merge request
!2786
parents
fc9df5fa
47faf650
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
PotentialDataController.java
...age/web/controller/potential/PotentialDataController.java
+18
-3
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/potential/PotentialDataController.java
View file @
2b6b61e4
...
...
@@ -10,7 +10,9 @@ import com.gic.clerk.api.dto.ClerkDTO;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.haoban.app.customer.dto.ChildDTO
;
import
com.gic.haoban.app.customer.dto.CustomerDTO
;
import
com.gic.haoban.app.customer.dto.FilterListDTO
;
import
com.gic.haoban.app.customer.dto.MemberInfoListParamsDTO
;
import
com.gic.haoban.app.customer.dto.contact.ContactParamDTO
;
import
com.gic.haoban.app.customer.dto.contact.ContactSumDTO
;
...
...
@@ -202,8 +204,10 @@ public class PotentialDataController {
ClerkDTO
clerkDTO
=
clerkMap
.
get
(
x
.
getClerkId
());
StoreDTO
storeDTO
=
storeMap
.
get
(
x
.
getStoreId
());
if
(!
weekMonth
)
{
// 无归属导购
boolean
unassigned
=
Objects
.
equals
(
x
.
getClerkId
(),
"-1"
)
?
true
:
false
;
// 实时获取当前未建联数 todo
Integer
noConnPotCusNum
=
getNoConnPotCusNum
(
potentialResponse
,
enterpriseId
,
wxEnterpriseId
,
storeDTO
,
clerkDTO
);
Integer
noConnPotCusNum
=
getNoConnPotCusNum
(
potentialResponse
,
enterpriseId
,
wxEnterpriseId
,
storeDTO
,
clerkDTO
,
unassigned
);
x
.
setNoConnPotCusNum
(
noConnPotCusNum
);
}
PotentialContactDetailOverviewVO
overviewVO
=
new
PotentialContactDetailOverviewVO
();
...
...
@@ -222,7 +226,7 @@ public class PotentialDataController {
return
RestResponse
.
successResult
(
res
);
}
private
Integer
getNoConnPotCusNum
(
ServiceResponse
<
PlatformPotentialCustomerOutDTO
>
potentialResponse
,
String
enterpriseId
,
String
wxEnterpriseId
,
StoreDTO
storeDTO
,
ClerkDTO
clerkDTO
)
{
private
Integer
getNoConnPotCusNum
(
ServiceResponse
<
PlatformPotentialCustomerOutDTO
>
potentialResponse
,
String
enterpriseId
,
String
wxEnterpriseId
,
StoreDTO
storeDTO
,
ClerkDTO
clerkDTO
,
boolean
unassigned
)
{
if
(
storeDTO
==
null
&&
clerkDTO
==
null
)
{
return
0
;
}
...
...
@@ -250,10 +254,21 @@ public class PotentialDataController {
params
.
setEnterpriseId
(
enterpriseId
);
params
.
setWxEnterpriseId
(
wxEnterpriseId
);
params
.
setContactParamDTO
(
contact
);
ServiceResponse
<
ContactSumDTO
>
noContactResponse
=
customerService
.
contactMemberSum
(
new
com
.
gic
.
haoban
.
base
.
api
.
common
.
BasePageInfo
(),
params
,
new
MemberInfoListParamsDTO
());
MemberInfoListParamsDTO
memberInfoListParamsDTO
=
new
MemberInfoListParamsDTO
();
// 查询无归属数据
if
(
unassigned
)
{
FilterListDTO
filterListDTO
=
new
FilterListDTO
();
filterListDTO
.
setFilterType
(
"1"
);
ChildDTO
child
=
new
ChildDTO
();
child
.
setId
(
"-1"
);
filterListDTO
.
setChild
(
child
);
memberInfoListParamsDTO
.
setFilterList
(
Lists
.
newArrayList
(
filterListDTO
));
}
ServiceResponse
<
ContactSumDTO
>
noContactResponse
=
customerService
.
contactMemberSum
(
new
com
.
gic
.
haoban
.
base
.
api
.
common
.
BasePageInfo
(),
params
,
memberInfoListParamsDTO
);
return
noContactResponse
.
getResult
()
!=
null
?
noContactResponse
.
getResult
().
getTotalCount
()
:
0
;
}
/**
* 转化明细概览 周/月报
*
...
...
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