From c08e3e50d59621d6af04908111aa7afa79679377 Mon Sep 17 00:00:00 2001 From: zhaoqiaobo Date: Thu, 28 Mar 2024 18:53:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(service):=20=E6=81=A2=E5=A4=8D=E8=A2=AB?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1 恢复被注释的代码 --- .../impl/ReportBillLoadingAsyncService.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/blade-service/logpm-report/src/main/java/com/logpm/report/service/impl/ReportBillLoadingAsyncService.java b/blade-service/logpm-report/src/main/java/com/logpm/report/service/impl/ReportBillLoadingAsyncService.java index 32ba2e88d..048211723 100644 --- a/blade-service/logpm-report/src/main/java/com/logpm/report/service/impl/ReportBillLoadingAsyncService.java +++ b/blade-service/logpm-report/src/main/java/com/logpm/report/service/impl/ReportBillLoadingAsyncService.java @@ -97,15 +97,15 @@ public class ReportBillLoadingAsyncService implements IReportBillLoadingAsyncSer userIds.add(detailsVO.getExamineUser()); } } -// R> listR = userClient.userInfoByIds(AuthUtil.getTenantId(), CollUtil.join(userIds, ",")); -// if (ObjectUtil.equal(ReportConstants.HTTP_SUCCESS_CODE, listR.getCode())) { -// List data = listR.getData(); -// Map collect = data.stream().collect(Collectors.toMap(User::getId, User::getName)); -// for (BillLoadingDetailsVO detailsVO : detailsPage) { -// detailsVO.setScanUser(collect.get(detailsVO.getScanUser())); -// detailsVO.setExamineUser(collect.get(detailsVO.getExamineUser())); -// } -// } + R> listR = userClient.userInfoByIds(AuthUtil.getTenantId(), CollUtil.join(userIds, ",")); + if (ObjectUtil.equal(ReportConstants.HTTP_SUCCESS_CODE, listR.getCode())) { + List data = listR.getData(); + Map collect = data.stream().collect(Collectors.toMap(User::getId, User::getName)); + for (BillLoadingDetailsVO detailsVO : detailsPage) { + detailsVO.setScanUser(collect.get(detailsVO.getScanUser())); + detailsVO.setExamineUser(collect.get(detailsVO.getExamineUser())); + } + } } return page.setRecords(detailsPage);