|
|
|
@ -433,6 +433,7 @@ CashRecordDone cashRecordDone1 = new CashRecordDone(); |
|
|
|
PageHelper.startPage(pageNum, pageSize); |
|
|
|
// System.out.println(goldDetail.getMarkets()); |
|
|
|
List<CashRecordDTO> list = cashRefundMapper.exSelect(cashRecordDTO); |
|
|
|
System.out.println( list); |
|
|
|
if (list.isEmpty()) { |
|
|
|
return new PageInfo<>(list); |
|
|
|
} |
|
|
|
@ -442,12 +443,14 @@ CashRecordDone cashRecordDone1 = new CashRecordDone(); |
|
|
|
Set<Integer> marketIds = new HashSet<>(); |
|
|
|
Set<Integer> submitterIds = new HashSet<>(); |
|
|
|
Set<Integer> auditIds = new HashSet<>(); |
|
|
|
Set<Integer> executorIds = new HashSet<>(); |
|
|
|
|
|
|
|
list.forEach(item -> { |
|
|
|
if (item.getRelatedId() != null) relatedIds.add(item.getRelatedId()); |
|
|
|
if (item.getMarket() != null) marketIds.add(item.getMarket()); |
|
|
|
if (item.getSubmitterId() != null) submitterIds.add(item.getSubmitterId()); |
|
|
|
if (item.getAuditId() != null) auditIds.add(item.getAuditId()); |
|
|
|
if (item.getExecutor() != null) executorIds.add(item.getExecutor()); |
|
|
|
}); |
|
|
|
|
|
|
|
// 批量查询 |
|
|
|
@ -462,6 +465,8 @@ CashRecordDone cashRecordDone1 = new CashRecordDone(); |
|
|
|
|
|
|
|
Map<Integer, LhlAudit> auditMap = cashRefundMapper.getAuditBatch(auditIds) |
|
|
|
.stream().collect(Collectors.toMap(LhlAudit::getId, Function.identity())); |
|
|
|
Map<String, String> executorNameMap = auditMapper.getNamesByJwcodes(executorIds) |
|
|
|
.stream().collect(Collectors.toMap(Admin::getAccount, Admin::getAdminName)); |
|
|
|
|
|
|
|
// 处理数据 |
|
|
|
list.forEach(item -> { |
|
|
|
@ -470,12 +475,15 @@ CashRecordDone cashRecordDone1 = new CashRecordDone(); |
|
|
|
processCashCollection(item, cashCollection); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String marketName = marketNameMap.get(item.getMarket()); |
|
|
|
String submitter = submitterNameMap.get(item.getSubmitterId()); |
|
|
|
LhlAudit lhlAudit = auditMap.get(item.getAuditId()); |
|
|
|
String executorName = executorNameMap.get(String.valueOf(item.getExecutor())); |
|
|
|
|
|
|
|
item.setMarketName(marketName != null ? marketName : ""); |
|
|
|
item.setSubmitter(submitter != null ? submitter : ""); |
|
|
|
item.setExecutorName(executorName != null ? executorName : ""); |
|
|
|
|
|
|
|
if (lhlAudit != null) { |
|
|
|
item.setAreaServise(lhlAudit.getAreaServise()); |
|
|
|
|