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 1847b65c
authored
Dec 11, 2025
by
张富康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
整体收车成本分布接口抽取
1 parent
184b418e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
84 additions
and
41 deletions
pom.xml
src/main/java/cn/com/glsx/dj/controller/UsedCarDataStatsController.java
src/main/java/cn/com/glsx/dj/converter/ReceivingCostDistributionResponseConvert.java
src/main/java/cn/com/glsx/dj/response/UserdCarDataStats/OperationStatusResponse.java
src/main/java/cn/com/glsx/dj/response/UserdCarDataStats/ReceivingCostDistributionResponse.java
pom.xml
View file @
1847b65
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<dependency>
<dependency>
<groupId>
cn.com.glsx.merchants
</groupId>
<groupId>
cn.com.glsx.merchants
</groupId>
<artifactId>
platform-merchants-api
</artifactId>
<artifactId>
platform-merchants-api
</artifactId>
<version>
4.39.0
-SNAPSHOT
</version>
<version>
5.5.1
-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
cn.com.glsx.scrm
</groupId>
<groupId>
cn.com.glsx.scrm
</groupId>
...
...
src/main/java/cn/com/glsx/dj/controller/UsedCarDataStatsController.java
View file @
1847b65
...
@@ -37,6 +37,14 @@ public class UsedCarDataStatsController {
...
@@ -37,6 +37,14 @@ public class UsedCarDataStatsController {
return
CommonUtil
.
convertRopResponse
(
operationStatus
,
OperationStatusResponseConvert
.
INSTANCE
::
toOperationStatusResponse
);
return
CommonUtil
.
convertRopResponse
(
operationStatus
,
OperationStatusResponseConvert
.
INSTANCE
::
toOperationStatusResponse
);
}
}
@ApiOperation
(
"整体收车成本分布"
)
@ServiceMethod
(
method
=
"dj.api.used.car.data.stats.receiving.cost.distribution"
,
needInSession
=
NeedInSessionType
.
NO
)
public
RopResponse
<
ReceivingCostDistributionResponse
>
getReceivingCostDistribution
(
OperationStatusRequest
request
)
{
OperationStatusReq
operationStatusReq
=
CommonUtil
.
convertRequest
(
OperationStatusReq
.
class
);
RpcResponse
<
ReceivingCostDistributionRes
>
operationStatus
=
usedCarDataStatsRemote
.
getReceivingCostDistribution
(
operationStatusReq
);
return
CommonUtil
.
convertRopResponse
(
operationStatus
,
ReceivingCostDistributionResponseConvert
.
INSTANCE
::
toReceivingCostDistributionResponse
);
}
@ApiOperation
(
"按周期统计数据"
)
@ApiOperation
(
"按周期统计数据"
)
@ServiceMethod
(
method
=
"dj.api.used.car.data.stats.cycle.data"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"dj.api.used.car.data.stats.cycle.data"
,
needInSession
=
NeedInSessionType
.
YES
)
public
RopResponse
<
CycleDataResponse
>
getCycleData
(
CycleDataRequest
request
)
{
public
RopResponse
<
CycleDataResponse
>
getCycleData
(
CycleDataRequest
request
)
{
...
...
src/main/java/cn/com/glsx/dj/converter/ReceivingCostDistributionResponseConvert.java
0 → 100644
View file @
1847b65
package
cn
.
com
.
glsx
.
dj
.
converter
;
import
cn.com.glsx.dj.peanalysis.dto.res.UserdCarDataStats.OperationStatusRes
;
import
cn.com.glsx.dj.peanalysis.dto.res.UserdCarDataStats.ReceivingCostDistributionRes
;
import
cn.com.glsx.dj.response.UserdCarDataStats.OperationStatusResponse
;
import
cn.com.glsx.dj.response.UserdCarDataStats.ReceivingCostDistributionResponse
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.factory.Mappers
;
@Mapper
public
interface
ReceivingCostDistributionResponseConvert
{
ReceivingCostDistributionResponseConvert
INSTANCE
=
Mappers
.
getMapper
(
ReceivingCostDistributionResponseConvert
.
class
);
ReceivingCostDistributionResponse
toReceivingCostDistributionResponse
(
ReceivingCostDistributionRes
source
);
}
src/main/java/cn/com/glsx/dj/response/UserdCarDataStats/OperationStatusResponse.java
View file @
1847b65
...
@@ -74,45 +74,5 @@ public class OperationStatusResponse implements Serializable {
...
@@ -74,45 +74,5 @@ public class OperationStatusResponse implements Serializable {
@ApiModelProperty
(
notes
=
"平均收车成本"
)
@ApiModelProperty
(
notes
=
"平均收车成本"
)
private
BigDecimal
averageReceivingCost
;
private
BigDecimal
averageReceivingCost
;
/*
* 整体收车成本分布:无统计时间要求,按统计品牌+统计区域下,
* 统计系统的全部车辆,按单个车辆的“收车成本”匹配区间(X>5万、2万<X≤5万、X≤2万),分别统计对应区间的车辆数及占比;
* 其中占比等于对应区间的车辆数/“收车数”总和,保留百分比两位小数,即xx.xx%;
*/
/**
* 整体收车成本分布 X>5万 车辆数
*/
@ApiModelProperty
(
notes
=
"整体收车成本分布 X>5万 车辆数"
)
private
Integer
receivingCostDistribution5WMore
;
/**
* 整体收车成本分布 X>5万 占比
*/
@ApiModelProperty
(
notes
=
"整体收车成本分布 X>5万 占比"
)
private
BigDecimal
receivingCostDistribution5WMorePercent
;
/**
* 整体收车成本分布 2万<X≤5万 车辆数
*/
@ApiModelProperty
(
notes
=
"整体收车成本分布 2万<X≤5万 车辆数"
)
private
Integer
receivingCostDistribution2WMore
;
/**
* 整体收车成本分布 2万<X≤5万 占比
*/
@ApiModelProperty
(
notes
=
"整体收车成本分布 2万<X≤5万 占比"
)
private
BigDecimal
receivingCostDistribution2WMorePercent
;
/**
* 整体收车成本分布 X≤2万 车辆数
*/
@ApiModelProperty
(
notes
=
"整体收车成本分布 X≤2万 车辆数"
)
private
Integer
receivingCostDistributionLess2W
;
/**
* 整体收车成本分布 X≤2万 占比
*/
@ApiModelProperty
(
notes
=
"整体收车成本分布 X≤2万 占比"
)
private
BigDecimal
receivingCostDistributionLess2WPercent
;
}
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/dj/response/UserdCarDataStats/ReceivingCostDistributionResponse.java
0 → 100644
View file @
1847b65
package
cn
.
com
.
glsx
.
dj
.
response
.
UserdCarDataStats
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
/**
* 整体收车成本分布
*/
@Data
public
class
ReceivingCostDistributionResponse
implements
Serializable
{
private
static
final
long
serialVersionUID
=
2507729541857822347L
;
/*
* 整体收车成本分布:无统计时间要求,按统计品牌+统计区域下,
* 统计系统的全部车辆,按单个车辆的“收车成本”匹配区间(X>5万、2万<X≤5万、X≤2万),分别统计对应区间的车辆数及占比;
* 其中占比等于对应区间的车辆数/“收车数”总和,保留百分比两位小数,即xx.xx%;
*/
/**
* 整体收车成本分布 X>5万 车辆数
*/
@ApiModelProperty
(
notes
=
"整体收车成本分布 X>5万 车辆数"
)
private
Integer
receivingCostDistribution5WMore
;
/**
* 整体收车成本分布 X>5万 占比
*/
@ApiModelProperty
(
notes
=
"整体收车成本分布 X>5万 占比"
)
private
BigDecimal
receivingCostDistribution5WMorePercent
;
/**
* 整体收车成本分布 2万<X≤5万 车辆数
*/
@ApiModelProperty
(
notes
=
"整体收车成本分布 2万<X≤5万 车辆数"
)
private
Integer
receivingCostDistribution2WMore
;
/**
* 整体收车成本分布 2万<X≤5万 占比
*/
@ApiModelProperty
(
notes
=
"整体收车成本分布 2万<X≤5万 占比"
)
private
BigDecimal
receivingCostDistribution2WMorePercent
;
/**
* 整体收车成本分布 X≤2万 车辆数
*/
@ApiModelProperty
(
notes
=
"整体收车成本分布 X≤2万 车辆数"
)
private
Integer
receivingCostDistributionLess2W
;
/**
* 整体收车成本分布 X≤2万 占比
*/
@ApiModelProperty
(
notes
=
"整体收车成本分布 X≤2万 占比"
)
private
BigDecimal
receivingCostDistributionLess2WPercent
;
}
\ No newline at end of file
\ No newline at end of file
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