|
|
@@ -1009,7 +1009,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
List<FeeCenter> feeCenterListMh = feeCenterService.list(lambdaQueryWrapper);
|
|
|
if (!feeCenterListMh.isEmpty()) {
|
|
|
- for (FeeCenter item : feeCenterListMh) {
|
|
|
+ /*for (FeeCenter item : feeCenterListMh) {
|
|
|
if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
item.setCorpCnName(item.getShortName());
|
|
|
} else {
|
|
|
@@ -1020,7 +1020,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else {
|
|
|
item.setBillCorpCnName("无");
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
for (Bills item : billsList) {
|
|
|
this.dictionaryConversion(item);
|
|
|
item.setPrintPeople(AuthUtil.getUserName());
|
|
|
@@ -1119,7 +1119,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
bills.setFeeCenterListD(feeD);
|
|
|
List<FeeCenter> feeC = feeCenterList.stream().filter(e -> MagicValues.C.equals(e.getDc())).collect(Collectors.toList());
|
|
|
bills.setFeeCenterListC(feeC);
|
|
|
- for (FeeCenter item : feeCenterList) {
|
|
|
+ /*for (FeeCenter item : feeCenterList) {
|
|
|
if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
item.setCorpCnName(item.getShortName());
|
|
|
} else {
|
|
|
@@ -1130,7 +1130,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else {
|
|
|
item.setBillCorpCnName("无");
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
// 提取汇率
|
|
|
bills.setRate(feeCenterList.get(0).getExrate());
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
@@ -1223,7 +1223,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
bills.setFeeCenterListC(feeC);
|
|
|
}
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
- for (FeeCenter item : feeCenterList) {
|
|
|
+ /*for (FeeCenter item : feeCenterList) {
|
|
|
if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
item.setCorpCnName(item.getShortName());
|
|
|
} else {
|
|
|
@@ -1234,7 +1234,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else {
|
|
|
item.setBillCorpCnName("无");
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
Comparator.comparing(f -> f.getFeeId() + f.getCorpId() + f.getCurCode() + f.getDc()))), ArrayList::new));
|
|
|
@@ -1932,7 +1932,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}).collect(Collectors.toList());
|
|
|
}
|
|
|
|
|
|
- for (FeeCenter item : feeCenterListMh) {
|
|
|
+ /*for (FeeCenter item : feeCenterListMh) {
|
|
|
if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
item.setCorpCnName(item.getShortName());
|
|
|
} else {
|
|
|
@@ -1943,7 +1943,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else {
|
|
|
item.setBillCorpCnName("无");
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
for (Bills item : billsList) {
|
|
|
item.setPrintPeople(AuthUtil.getUserName());
|
|
|
List<FeeCenter> feeD = feeCenterListMh.stream().filter(e -> MagicValues.D.equals(e.getDc())
|
|
|
@@ -2049,7 +2049,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
List<FeeCenter> feeC = feeCenterList.stream().filter(e -> MagicValues.C.equals(e.getDc())).collect(Collectors.toList());
|
|
|
bills.setFeeCenterListC(feeC);
|
|
|
|
|
|
- for (FeeCenter item : feeCenterList) {
|
|
|
+ /*for (FeeCenter item : feeCenterList) {
|
|
|
if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
item.setCorpCnName(item.getShortName());
|
|
|
} else {
|
|
|
@@ -2060,7 +2060,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else {
|
|
|
item.setBillCorpCnName("无");
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
bills.setRate(feeCenterList.get(0).getExrate());
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
@@ -2161,7 +2161,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
List<FeeCenter> feeC = feeCenterList.stream().filter(e -> MagicValues.C.equals(e.getDc())).collect(Collectors.toList());
|
|
|
bills.setFeeCenterListC(feeC);
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
- for (FeeCenter item : feeCenterList) {
|
|
|
+ /*for (FeeCenter item : feeCenterList) {
|
|
|
if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
item.setCorpCnName(item.getShortName());
|
|
|
} else {
|
|
|
@@ -2172,7 +2172,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else {
|
|
|
item.setBillCorpCnName("无");
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
Comparator.comparing(f -> f.getFeeId() + f.getCorpId() + f.getCurCode() + f.getDc()))), ArrayList::new));
|
|
|
@@ -2747,10 +2747,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
Amends amends = amendsService.getById(billId);
|
|
|
if (amends != null) {
|
|
|
String exrateType = currencyUtils.standardCurrency(amends.getBranchId());
|
|
|
- List<BCorps> bCorpsList = bCorpsService.list(new LambdaQueryWrapper<BCorps>()
|
|
|
+ /* List<BCorps> bCorpsList = bCorpsService.list(new LambdaQueryWrapper<BCorps>()
|
|
|
.eq(BCorps::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(BCorps::getIsDeleted, 0)
|
|
|
- .eq(BCorps::getStatus, 0));
|
|
|
+ .eq(BCorps::getStatus, 0));*/
|
|
|
List<Amends> amendsList = amendsService.list(new LambdaQueryWrapper<Amends>()
|
|
|
.eq(Amends::getOrigId, amends.getOrigId())
|
|
|
.eq(Amends::getStatus, 3)
|
|
|
@@ -2783,12 +2783,12 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (biz.isSuccess()) {
|
|
|
bills.setSrcType(biz.getData());
|
|
|
}
|
|
|
- BCorps carrierCorps = bCorpsList.stream().filter(e -> e.getId().equals(bills.getCarrierId())).findFirst().orElse(null);
|
|
|
+ /*BCorps carrierCorps = bCorpsList.stream().filter(e -> e.getId().equals(bills.getCarrierId())).findFirst().orElse(null);
|
|
|
if (carrierCorps != null && ObjectUtils.isNotNull(carrierCorps.getShortName())) {
|
|
|
bills.setCarrierCnName(carrierCorps.getShortName());
|
|
|
} else {
|
|
|
bills.setCarrierCnName(bills.getCarrierCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
bills.setPrintPeople(AuthUtil.getUserName());
|
|
|
String analysis = "";
|
|
|
if ("OWN".equals(bills.getSrcType())) {
|
|
|
@@ -2799,12 +2799,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
analysis = "业务员";
|
|
|
}
|
|
|
analysis = analysis + "/" + bills.getSrcCnName() + "/";
|
|
|
- BCorps corps = bCorpsList.stream().filter(e -> e.getId().equals(bills.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps corps = bCorpsList.stream().filter(e -> e.getId().equals(bills.getCorpId())).findFirst().orElse(null);
|
|
|
if (corps != null && ObjectUtils.isNotNull(corps.getShortName())) {
|
|
|
analysis += corps.getShortName();
|
|
|
} else {
|
|
|
analysis += bills.getCorpCnName();
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ analysis += bills.getCorpCnName();
|
|
|
bills.setAnalysis(analysis);
|
|
|
if (MagicValues.MM.equals(bills.getBillType()) || MagicValues.DD.equals(bills.getBillType())) {
|
|
|
List<Bills> billsList = billsService.list(new LambdaQueryWrapper<Bills>()
|
|
|
@@ -2839,7 +2840,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
}
|
|
|
feeCenterListMh.addAll(amendFeeCenterList);
|
|
|
- for (FeeCenter items : feeCenterListMh) {
|
|
|
+ /*for (FeeCenter items : feeCenterListMh) {
|
|
|
if (ObjectUtils.isNotNull(items.getShortName())) {
|
|
|
items.setCorpCnName(items.getShortName());
|
|
|
} else {
|
|
|
@@ -2850,7 +2851,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else {
|
|
|
items.setBillCorpCnName("无");
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
List<FeeCenter> feeCenterList = feeCenterListMh.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
Comparator.comparing(f -> f.getFeeId() + f.getCorpId() + f.getCurCode() + f.getReportType()))), ArrayList::new));
|
|
|
@@ -2931,12 +2932,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListD.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setBillCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountD(feeCenterListD.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocD(feeCenterListD.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -2944,12 +2946,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListUsdD.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setBillCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountUsdD(feeCenterListUsdD.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocD(feeCenterListUsdD.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -2957,12 +2960,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListC.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountC(feeCenterListC.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocC(feeCenterListC.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -2970,12 +2974,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListUsdC.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountUsdC(feeCenterListUsdC.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocC(feeCenterListUsdC.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -3014,7 +3019,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
List<FeeCenter> amendsFeeCenterListMhs = amendsFeeCenterListMh.stream().filter(e -> amendIdList.contains(e.getPid()))
|
|
|
.collect(Collectors.toList());
|
|
|
if (!amendsFeeCenterListMhs.isEmpty()) {
|
|
|
- for (FeeCenter items : amendsFeeCenterListMhs) {
|
|
|
+ /*for (FeeCenter items : amendsFeeCenterListMhs) {
|
|
|
if (ObjectUtils.isNotNull(items.getShortName())) {
|
|
|
items.setCorpCnName(items.getShortName());
|
|
|
} else {
|
|
|
@@ -3025,7 +3030,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else {
|
|
|
items.setBillCorpCnName("无");
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
List<FeeCenter> feeCenterList = amendsFeeCenterListMhs.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
Comparator.comparing(f -> f.getFeeId() + f.getCorpId() + f.getCurCode() + f.getReportType()))), ArrayList::new));
|
|
|
@@ -3106,12 +3111,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListD.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setBillCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountD(feeCenterListD.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocD(feeCenterListD.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -3119,12 +3125,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListUsdD.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setBillCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountUsdD(feeCenterListUsdD.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocD(feeCenterListUsdD.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -3132,12 +3139,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListC.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountC(feeCenterListC.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocC(feeCenterListC.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -3145,12 +3153,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListUsdC.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountUsdC(feeCenterListUsdC.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocC(feeCenterListUsdC.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -3190,7 +3199,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterList.addAll(amendFeeCenterList);
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
bills.setRate(feeCenterList.get(0).getExrate());
|
|
|
- for (FeeCenter item : feeCenterList) {
|
|
|
+ /*for (FeeCenter item : feeCenterList) {
|
|
|
if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
item.setCorpCnName(item.getShortName());
|
|
|
} else {
|
|
|
@@ -3201,7 +3210,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else {
|
|
|
item.setBillCorpCnName("无");
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
feeCenterList.stream().filter(e -> ObjectUtils.isNull(e.getReportType())).forEach(e -> e.setReportType("0"));
|
|
|
List<FeeCenterReports> feeCenterReportList = new ArrayList<>();
|
|
|
for (FeeCenter fee : feeCenterList) {
|
|
|
@@ -3281,48 +3290,52 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setDc(fee.getDc());
|
|
|
|
|
|
if (!feeCenterListD.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setBillCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountD(feeCenterListD.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocD(feeCenterListD.stream().map(FeeCenter::getAmountLoc)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
}
|
|
|
if (!feeCenterListUsdD.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setBillCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountUsdD(feeCenterListUsdD.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocD(feeCenterListUsdD.stream().map(FeeCenter::getAmountLoc)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
}
|
|
|
if (!feeCenterListC.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountC(feeCenterListC.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocC(feeCenterListC.stream().map(FeeCenter::getAmountLoc)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
}
|
|
|
if (!feeCenterListUsdC.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountUsdC(feeCenterListUsdC.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocC(feeCenterListUsdC.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -3362,7 +3375,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
feeCenterList.addAll(amendFeeCenterList);
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
- for (FeeCenter item : feeCenterList) {
|
|
|
+ /*for (FeeCenter item : feeCenterList) {
|
|
|
if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
item.setCorpCnName(item.getShortName());
|
|
|
} else {
|
|
|
@@ -3373,7 +3386,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else {
|
|
|
item.setBillCorpCnName("无");
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
feeCenterList.stream().filter(e -> ObjectUtils.isNull(e.getReportType())).forEach(e -> e.setReportType("0"));
|
|
|
List<FeeCenterReports> feeCenterReportList = new ArrayList<>();
|
|
|
for (FeeCenter fee : feeCenterList) {
|
|
|
@@ -3453,12 +3466,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListD.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setBillCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountD(feeCenterListD.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocD(feeCenterListD.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -3466,12 +3480,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListUsdD.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setBillCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountUsdD(feeCenterListUsdD.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocD(feeCenterListUsdD.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -3479,12 +3494,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListC.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountC(feeCenterListC.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocC(feeCenterListC.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -3492,12 +3508,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListUsdC.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountUsdC(feeCenterListUsdC.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocC(feeCenterListUsdC.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -3531,7 +3548,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
}
|
|
|
feeCenterListMh.addAll(amendFeeCenterList);*/
|
|
|
- for (FeeCenter item : feeCenterListMh) {
|
|
|
+ /*for (FeeCenter item : feeCenterListMh) {
|
|
|
if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
item.setCorpCnName(item.getShortName());
|
|
|
} else {
|
|
|
@@ -3542,7 +3559,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else {
|
|
|
item.setBillCorpCnName("无");
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
List<FeeCenterReports> feeCenterReportList = new ArrayList<>();
|
|
|
for (FeeCenter fee : feeCenterListMh) {
|
|
|
FeeCenterReports feeCenterReports = new FeeCenterReports();
|
|
|
@@ -3621,12 +3638,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListD.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setBillCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountD(feeCenterListD.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocD(feeCenterListD.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -3634,12 +3652,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListUsdD.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /* BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setBillCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setBillCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountUsdD(feeCenterListUsdD.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocD(feeCenterListUsdD.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -3647,12 +3666,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListC.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountC(feeCenterListC.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocC(feeCenterListC.stream().map(FeeCenter::getAmountLoc)
|
|
|
@@ -3660,12 +3680,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
|
|
|
if (!feeCenterListUsdC.isEmpty()) {
|
|
|
- BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
+ /*BCorps bCorps = bCorpsList.stream().filter(e -> e.getId().equals(fee.getCorpId())).findFirst().orElse(null);
|
|
|
if (bCorps != null && ObjectUtils.isNotNull(bCorps.getShortName())) {
|
|
|
feeCenterReports.setCorpCnName(bCorps.getShortName());
|
|
|
} else {
|
|
|
feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ feeCenterReports.setCorpCnName(fee.getCorpCnName());
|
|
|
feeCenterReports.setAmountUsdC(feeCenterListUsdC.stream().map(FeeCenter::getAmount)
|
|
|
.filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
feeCenterReports.setAmountLocC(feeCenterListUsdC.stream().map(FeeCenter::getAmountLoc)
|