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
cab0851e
Commit
cab0851e
authored
Apr 10, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周月报不用实时查当前未建联数
parent
865d4d31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
7 deletions
+26
-7
PotentialDataController.java
...age/web/controller/potential/PotentialDataController.java
+14
-7
PotentialDataAdaptor.java
...eb/controller/potential/adaptor/PotentialDataAdaptor.java
+12
-0
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/potential/PotentialDataController.java
View file @
cab0851e
...
...
@@ -184,7 +184,14 @@ public class PotentialDataController {
return
RestResponse
.
successResult
(
new
Page
<>());
}
List
<
String
>
storeIds
=
getStoreIds
(
potentialOverviewQO
).
getValue
();
Page
<
PotentialContactOverviewVO
>
page
=
potentialDataAdaptor
.
pagePotentialContactOverview
(
potentialOverviewQO
,
storeIds
);
Page
<
PotentialContactOverviewVO
>
page
=
null
;
// 是否周月报 周月报不用实时查当前未建联数
boolean
weekMonth
=
StringUtils
.
isNotBlank
(
potentialOverviewQO
.
getBizDate
());
if
(
weekMonth
)
{
page
=
potentialDataAdaptor
.
pagePotentialContactOverview
(
potentialOverviewQO
,
storeIds
);
}
else
{
page
=
potentialDataAdaptor
.
pagePotentialContactDetail
(
potentialOverviewQO
,
storeIds
);
}
List
<
PotentialContactOverviewVO
>
result
=
page
.
getResult
();
List
<
PotentialContactDetailOverviewVO
>
list
=
null
;
if
(
CollectionUtils
.
isNotEmpty
(
result
))
{
...
...
@@ -194,11 +201,11 @@ public class PotentialDataController {
list
=
result
.
stream
().
map
(
x
->
{
ClerkDTO
clerkDTO
=
clerkMap
.
get
(
x
.
getClerkId
());
StoreDTO
storeDTO
=
storeMap
.
get
(
x
.
getStoreId
());
// 实时获取当前未建联数 todo
Integer
potCusNum
=
get
PotCusNum
(
potentialResponse
,
enterpriseId
,
wxEnterpriseId
,
storeDTO
.
getStoreId
(),
clerkDTO
);
x
.
setPotCusNum
(
p
otCusNum
);
if
(!
weekMonth
)
{
// 实时获取当前未建联数 todo
Integer
noConnPotCusNum
=
getNoConn
PotCusNum
(
potentialResponse
,
enterpriseId
,
wxEnterpriseId
,
storeDTO
.
getStoreId
(),
clerkDTO
);
x
.
setNoConnPotCusNum
(
noConnP
otCusNum
);
}
PotentialContactDetailOverviewVO
overviewVO
=
new
PotentialContactDetailOverviewVO
();
overviewVO
.
setContact
(
x
);
overviewVO
.
setStore
(
storeDTO
);
...
...
@@ -215,7 +222,7 @@ public class PotentialDataController {
return
RestResponse
.
successResult
(
res
);
}
private
Integer
getPotCusNum
(
ServiceResponse
<
PlatformPotentialCustomerOutDTO
>
potentialResponse
,
String
enterpriseId
,
String
wxEnterpriseId
,
String
storeId
,
ClerkDTO
clerkDTO
)
{
private
Integer
get
NoConn
PotCusNum
(
ServiceResponse
<
PlatformPotentialCustomerOutDTO
>
potentialResponse
,
String
enterpriseId
,
String
wxEnterpriseId
,
String
storeId
,
ClerkDTO
clerkDTO
)
{
if
(
StringUtils
.
isBlank
(
storeId
)
&&
clerkDTO
==
null
)
{
return
0
;
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/potential/adaptor/PotentialDataAdaptor.java
View file @
cab0851e
...
...
@@ -30,6 +30,10 @@ public class PotentialDataAdaptor {
*/
private
static
final
String
POTENTIAL_CONTACT_OVERVIEW
=
"data_mkt_pos_cut_haoban_overview"
;
/**
* 潜客建联-详情
*/
private
static
final
String
POTENTIAL_CONTACT_DETAIL
=
"data_mkt_pos_cut_haoban_pos"
;
/**
* 潜客转化
*/
private
static
final
String
POTENTIAL_CONV_OVERVIEW
=
"data_mkt_pos_cut_haoban_conv"
;
...
...
@@ -139,6 +143,14 @@ public class PotentialDataAdaptor {
}
/**
* 潜客建联明细概览
* @return
*/
public
Page
<
PotentialContactOverviewVO
>
pagePotentialContactDetail
(
PotentialOverviewQO
potentialOverviewQO
,
List
<
String
>
storeIds
)
{
return
fetchPageData
(
potentialOverviewQO
,
storeIds
,
POTENTIAL_CONTACT_DETAIL
,
PotentialContactOverviewVO
.
class
);
}
/**
* 潜客转化明细概览
* @return
*/
...
...
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