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 02127215
authored
Mar 20, 2026
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]驻店员工逻辑调整
1 parent
98e3471d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorDashboardService.java
rpc-dj-supervisor/src/test/java/cn/com/glsx/dj/supervisor/remote/SupervisorDashboardRemoteImplTest.java
rpc-dj-supervisor/src/main/java/cn/com/glsx/dj/supervisor/service/SupervisorDashboardService.java
View file @
0212721
...
@@ -660,6 +660,8 @@ public class SupervisorDashboardService {
...
@@ -660,6 +660,8 @@ public class SupervisorDashboardService {
EmployeeRanking
ranking
=
phoneMap
.
computeIfAbsent
(
phone
,
k
->
new
EmployeeRanking
());
EmployeeRanking
ranking
=
phoneMap
.
computeIfAbsent
(
phone
,
k
->
new
EmployeeRanking
());
ranking
.
setEmployeePhone
(
phone
);
// 填充基础信息
// 填充基础信息
if
(
ranking
.
getEmployeeName
()
==
null
&&
dto
.
getStaffName
()
!=
null
)
{
if
(
ranking
.
getEmployeeName
()
==
null
&&
dto
.
getStaffName
()
!=
null
)
{
ranking
.
setEmployeeName
(
dto
.
getStaffName
());
ranking
.
setEmployeeName
(
dto
.
getStaffName
());
...
@@ -1326,11 +1328,12 @@ public class SupervisorDashboardService {
...
@@ -1326,11 +1328,12 @@ public class SupervisorDashboardService {
// 根据业务类型调整指标编码
// 根据业务类型调整指标编码
if
(
req
.
getBizs
()
!=
null
&&
req
.
getBizs
()
==
2
)
{
// 2. 轻改
if
(
req
.
getBizs
()
!=
null
&&
req
.
getBizs
()
==
2
)
{
// 2. 轻改
employeeItemCodes
=
"A036,A076,A064,A085,A077,A095,A084,A075,A063,A096,A097,A098,A0107,A0108,A0109,A0110,A0111,A0112,A0113,A0114,A0115,A0116,A0117,A0118,A0119,A0120"
;
employeeItemCodes
=
"A036,A076,A064,A085,A077,A095,A084,A075,A063,A096,A097,A098,A010
5,A0104,A010
7,A0108,A0109,A0110,A0111,A0112,A0113,A0114,A0115,A0116,A0117,A0118,A0119,A0120"
;
}
}
DataBizQueryParamsDTO
employeeQueryParams
=
new
DataBizQueryParamsDTO
();
DataBizQueryParamsDTO
employeeQueryParams
=
new
DataBizQueryParamsDTO
();
employeeQueryParams
.
setBizs
(
req
.
getBizs
());
employeeQueryParams
.
setBizs
(
req
.
getBizs
());
employeeQueryParams
.
setDateType
(
req
.
getDateType
());
employeeQueryParams
.
setMerchantIds
(
req
.
getMerchantId
()
!=
null
?
req
.
getMerchantId
().
toString
()
:
null
);
// 门店ID
employeeQueryParams
.
setMerchantIds
(
req
.
getMerchantId
()
!=
null
?
req
.
getMerchantId
().
toString
()
:
null
);
// 门店ID
employeeQueryParams
.
setStaffIds
(
req
.
getEmployeeId
());
// 员工ID
employeeQueryParams
.
setStaffIds
(
req
.
getEmployeeId
());
// 员工ID
employeeQueryParams
.
setStartDate
(
req
.
getStartDate
());
// 开始时间
employeeQueryParams
.
setStartDate
(
req
.
getStartDate
());
// 开始时间
...
...
rpc-dj-supervisor/src/test/java/cn/com/glsx/dj/supervisor/remote/SupervisorDashboardRemoteImplTest.java
View file @
0212721
...
@@ -47,8 +47,9 @@ public class SupervisorDashboardRemoteImplTest extends BaseServiceTest {
...
@@ -47,8 +47,9 @@ public class SupervisorDashboardRemoteImplTest extends BaseServiceTest {
DashboardQueryReq
req
=
new
DashboardQueryReq
();
DashboardQueryReq
req
=
new
DashboardQueryReq
();
req
.
setSupervisorId
(
"63c121922cba4956b2aac3f21dacd92f"
);
req
.
setSupervisorId
(
"63c121922cba4956b2aac3f21dacd92f"
);
req
.
setStartDate
(
"2026-03-01"
);
req
.
setStartDate
(
"2026-03-01"
);
req
.
setEndDate
(
"2026-03-16"
);
req
.
setEndDate
(
"2026-03-31"
);
req
.
setDateType
(
4
);
req
.
setBizs
(
2
);
req
.
setDateType
(
2
);
req
.
setNeedAiAnalysis
(
true
);
req
.
setNeedAiAnalysis
(
true
);
RpcResponse
<
SupervisorDashboardVO
>
response
=
supervisorDashboardRemote
.
getDashboardBehaviorData
(
req
);
RpcResponse
<
SupervisorDashboardVO
>
response
=
supervisorDashboardRemote
.
getDashboardBehaviorData
(
req
);
System
.
out
.
println
(
JSON
.
toJSONString
(
response
));
System
.
out
.
println
(
JSON
.
toJSONString
(
response
));
...
@@ -66,10 +67,9 @@ public class SupervisorDashboardRemoteImplTest extends BaseServiceTest {
...
@@ -66,10 +67,9 @@ public class SupervisorDashboardRemoteImplTest extends BaseServiceTest {
public
void
testGetEmployeePerformanceData
()
{
public
void
testGetEmployeePerformanceData
()
{
EmployeePerformanceReq
req
=
new
EmployeePerformanceReq
();
EmployeePerformanceReq
req
=
new
EmployeePerformanceReq
();
req
.
setEmployeeId
(
"584fdb460afa4dad835cbe8d73cfa923"
);
req
.
setEmployeeId
(
"584fdb460afa4dad835cbe8d73cfa923"
);
req
.
setMerchantId
(
44211227
);
req
.
setStartDate
(
"2026-03-01"
);
req
.
setStartDate
(
"2026-03-01"
);
req
.
setEndDate
(
"2026-03-
19
"
);
req
.
setEndDate
(
"2026-03-
31
"
);
req
.
setBizs
(
1
);
req
.
setBizs
(
2
);
req
.
setDateType
(
2
);
req
.
setDateType
(
2
);
RpcResponse
<
EmployeePerformanceDTO
>
response
=
supervisorDashboardRemote
.
getEmployeePerformanceData
(
req
);
RpcResponse
<
EmployeePerformanceDTO
>
response
=
supervisorDashboardRemote
.
getEmployeePerformanceData
(
req
);
System
.
out
.
println
(
JSON
.
toJSONString
(
response
));
System
.
out
.
println
(
JSON
.
toJSONString
(
response
));
...
...
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