Commit 02127215 by zhouhaibao

[+]驻店员工逻辑调整

1 parent 98e3471d
......@@ -660,6 +660,8 @@ public class SupervisorDashboardService {
EmployeeRanking ranking = phoneMap.computeIfAbsent(phone, k -> new EmployeeRanking());
ranking.setEmployeePhone(phone);
// 填充基础信息
if (ranking.getEmployeeName() == null && dto.getStaffName() != null) {
ranking.setEmployeeName(dto.getStaffName());
......@@ -1326,11 +1328,12 @@ public class SupervisorDashboardService {
// 根据业务类型调整指标编码
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,A0105,A0104,A0107,A0108,A0109,A0110,A0111,A0112,A0113,A0114,A0115,A0116,A0117,A0118,A0119,A0120";
}
DataBizQueryParamsDTO employeeQueryParams = new DataBizQueryParamsDTO();
employeeQueryParams.setBizs(req.getBizs());
employeeQueryParams.setDateType(req.getDateType());
employeeQueryParams.setMerchantIds(req.getMerchantId() != null ? req.getMerchantId().toString() : null); // 门店ID
employeeQueryParams.setStaffIds(req.getEmployeeId()); // 员工ID
employeeQueryParams.setStartDate(req.getStartDate()); // 开始时间
......
......@@ -47,8 +47,9 @@ public class SupervisorDashboardRemoteImplTest extends BaseServiceTest {
DashboardQueryReq req = new DashboardQueryReq();
req.setSupervisorId("63c121922cba4956b2aac3f21dacd92f");
req.setStartDate("2026-03-01");
req.setEndDate("2026-03-16");
req.setDateType(4);
req.setEndDate("2026-03-31");
req.setBizs(2);
req.setDateType(2);
req.setNeedAiAnalysis(true);
RpcResponse<SupervisorDashboardVO> response = supervisorDashboardRemote.getDashboardBehaviorData(req);
System.out.println(JSON.toJSONString(response));
......@@ -66,10 +67,9 @@ public class SupervisorDashboardRemoteImplTest extends BaseServiceTest {
public void testGetEmployeePerformanceData() {
EmployeePerformanceReq req = new EmployeePerformanceReq();
req.setEmployeeId("584fdb460afa4dad835cbe8d73cfa923");
req.setMerchantId(44211227);
req.setStartDate("2026-03-01");
req.setEndDate("2026-03-19");
req.setBizs(1);
req.setEndDate("2026-03-31");
req.setBizs(2);
req.setDateType(2);
RpcResponse<EmployeePerformanceDTO> response = supervisorDashboardRemote.getEmployeePerformanceData(req);
System.out.println(JSON.toJSONString(response));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!