Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-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 cb957087
authored
Dec 15, 2025
by
张富康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
流量贡献排行榜
1 parent
fd375697
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
src/main/java/cn/com/glsx/dj/controller/UsedCarDataStatsController.java
src/main/java/cn/com/glsx/dj/converter/FlowContributionRankingResponseConvert.java
src/main/java/cn/com/glsx/dj/response/UserdCarDataStats/FlowContributionRankingResponse.java
src/main/java/cn/com/glsx/dj/controller/UsedCarDataStatsController.java
View file @
cb95708
...
@@ -134,7 +134,7 @@ public class UsedCarDataStatsController {
...
@@ -134,7 +134,7 @@ public class UsedCarDataStatsController {
@ApiOperation
(
"流量贡献排行榜"
)
@ApiOperation
(
"流量贡献排行榜"
)
@ServiceMethod
(
method
=
"dj.api.used.car.data.stats.flow.contribution.ranking"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"dj.api.used.car.data.stats.flow.contribution.ranking"
,
needInSession
=
NeedInSessionType
.
YES
)
public
RopResponse
<
FlowContributionRankingResponse
>
getFlowContributionRanking
(
FlowContributionRankingRequest
request
)
{
public
RopResponse
<
List
<
FlowContributionRankingResponse
>
>
getFlowContributionRanking
(
FlowContributionRankingRequest
request
)
{
FlowContributionRankingReq
flowContributionRankingReq
=
CommonUtil
.
convertRequest
(
FlowContributionRankingReq
.
class
);
FlowContributionRankingReq
flowContributionRankingReq
=
CommonUtil
.
convertRequest
(
FlowContributionRankingReq
.
class
);
boolean
b
=
CommonUtil
.
validLeadRole
();
boolean
b
=
CommonUtil
.
validLeadRole
();
if
(!
b
)
{
if
(!
b
)
{
...
@@ -142,8 +142,8 @@ public class UsedCarDataStatsController {
...
@@ -142,8 +142,8 @@ public class UsedCarDataStatsController {
}
}
flowContributionRankingReq
.
setRole
(
CommonUtil
.
getLoginUserInfo
().
getLoginRole
());
flowContributionRankingReq
.
setRole
(
CommonUtil
.
getLoginUserInfo
().
getLoginRole
());
flowContributionRankingReq
.
setRegionId
(
CommonUtil
.
getLoginUserInfo
().
getRegionId
());
flowContributionRankingReq
.
setRegionId
(
CommonUtil
.
getLoginUserInfo
().
getRegionId
());
RpcResponse
<
FlowContributionRankingRes
>
flowContributionRanking
=
usedCarDataStatsRemote
.
getFlowContributionRanking
(
flowContributionRankingReq
);
RpcResponse
<
List
<
FlowContributionRankingRes
>
>
flowContributionRanking
=
usedCarDataStatsRemote
.
getFlowContributionRanking
(
flowContributionRankingReq
);
return
CommonUtil
.
convertRopResponse
(
flowContributionRanking
,
FlowContributionRankingResponseConvert
.
INSTANCE
::
toFlowContributionRankingResponse
);
return
CommonUtil
.
convertRopResponse
(
flowContributionRanking
,
FlowContributionRankingResponseConvert
.
INSTANCE
::
to
List
FlowContributionRankingResponse
);
}
}
...
...
src/main/java/cn/com/glsx/dj/converter/FlowContributionRankingResponseConvert.java
View file @
cb95708
...
@@ -5,10 +5,14 @@ import cn.com.glsx.dj.response.UserdCarDataStats.FlowContributionRankingResponse
...
@@ -5,10 +5,14 @@ import cn.com.glsx.dj.response.UserdCarDataStats.FlowContributionRankingResponse
import
org.mapstruct.Mapper
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.factory.Mappers
;
import
org.mapstruct.factory.Mappers
;
import
java.util.List
;
@Mapper
@Mapper
public
interface
FlowContributionRankingResponseConvert
{
public
interface
FlowContributionRankingResponseConvert
{
FlowContributionRankingResponseConvert
INSTANCE
=
Mappers
.
getMapper
(
FlowContributionRankingResponseConvert
.
class
);
FlowContributionRankingResponseConvert
INSTANCE
=
Mappers
.
getMapper
(
FlowContributionRankingResponseConvert
.
class
);
FlowContributionRankingResponse
toFlowContributionRankingResponse
(
FlowContributionRankingRes
source
);
FlowContributionRankingResponse
toFlowContributionRankingResponse
(
FlowContributionRankingRes
source
);
List
<
FlowContributionRankingResponse
>
toListFlowContributionRankingResponse
(
List
<
FlowContributionRankingRes
>
source
);
}
}
src/main/java/cn/com/glsx/dj/response/UserdCarDataStats/FlowContributionRankingResponse.java
View file @
cb95708
...
@@ -27,6 +27,12 @@ public class FlowContributionRankingResponse implements Serializable {
...
@@ -27,6 +27,12 @@ public class FlowContributionRankingResponse implements Serializable {
private
String
userName
;
private
String
userName
;
/**
/**
* 手机号
*/
@ApiModelProperty
(
notes
=
"手机号"
)
private
String
phone
;
/**
* 车辆数量
* 车辆数量
*/
*/
@ApiModelProperty
(
notes
=
"车辆数量"
)
@ApiModelProperty
(
notes
=
"车辆数量"
)
...
...
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