Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-supervisor
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 15cb2bd5
authored
Mar 20, 2026
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]驻店员工逻辑调整
1 parent
f203b0c7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
9 deletions
rpc-dj-supervisor-api/src/main/java/cn/com/glsx/dj/supervisor/dto/EmployeePerformanceDTO.java
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorDashboardService.java
rpc-dj-supervisor-api/src/main/java/cn/com/glsx/dj/supervisor/dto/EmployeePerformanceDTO.java
View file @
15cb2bd
...
@@ -399,6 +399,12 @@ public class EmployeePerformanceDTO implements Serializable {
...
@@ -399,6 +399,12 @@ public class EmployeePerformanceDTO implements Serializable {
private
String
vehicleWarrantyPenetrationEmployee
;
private
String
vehicleWarrantyPenetrationEmployee
;
/**
/**
* 整车延保-渗透率(员工)(指标A0100)
*/
@ApiModelProperty
(
notes
=
"兜底整车延保-渗透率(员工)(指标A0100)"
,
example
=
"40%"
)
private
String
vehicleWarrantyPenetrationEmployeeDD
;
/**
* 整车延保-渗透率(员工)环比
* 整车延保-渗透率(员工)环比
*/
*/
@ApiModelProperty
(
notes
=
"整车延保-渗透率(员工)环比"
,
example
=
"5%"
)
@ApiModelProperty
(
notes
=
"整车延保-渗透率(员工)环比"
,
example
=
"5%"
)
...
@@ -411,6 +417,12 @@ public class EmployeePerformanceDTO implements Serializable {
...
@@ -411,6 +417,12 @@ public class EmployeePerformanceDTO implements Serializable {
private
String
vehicleWarrantyConversionRate
;
private
String
vehicleWarrantyConversionRate
;
/**
/**
* 整车延保-转化率(指标A099)
*/
@ApiModelProperty
(
notes
=
"兜底整车延保-转化率(指标A099)"
,
example
=
"35%"
)
private
String
vehicleWarrantyConversionRateDD
;
/**
* 整车延保-转化率环比
* 整车延保-转化率环比
*/
*/
@ApiModelProperty
(
notes
=
"整车延保-转化率环比"
,
example
=
"3%"
)
@ApiModelProperty
(
notes
=
"整车延保-转化率环比"
,
example
=
"3%"
)
...
@@ -423,6 +435,12 @@ public class EmployeePerformanceDTO implements Serializable {
...
@@ -423,6 +435,12 @@ public class EmployeePerformanceDTO implements Serializable {
private
String
batteryPenetrationEmployee
;
private
String
batteryPenetrationEmployee
;
/**
/**
* 电池-渗透率(员工)(指标A0103)
*/
@ApiModelProperty
(
notes
=
"兜底电池-渗透率(员工)(指标A0103)"
,
example
=
"25%"
)
private
String
batteryPenetrationEmployeeDD
;
/**
* 电池-渗透率(员工)环比
* 电池-渗透率(员工)环比
*/
*/
@ApiModelProperty
(
notes
=
"电池-渗透率(员工)环比"
,
example
=
"4%"
)
@ApiModelProperty
(
notes
=
"电池-渗透率(员工)环比"
,
example
=
"4%"
)
...
@@ -435,17 +453,36 @@ public class EmployeePerformanceDTO implements Serializable {
...
@@ -435,17 +453,36 @@ public class EmployeePerformanceDTO implements Serializable {
private
String
batteryConversionRate
;
private
String
batteryConversionRate
;
/**
/**
* 电池-转化率(指标A091)
*/
@ApiModelProperty
(
notes
=
"兜底电池-转化率(指标A091)"
,
example
=
"20%"
)
private
String
batteryConversionRateDD
;
/**
* 电池-转化率环比
* 电池-转化率环比
*/
*/
@ApiModelProperty
(
notes
=
"电池-转化率环比"
,
example
=
"2%"
)
@ApiModelProperty
(
notes
=
"电池-转化率环比"
,
example
=
"2%"
)
private
String
batteryConversionRateRate
;
private
String
batteryConversionRateRate
;
/**
/**
* 电池-转化率环比
*/
@ApiModelProperty
(
notes
=
"兜底电池-转化率环比"
,
example
=
"2%"
)
private
String
batteryConversionRateRateDD
;
/**
* 安心包-渗透率(员工)(指标A0101)
* 安心包-渗透率(员工)(指标A0101)
*/
*/
@ApiModelProperty
(
notes
=
"安心包-渗透率(员工)(指标A0101)"
,
example
=
"20%"
)
@ApiModelProperty
(
notes
=
"安心包-渗透率(员工)(指标A0101)"
,
example
=
"20%"
)
private
String
safetyPackPenetrationEmployee
;
private
String
safetyPackPenetrationEmployee
;
/**
* 安心包-渗透率(员工)(指标A0101)
*/
@ApiModelProperty
(
notes
=
"兜底安心包-渗透率(员工)(指标A0101)"
,
example
=
"20%"
)
private
String
safetyPackPenetrationEmployeeDD
;
/**
/**
* 安心包-渗透率(员工)环比
* 安心包-渗透率(员工)环比
*/
*/
...
@@ -453,12 +490,24 @@ public class EmployeePerformanceDTO implements Serializable {
...
@@ -453,12 +490,24 @@ public class EmployeePerformanceDTO implements Serializable {
private
String
safetyPackPenetrationEmployeeRate
;
private
String
safetyPackPenetrationEmployeeRate
;
/**
/**
* 安心包-渗透率(员工)环比
*/
@ApiModelProperty
(
notes
=
"安心包-渗透率(员工)环比"
,
example
=
"3%"
)
private
String
safetyPackPenetrationEmployeeRateDD
;
/**
* 安心包-转化率(指标A089)
* 安心包-转化率(指标A089)
*/
*/
@ApiModelProperty
(
notes
=
"安心包-转化率(指标A089)"
,
example
=
"15%"
)
@ApiModelProperty
(
notes
=
"安心包-转化率(指标A089)"
,
example
=
"15%"
)
private
String
safetyPackConversionRate
;
private
String
safetyPackConversionRate
;
/**
/**
* 安心包-转化率(指标A089)
*/
@ApiModelProperty
(
notes
=
"兜底安心包-转化率(指标A089)"
,
example
=
"15%"
)
private
String
safetyPackConversionRateDD
;
/**
* 安心包-转化率环比
* 安心包-转化率环比
*/
*/
@ApiModelProperty
(
notes
=
"安心包-转化率环比"
,
example
=
"2%"
)
@ApiModelProperty
(
notes
=
"安心包-转化率环比"
,
example
=
"2%"
)
...
@@ -470,6 +519,13 @@ public class EmployeePerformanceDTO implements Serializable {
...
@@ -470,6 +519,13 @@ public class EmployeePerformanceDTO implements Serializable {
@ApiModelProperty
(
notes
=
"轮胎渗透率(员工)(指标A0102)"
,
example
=
"15%"
)
@ApiModelProperty
(
notes
=
"轮胎渗透率(员工)(指标A0102)"
,
example
=
"15%"
)
private
String
tirePenetrationEmployee
;
private
String
tirePenetrationEmployee
;
/**
* 轮胎渗透率(员工)(指标A0102)
*/
@ApiModelProperty
(
notes
=
"兜底轮胎渗透率(员工)(指标A0102)"
,
example
=
"15%"
)
private
String
tirePenetrationEmployeeDD
;
/**
/**
* 轮胎渗透率(员工)环比
* 轮胎渗透率(员工)环比
*/
*/
...
@@ -483,6 +539,12 @@ public class EmployeePerformanceDTO implements Serializable {
...
@@ -483,6 +539,12 @@ public class EmployeePerformanceDTO implements Serializable {
private
String
tireConversionRate
;
private
String
tireConversionRate
;
/**
/**
* 轮胎转化率(指标A090)
*/
@ApiModelProperty
(
notes
=
"兜底轮胎转化率(指标A090)"
,
example
=
"10%"
)
private
String
tireConversionRateDD
;
/**
* 轮胎转化率环比
* 轮胎转化率环比
*/
*/
@ApiModelProperty
(
notes
=
"轮胎转化率环比"
,
example
=
"2%"
)
@ApiModelProperty
(
notes
=
"轮胎转化率环比"
,
example
=
"2%"
)
...
...
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorDashboardService.java
View file @
15cb2bd
...
@@ -1173,6 +1173,18 @@ public class SupervisorDashboardService {
...
@@ -1173,6 +1173,18 @@ public class SupervisorDashboardService {
}
}
/**
/**
* 格式化百分比:将数值乘以100,保留两位小数并加上%号
* @param value 数值(如0.25表示25%)
* @return 格式化后的百分比字符串(如"25.00%")
*/
private
String
formatPercentage1
(
BigDecimal
value
)
{
if
(
value
==
null
)
{
return
"0.00%"
;
}
return
value
.
setScale
(
2
,
BigDecimal
.
ROUND_HALF_UP
)
+
"%"
;
}
/**
* 转化民族
* 转化民族
* @param nation 民族代码
* @param nation 民族代码
* @return 民族名称
* @return 民族名称
...
@@ -1450,7 +1462,6 @@ public class SupervisorDashboardService {
...
@@ -1450,7 +1462,6 @@ public class SupervisorDashboardService {
dailyPerformanceRate
=
behaviorData
.
getDailyReport
().
getCompletionRate
();
dailyPerformanceRate
=
behaviorData
.
getDailyReport
().
getCompletionRate
();
}
}
employeePerformanceData
.
setDailyPerformanceRate
(
dailyPerformanceRate
);
employeePerformanceData
.
setDailyPerformanceRate
(
dailyPerformanceRate
);
performanceData
.
setEmployeeData
(
employeePerformanceData
);
// 4. 获取兜底预警目标配置
// 4. 获取兜底预警目标配置
if
(
req
.
getMerchantId
()
!=
null
)
{
if
(
req
.
getMerchantId
()
!=
null
)
{
...
@@ -1463,39 +1474,40 @@ public class SupervisorDashboardService {
...
@@ -1463,39 +1474,40 @@ public class SupervisorDashboardService {
if
(
result
!=
null
)
{
if
(
result
!=
null
)
{
// 电池转化率
// 电池转化率
if
(
result
.
getBatteryConversionRate
()
!=
null
)
{
if
(
result
.
getBatteryConversionRate
()
!=
null
)
{
employeePerformanceData
.
setBatteryConversionRate
(
formatPercentage
(
result
.
getBatteryConversionRate
()));
employeePerformanceData
.
setBatteryConversionRate
DD
(
formatPercentage1
(
result
.
getBatteryConversionRate
()));
}
}
// 电池渗透率
// 电池渗透率
if
(
result
.
getBatteryPenetrationRate
()
!=
null
)
{
if
(
result
.
getBatteryPenetrationRate
()
!=
null
)
{
employeePerformanceData
.
setBatteryPenetrationEmployee
(
formatPercentage
(
result
.
getBatteryPenetrationRate
()));
employeePerformanceData
.
setBatteryPenetrationEmployee
DD
(
formatPercentage1
(
result
.
getBatteryPenetrationRate
()));
}
}
// 延保转化率
// 延保转化率
if
(
result
.
getEwConRate
()
!=
null
)
{
if
(
result
.
getEwConRate
()
!=
null
)
{
employeePerformanceData
.
setVehicleWarrantyConversionRate
(
formatPercentage
(
result
.
getEwConRate
()));
employeePerformanceData
.
setVehicleWarrantyConversionRate
DD
(
formatPercentage1
(
result
.
getEwConRate
()));
}
}
// 延保渗透率
// 延保渗透率
if
(
result
.
getEwPenetrationRate
()
!=
null
)
{
if
(
result
.
getEwPenetrationRate
()
!=
null
)
{
employeePerformanceData
.
setVehicleWarrantyPenetrationEmployee
(
formatPercentage
(
result
.
getEwPenetrationRate
()));
employeePerformanceData
.
setVehicleWarrantyPenetrationEmployee
DD
(
formatPercentage1
(
result
.
getEwPenetrationRate
()));
}
}
// 安心包转化率
// 安心包转化率
if
(
result
.
getEwAxbConRate
()
!=
null
)
{
if
(
result
.
getEwAxbConRate
()
!=
null
)
{
employeePerformanceData
.
setSafetyPackConversionRate
(
formatPercentage
(
result
.
getEwAxbConRate
()));
employeePerformanceData
.
setSafetyPackConversionRate
DD
(
formatPercentage1
(
result
.
getEwAxbConRate
()));
}
}
// 安心包渗透率
// 安心包渗透率
if
(
result
.
getEwAxbPenetrationRate
()
!=
null
)
{
if
(
result
.
getEwAxbPenetrationRate
()
!=
null
)
{
employeePerformanceData
.
setSafetyPackPenetrationEmployee
(
formatPercentage
(
result
.
getEwAxbPenetrationRate
()));
employeePerformanceData
.
setSafetyPackPenetrationEmployee
DD
(
formatPercentage1
(
result
.
getEwAxbPenetrationRate
()));
}
}
// 轮胎转化率
// 轮胎转化率
if
(
result
.
getEwLtConRate
()
!=
null
)
{
if
(
result
.
getEwLtConRate
()
!=
null
)
{
employeePerformanceData
.
setTireConversionRate
(
formatPercentage
(
result
.
getEwLtConRate
()));
employeePerformanceData
.
setTireConversionRate
DD
(
formatPercentage1
(
result
.
getEwLtConRate
()));
}
}
// 轮胎渗透率
// 轮胎渗透率
if
(
result
.
getEwLtPenetrationRate
()
!=
null
)
{
if
(
result
.
getEwLtPenetrationRate
()
!=
null
)
{
employeePerformanceData
.
setTirePenetrationEmployee
(
formatPercentage
(
result
.
getEwLtPenetrationRate
()));
employeePerformanceData
.
setTirePenetrationEmployee
DD
(
formatPercentage1
(
result
.
getEwLtPenetrationRate
()));
}
}
}
}
}
}
}
}
performanceData
.
setEmployeeData
(
employeePerformanceData
);
log
.
info
(
"获取个人业绩数据成功"
);
log
.
info
(
"获取个人业绩数据成功"
);
return
performanceData
;
return
performanceData
;
...
...
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