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 de9908f0
authored
Mar 20, 2026
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]驻店员工逻辑调整
1 parent
38a970d1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
8 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/mapper/BusinessSceneMapper.java
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorDashboardService.java
rpc-dj-supervisor/src/main/resources/META-INF/orm/BusinessSceneMapper.xml
rpc-dj-supervisor-api/src/main/java/cn/com/glsx/dj/supervisor/dto/EmployeePerformanceDTO.java
View file @
de9908f
...
@@ -701,7 +701,13 @@ public class EmployeePerformanceDTO implements Serializable {
...
@@ -701,7 +701,13 @@ public class EmployeePerformanceDTO implements Serializable {
* 车窗膜产值(指标A0107)
* 车窗膜产值(指标A0107)
*/
*/
@ApiModelProperty
(
notes
=
"车窗膜产值(指标A0107)"
,
example
=
"5000"
)
@ApiModelProperty
(
notes
=
"车窗膜产值(指标A0107)"
,
example
=
"5000"
)
private
Integer
windowFilmValue
;
private
BigDecimal
windowFilmValue
;
/**
* 车窗膜成交数(指标A0106)
*/
@ApiModelProperty
(
notes
=
"车窗膜成交数(指标A0106)"
,
example
=
"5000"
)
private
Integer
windowFilmCount
;
/**
/**
* 车窗膜产值环比
* 车窗膜产值环比
...
@@ -761,7 +767,7 @@ public class EmployeePerformanceDTO implements Serializable {
...
@@ -761,7 +767,7 @@ public class EmployeePerformanceDTO implements Serializable {
* 车身膜产值(指标A0112)
* 车身膜产值(指标A0112)
*/
*/
@ApiModelProperty
(
notes
=
"车身膜产值(指标A0112)"
,
example
=
"8000"
)
@ApiModelProperty
(
notes
=
"车身膜产值(指标A0112)"
,
example
=
"8000"
)
private
Integer
bodyFilmValue
;
private
BigDecimal
bodyFilmValue
;
/**
/**
* 车身膜产值环比
* 车身膜产值环比
...
@@ -821,7 +827,7 @@ public class EmployeePerformanceDTO implements Serializable {
...
@@ -821,7 +827,7 @@ public class EmployeePerformanceDTO implements Serializable {
* 精品附件产值(指标A0117)
* 精品附件产值(指标A0117)
*/
*/
@ApiModelProperty
(
notes
=
"精品附件产值(指标A0117)"
,
example
=
"3000"
)
@ApiModelProperty
(
notes
=
"精品附件产值(指标A0117)"
,
example
=
"3000"
)
private
Integer
accessoriesValue
;
private
BigDecimal
accessoriesValue
;
/**
/**
* 精品附件产值环比
* 精品附件产值环比
...
...
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/mapper/BusinessSceneMapper.java
View file @
de9908f
...
@@ -170,4 +170,5 @@ public interface BusinessSceneMapper {
...
@@ -170,4 +170,5 @@ public interface BusinessSceneMapper {
@Param
(
"phones"
)
List
<
String
>
phones
@Param
(
"phones"
)
List
<
String
>
phones
);
);
String
findDepartmentByOid
(
@Param
(
"oid"
)
Integer
oIdDepartmentId
);
}
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorDashboardService.java
View file @
de9908f
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
service
;
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
service
;
import
cn.com.glsx.dj.beisen.remote.BeiSenOrgRemote
;
import
cn.com.glsx.dj.mindworkplate.model.EarlyWarningThresholdConfig
;
import
cn.com.glsx.dj.mindworkplate.model.EarlyWarningThresholdConfig
;
import
cn.com.glsx.dj.mindworkplate.remote.WarningMsgRemote
;
import
cn.com.glsx.dj.mindworkplate.remote.WarningMsgRemote
;
import
cn.com.glsx.dj.smartcarlife.dto.ShopMerchantDirectorConfigDTO
;
import
cn.com.glsx.dj.smartcarlife.dto.ShopMerchantDirectorConfigDTO
;
...
@@ -1052,7 +1053,10 @@ public class SupervisorDashboardService {
...
@@ -1052,7 +1053,10 @@ public class SupervisorDashboardService {
if
(
beisenInfo
.
getNation
()
!=
null
)
{
if
(
beisenInfo
.
getNation
()
!=
null
)
{
basicInfo
.
setEthnicity
(
convertNation
(
Integer
.
parseInt
(
beisenInfo
.
getNation
())));
basicInfo
.
setEthnicity
(
convertNation
(
Integer
.
parseInt
(
beisenInfo
.
getNation
())));
}
}
if
(
beisenInfo
.
getOIdDepartmentId
()
!=
null
)
{
basicInfo
.
setDepartment
(
businessSceneMapper
.
findDepartmentByOid
(
beisenInfo
.
getOIdDepartmentId
()));
}
log
.
info
(
"成功获取北森员工信息:{}"
,
beisenInfo
.
getName
());
log
.
info
(
"成功获取北森员工信息:{}"
,
beisenInfo
.
getName
());
}
else
{
}
else
{
log
.
warn
(
"未获取到北森员工信息,使用默认数据"
);
log
.
warn
(
"未获取到北森员工信息,使用默认数据"
);
...
@@ -1300,7 +1304,7 @@ public class SupervisorDashboardService {
...
@@ -1300,7 +1304,7 @@ public class SupervisorDashboardService {
// 2. 获取人员数据
// 2. 获取人员数据
// 一次请求所有指标,用逗号隔开
// 一次请求所有指标,用逗号隔开
Map
<
String
,
java
.
math
.
BigDecimal
>
employeeMetrics
=
new
HashMap
<>();
Map
<
String
,
BigDecimal
>
employeeMetrics
=
new
HashMap
<>();
Map
<
String
,
String
>
employeeRates
=
new
HashMap
<>();
// 环比数据
Map
<
String
,
String
>
employeeRates
=
new
HashMap
<>();
// 环比数据
String
employeeItemCodes
=
"A036,A076,A064,A085,A077,A095,A0100,A099,A0103,A091,A0101,A089,A0102,A090,A0104,A0105,A084,A075,A066,A070,A086,A087,A063,A096,A097,A098"
;
String
employeeItemCodes
=
"A036,A076,A064,A085,A077,A095,A0100,A099,A0103,A091,A0101,A089,A0102,A090,A0104,A0105,A084,A075,A066,A070,A086,A087,A063,A096,A097,A098"
;
...
@@ -1408,7 +1412,8 @@ public class SupervisorDashboardService {
...
@@ -1408,7 +1412,8 @@ public class SupervisorDashboardService {
// 轻改品类数据
// 轻改品类数据
// 车窗膜产值(指标A0107)
// 车窗膜产值(指标A0107)
employeePerformanceData
.
setWindowFilmValue
(
employeeMetrics
.
get
(
"A0107"
)
!=
null
?
employeeMetrics
.
get
(
"A0107"
).
intValue
()
:
0
);
employeePerformanceData
.
setWindowFilmCount
(
employeeMetrics
.
get
(
"A0106"
)
!=
null
?
employeeMetrics
.
get
(
"A0106"
).
intValue
()
:
0
);
employeePerformanceData
.
setWindowFilmValue
(
employeeMetrics
.
get
(
"A0107"
));
employeePerformanceData
.
setWindowFilmValueRate
(
formatPercentage
(
employeeRates
.
get
(
"A0107"
)));
// 车窗膜产值环比
employeePerformanceData
.
setWindowFilmValueRate
(
formatPercentage
(
employeeRates
.
get
(
"A0107"
)));
// 车窗膜产值环比
// 车窗膜渗透率(指标A0108)
// 车窗膜渗透率(指标A0108)
employeePerformanceData
.
setWindowFilmPenetration
(
formatPercentage
(
employeeRates
.
get
(
"A0108"
)));
employeePerformanceData
.
setWindowFilmPenetration
(
formatPercentage
(
employeeRates
.
get
(
"A0108"
)));
...
@@ -1423,7 +1428,7 @@ public class SupervisorDashboardService {
...
@@ -1423,7 +1428,7 @@ public class SupervisorDashboardService {
employeePerformanceData
.
setBodyFilmDealCount
(
employeeMetrics
.
get
(
"A0111"
)
!=
null
?
employeeMetrics
.
get
(
"A0111"
).
intValue
()
:
0
);
employeePerformanceData
.
setBodyFilmDealCount
(
employeeMetrics
.
get
(
"A0111"
)
!=
null
?
employeeMetrics
.
get
(
"A0111"
).
intValue
()
:
0
);
employeePerformanceData
.
setBodyFilmDealCountRate
(
formatPercentage
(
employeeRates
.
get
(
"A0111"
)));
// 车身膜成交数环比
employeePerformanceData
.
setBodyFilmDealCountRate
(
formatPercentage
(
employeeRates
.
get
(
"A0111"
)));
// 车身膜成交数环比
// 车身膜产值(指标A0112)
// 车身膜产值(指标A0112)
employeePerformanceData
.
setBodyFilmValue
(
employeeMetrics
.
get
(
"A0112"
)
!=
null
?
employeeMetrics
.
get
(
"A0112"
).
intValue
()
:
0
);
employeePerformanceData
.
setBodyFilmValue
(
employeeMetrics
.
get
(
"A0112"
));
employeePerformanceData
.
setBodyFilmValueRate
(
formatPercentage
(
employeeRates
.
get
(
"A0112"
)));
// 车身膜产值环比
employeePerformanceData
.
setBodyFilmValueRate
(
formatPercentage
(
employeeRates
.
get
(
"A0112"
)));
// 车身膜产值环比
// 车身膜渗透率(指标A0113)
// 车身膜渗透率(指标A0113)
employeePerformanceData
.
setBodyFilmPenetration
(
formatPercentage
(
employeeRates
.
get
(
"A0113"
)));
employeePerformanceData
.
setBodyFilmPenetration
(
formatPercentage
(
employeeRates
.
get
(
"A0113"
)));
...
@@ -1438,7 +1443,7 @@ public class SupervisorDashboardService {
...
@@ -1438,7 +1443,7 @@ public class SupervisorDashboardService {
employeePerformanceData
.
setAccessoriesDealCount
(
employeeMetrics
.
get
(
"A0116"
)
!=
null
?
employeeMetrics
.
get
(
"A0116"
).
intValue
()
:
0
);
employeePerformanceData
.
setAccessoriesDealCount
(
employeeMetrics
.
get
(
"A0116"
)
!=
null
?
employeeMetrics
.
get
(
"A0116"
).
intValue
()
:
0
);
employeePerformanceData
.
setAccessoriesDealCountRate
(
formatPercentage
(
employeeRates
.
get
(
"A0116"
)));
// 精品附件成交数环比
employeePerformanceData
.
setAccessoriesDealCountRate
(
formatPercentage
(
employeeRates
.
get
(
"A0116"
)));
// 精品附件成交数环比
// 精品附件产值(指标A0117)
// 精品附件产值(指标A0117)
employeePerformanceData
.
setAccessoriesValue
(
employeeMetrics
.
get
(
"A0117"
)
!=
null
?
employeeMetrics
.
get
(
"A0117"
).
intValue
()
:
0
);
employeePerformanceData
.
setAccessoriesValue
(
employeeMetrics
.
get
(
"A0117"
));
employeePerformanceData
.
setAccessoriesValueRate
(
formatPercentage
(
employeeRates
.
get
(
"A0117"
)));
// 精品附件产值环比
employeePerformanceData
.
setAccessoriesValueRate
(
formatPercentage
(
employeeRates
.
get
(
"A0117"
)));
// 精品附件产值环比
// 精品附件渗透率(指标A0118)
// 精品附件渗透率(指标A0118)
employeePerformanceData
.
setAccessoriesPenetration
(
formatPercentage
(
employeeRates
.
get
(
"A0118"
)));
employeePerformanceData
.
setAccessoriesPenetration
(
formatPercentage
(
employeeRates
.
get
(
"A0118"
)));
...
...
rpc-dj-supervisor/src/main/resources/META-INF/orm/BusinessSceneMapper.xml
View file @
de9908f
...
@@ -262,5 +262,13 @@
...
@@ -262,5 +262,13 @@
#{item}
#{item}
</foreach>
</foreach>
</select>
</select>
<select
id=
"findDepartmentByOid"
resultType=
"java.lang.String"
>
SELECT
d.name
FROM
dj_beisen_organization d
WHERE
d.o_id = #{oid}
</select>
</mapper>
</mapper>
\ 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