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
1
Merge Requests
1
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
bc1d410d
Commit
bc1d410d
authored
Apr 11, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询无归属数据
parent
2b6523bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
PotentialDataController.java
...age/web/controller/potential/PotentialDataController.java
+12
-3
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/potential/PotentialDataController.java
View file @
bc1d410d
...
@@ -202,8 +202,10 @@ public class PotentialDataController {
...
@@ -202,8 +202,10 @@ public class PotentialDataController {
ClerkDTO
clerkDTO
=
clerkMap
.
get
(
x
.
getClerkId
());
ClerkDTO
clerkDTO
=
clerkMap
.
get
(
x
.
getClerkId
());
StoreDTO
storeDTO
=
storeMap
.
get
(
x
.
getStoreId
());
StoreDTO
storeDTO
=
storeMap
.
get
(
x
.
getStoreId
());
if
(!
weekMonth
)
{
if
(!
weekMonth
)
{
// 无归属导购
boolean
unassigned
=
Objects
.
equals
(
x
.
getClerkId
(),
"-1"
)
?
true
:
false
;
// 实时获取当前未建联数 todo
// 实时获取当前未建联数 todo
Integer
noConnPotCusNum
=
getNoConnPotCusNum
(
potentialResponse
,
enterpriseId
,
wxEnterpriseId
,
storeDTO
,
clerkDTO
);
Integer
noConnPotCusNum
=
getNoConnPotCusNum
(
potentialResponse
,
enterpriseId
,
wxEnterpriseId
,
storeDTO
,
clerkDTO
,
unassigned
);
x
.
setNoConnPotCusNum
(
noConnPotCusNum
);
x
.
setNoConnPotCusNum
(
noConnPotCusNum
);
}
}
PotentialContactDetailOverviewVO
overviewVO
=
new
PotentialContactDetailOverviewVO
();
PotentialContactDetailOverviewVO
overviewVO
=
new
PotentialContactDetailOverviewVO
();
...
@@ -222,7 +224,7 @@ public class PotentialDataController {
...
@@ -222,7 +224,7 @@ public class PotentialDataController {
return
RestResponse
.
successResult
(
res
);
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
)
{
if
(
storeDTO
==
null
&&
clerkDTO
==
null
)
{
return
0
;
return
0
;
}
}
...
@@ -250,7 +252,14 @@ public class PotentialDataController {
...
@@ -250,7 +252,14 @@ public class PotentialDataController {
params
.
setEnterpriseId
(
enterpriseId
);
params
.
setEnterpriseId
(
enterpriseId
);
params
.
setWxEnterpriseId
(
wxEnterpriseId
);
params
.
setWxEnterpriseId
(
wxEnterpriseId
);
params
.
setContactParamDTO
(
contact
);
params
.
setContactParamDTO
(
contact
);
ServiceResponse
<
ContactSumDTO
>
noContactResponse
=
customerService
.
contactMemberSum
(
new
com
.
gic
.
haoban
.
base
.
api
.
common
.
BasePageInfo
(),
params
,
new
MemberInfoListParamsDTO
());
String
searchParams
=
""
;
// 查询无归属数据
if
(
unassigned
)
{
searchParams
=
"{\\\"filterList\\\":[{\\\"child\\\":{\\\"id\\\":\\\"\\\"},\\\"filterType\\\":\\\"4\\\"},{\\\"child\\\":{\\\"id\\\":\\\"-1\\\"},\\\"filterType\\\":\\\"1\\\"},{\\\"child\\\":{\\\"id\\\":\\\"\\\"},\\\"filterType\\\":\\\"2\\\"},{\\\"child\\\":{\\\"id\\\":\\\"\\\"},\\\"filterType\\\":\\\"3\\\"},{\\\"child\\\":{\\\"id\\\":\\\"\\\"},\\\"filterType\\\":\\\"5\\\"},{\\\"child\\\":{\\\"id\\\":\\\"\\\"},\\\"filterType\\\":\\\"7\\\"},{\\\"child\\\":{\\\"id\\\":\\\"\\\"},\\\"filterType\\\":\\\"8\\\"},{\\\"child\\\":{\\\"id\\\":\\\"\\\"},\\\"filterType\\\":\\\"6\\\"}],\\\"sortCode\\\":\\\"attentionDate_desc\\\",\\\"phoneNameCard\\\":\\\"\\\"}"
;
}
MemberInfoListParamsDTO
memberInfoListParamsDTO
=
com
.
gic
.
haoban
.
common
.
utils
.
StringUtil
.
getBean
(
searchParams
,
MemberInfoListParamsDTO
.
class
);
memberInfoListParamsDTO
=
Objects
.
isNull
(
memberInfoListParamsDTO
)
?
new
MemberInfoListParamsDTO
()
:
memberInfoListParamsDTO
;
ServiceResponse
<
ContactSumDTO
>
noContactResponse
=
customerService
.
contactMemberSum
(
new
com
.
gic
.
haoban
.
base
.
api
.
common
.
BasePageInfo
(),
params
,
memberInfoListParamsDTO
);
return
noContactResponse
.
getResult
()
!=
null
?
noContactResponse
.
getResult
().
getTotalCount
()
:
0
;
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