Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-pe-analysis
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit baa1c7db
authored
Jan 05, 2026
by
张富康
1
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/v5.5.1' into v5.5.1
2 parents
8a9a747b
ca2d0bc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
2 deletions
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/service/BusinessSceneAnalysisService.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/service/BusinessSceneAnalysisService.java
View file @
baa1c7d
...
...
@@ -111,6 +111,8 @@ public class BusinessSceneAnalysisService {
*/
public
SceneOutputResponse
sceneOutput
(
SceneBaseReq
req
)
{
SceneOutputResponse
res
=
new
SceneOutputResponse
();
req
.
setMerchantIds
(
getMerchantIdPermission
(
req
));
// 查询总产值
DataBizQueryParamsDTO
queryParams
=
req
.
convertQueryParam
();
queryParams
.
setBrandIds
(
dataStatsConfig
.
defaultBrandId
);
...
...
@@ -137,6 +139,26 @@ public class BusinessSceneAnalysisService {
}
/**
* 查询产值门店号列表
* @param req
* @return
*/
private
List
<
Integer
>
getMerchantIdPermission
(
SceneBaseReq
req
)
{
DataBizQueryParamsDTO
queryParams
=
req
.
convertQueryParam
();
queryParams
.
setBrandIds
(
dataStatsConfig
.
defaultBrandId
);
queryParams
.
setItemCodes
(
DataStatsConstants
.
ITEM_CODE_A036
);
queryParams
.
setExts
(
"merchantIds"
);
List
<
DataBusinessDTO
>
totalOutputList
=
businessAnalysisService
.
getTotalOutputGroupByMerchant
(
queryParams
);
if
(
CollectionUtils
.
isEmpty
(
totalOutputList
))
{
return
Lists
.
newArrayList
(-
1
);
}
List
<
Integer
>
merchantIds
=
totalOutputList
.
stream
()
.
map
(
p
->
p
.
getMerchantId
()).
distinct
().
collect
(
Collectors
.
toList
());
log
.
info
(
"查询产值门店权限:{}"
,
merchantIds
);
return
merchantIds
;
}
/**
* 查询门店产值目标
*/
private
Map
<
Integer
,
BigDecimal
>
queryStoreTargetOutput
(
SceneBaseReq
req
)
{
...
...
@@ -217,7 +239,7 @@ public class BusinessSceneAnalysisService {
// 查询目标产值(周期=月时才展示)
Map
<
Date
,
BigDecimal
>
monthTargetOutputMap
=
new
HashMap
<>();
if
(
queryParams
.
getDateType
()
==
2
&&
req
.
isWithTargetRatio
())
{
List
<
Integer
>
merchantIds
=
req
.
getMerchantIds
(
);
List
<
Integer
>
merchantIds
=
getMerchantIdPermission
(
req
);
byte
businessType
=
req
.
convertToBusinessType
(
queryParams
.
getBizs
());
RpcPagination
<
MerchantOutputTargetConfigDTO
>
pagination
=
new
RpcPagination
<>();
pagination
.
setPageSize
(
Integer
.
MAX_VALUE
);
...
...
@@ -746,6 +768,8 @@ public class BusinessSceneAnalysisService {
*/
public
List
<
TrafficSummaryResponse
>
trafficSummary
(
SceneBaseReq
req
)
{
List
<
TrafficSummaryResponse
>
res
=
new
ArrayList
<>();
req
.
setMerchantIds
(
getMerchantIdPermission
(
req
));
// 查询新车交付数
DataBizQueryParamsDTO
queryParams
=
req
.
convertQueryParam
();
queryParams
.
setBrandIds
(
dataStatsConfig
.
defaultBrandId
);
...
...
@@ -1143,6 +1167,8 @@ public class BusinessSceneAnalysisService {
* 行数据:产值、达成率、触客率、转化率、渗透率、升级客单价、平均客单价、门店状态
*/
public
List
<
StoreListResponse
>
storeList
(
SceneBaseReq
req
)
{
req
.
setMerchantIds
(
getMerchantIdPermission
(
req
));
// 查询各个指标
DataBizQueryParamsDTO
queryParams
=
req
.
convertQueryParam
();
queryParams
.
setBrandIds
(
dataStatsConfig
.
defaultBrandId
);
...
...
@@ -1203,7 +1229,6 @@ public class BusinessSceneAnalysisService {
break
;
}
});
// 计算达成率
queryStoreTargetOutput
(
req
).
forEach
((
merchantId
,
outputTargetValue
)
->
{
StoreListResponse
item
=
resMap
.
get
(
merchantId
);
...
...
@@ -1408,6 +1433,9 @@ public class BusinessSceneAnalysisService {
break
;
}
});
// 员工过滤产值为null的
empMap
.
values
().
removeIf
(
p
->
p
.
getPersonalOutputValue
()
==
null
);
// 查询指标(门店维度)
queryParams
.
setExts
(
""
);
queryParams
.
setStaffIds
(
null
);
...
...
@wangxw1
王欣伟
@wangxw1
commented
Jan 05, 2026
Master
Auto Review Result: 关注的文件没有修改
Write
Preview
Markdown
is supported
Attach a file
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 post a comment