|
|
@@ -219,6 +219,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.in(FeeCenter::getPid, ids)
|
|
|
.eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(FeeCenter::getIsDeleted, 0));
|
|
|
+ for (FeeCenter item : feeCenterListMh) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
for (Bills item : billsList) {
|
|
|
List<FeeCenter> feeCenterList = feeCenterListMh.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
@@ -289,6 +299,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.eq(FeeCenter::getPid, bills.getId())
|
|
|
.eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(FeeCenter::getIsDeleted, 0));
|
|
|
+ for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
@@ -364,6 +384,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(FeeCenter::getIsDeleted, 0));
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
+ for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
Comparator.comparing(f -> f.getFeeId() + f.getCorpId() + f.getCurCode()))), ArrayList::new));
|
|
|
@@ -431,6 +461,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.eq(FeeCenter::getPid, details.getId())
|
|
|
.eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(FeeCenter::getIsDeleted, 0));
|
|
|
+ for (FeeCenter item : feeCenterListMh) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
List<FeeCenter> feeCenterList1 = feeCenterListMh.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
Comparator.comparing(f -> f.getFeeId() + f.getCorpId() + f.getCurCode()))), ArrayList::new));
|
|
|
@@ -694,6 +734,14 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
BigDecimal amountProfitLoc;
|
|
|
List<FeeCenterReports> feeCenterReportsList = new ArrayList<>();
|
|
|
for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
amountDrUsd = amountDrUsd.add(item.getAmount());
|
|
|
@@ -801,6 +849,14 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
BigDecimal amountProfitLoc;
|
|
|
List<FeeCenterReports> feeCenterReportsList = new ArrayList<>();
|
|
|
for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
amountDrUsd = amountDrUsd.add(item.getAmount());
|
|
|
@@ -1356,6 +1412,14 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
BigDecimal amountProfitLoc;
|
|
|
List<FeeCenterReports> feeCenterReportsList = new ArrayList<>();
|
|
|
for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
amountDrUsd = amountDrUsd.add(item.getAmount());
|
|
|
@@ -1447,6 +1511,14 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
BigDecimal amountProfitLoc;
|
|
|
List<FeeCenterReports> feeCenterReportsList = new ArrayList<>();
|
|
|
for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
amountDrUsd = amountDrUsd.add(item.getAmount());
|
|
|
@@ -1579,6 +1651,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
}
|
|
|
feeCenterListMh.addAll(amendFeeCenterList);
|
|
|
+ for (FeeCenter items : feeCenterListMh) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(items.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ items.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(items.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ items.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
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));
|
|
|
@@ -1729,6 +1811,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
feeCenterList.addAll(amendFeeCenterList);
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
+ for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
feeCenterList.stream().filter(e -> ObjectUtils.isNull(e.getReportType())).forEach(e -> e.setReportType("0"));
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
@@ -1882,6 +1974,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
feeCenterList.addAll(amendFeeCenterList);
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
+ for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
feeCenterList.stream().filter(e -> ObjectUtils.isNull(e.getReportType())).forEach(e -> e.setReportType("0"));
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
@@ -2032,6 +2134,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
}
|
|
|
feeCenterListMh.addAll(amendFeeCenterList);
|
|
|
+ for (FeeCenter item : feeCenterListMh) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
List<FeeCenter> feeCenterList1 = feeCenterListMh.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
Comparator.comparing(f -> f.getFeeId() + f.getCorpId() + f.getCurCode() + f.getReportType()))), ArrayList::new));
|
|
|
@@ -2417,6 +2529,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
}
|
|
|
feeCenterListMh.addAll(amendFeeCenterList);
|
|
|
+ for (FeeCenter items : feeCenterListMh) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(items.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ items.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(items.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ items.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
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));
|
|
|
@@ -2567,6 +2689,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
feeCenterList.addAll(amendFeeCenterList);
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
+ for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
feeCenterList.stream().filter(e -> ObjectUtils.isNull(e.getReportType())).forEach(e -> e.setReportType("0"));
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
@@ -2720,6 +2852,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
feeCenterList.addAll(amendFeeCenterList);
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
+ for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
feeCenterList.stream().filter(e -> ObjectUtils.isNull(e.getReportType())).forEach(e -> e.setReportType("0"));
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
@@ -2870,6 +3012,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
}
|
|
|
feeCenterListMh.addAll(amendFeeCenterList);
|
|
|
+ for (FeeCenter item : feeCenterListMh) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
List<FeeCenter> feeCenterList1 = feeCenterListMh.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
Comparator.comparing(f -> f.getFeeId() + f.getCorpId() + f.getCurCode() + f.getReportType()))), ArrayList::new));
|
|
|
@@ -3210,6 +3362,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(FeeCenter::getIsDeleted, 0));
|
|
|
for (AeaBills item : billsList) {
|
|
|
+ for (FeeCenter items : feeCenterListMh) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(items.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ items.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(items.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ items.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
List<FeeCenter> feeCenterList = feeCenterListMh.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
Comparator.comparing(f -> f.getFeeId() + f.getCorpId() + f.getCurCode()))), ArrayList::new));
|
|
|
@@ -3280,6 +3442,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(FeeCenter::getIsDeleted, 0));
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
+ for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
Comparator.comparing(f -> f.getFeeId() + f.getCorpId() + f.getCurCode()))), ArrayList::new));
|
|
|
@@ -3354,6 +3526,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(FeeCenter::getIsDeleted, 0));
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
+ for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
Comparator.comparing(f -> f.getFeeId() + f.getCorpId() + f.getCurCode()))), ArrayList::new));
|
|
|
@@ -3421,6 +3603,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.eq(FeeCenter::getPid, details.getId())
|
|
|
.eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(FeeCenter::getIsDeleted, 0));
|
|
|
+ for (FeeCenter item : feeCenterListMh) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
List<FeeCenter> feeCenterList1 = feeCenterListMh.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
Comparator.comparing(f -> f.getFeeId() + f.getCorpId() + f.getCurCode()))), ArrayList::new));
|
|
|
@@ -3647,6 +3839,14 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
BigDecimal amountProfitLoc;
|
|
|
List<FeeCenterReports> feeCenterReportsList = new ArrayList<>();
|
|
|
for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
amountDrUsd = amountDrUsd.add(item.getAmount());
|
|
|
@@ -3754,6 +3954,14 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
BigDecimal amountProfitLoc;
|
|
|
List<FeeCenterReports> feeCenterReportsList = new ArrayList<>();
|
|
|
for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
amountDrUsd = amountDrUsd.add(item.getAmount());
|
|
|
@@ -3834,6 +4042,16 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(FeeCenter::getIsDeleted, 0));
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
+ for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
+ }
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
Comparator.comparing(f -> f.getFeeId() + f.getCorpId() + f.getCurCode()))), ArrayList::new));
|
|
|
@@ -3984,6 +4202,14 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
BigDecimal amountProfitLoc;
|
|
|
List<FeeCenterReports> feeCenterReportsList = new ArrayList<>();
|
|
|
for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
amountDrUsd = amountDrUsd.add(item.getAmount());
|
|
|
@@ -4080,6 +4306,14 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
BigDecimal amountProfitLoc;
|
|
|
List<FeeCenterReports> feeCenterReportsList = new ArrayList<>();
|
|
|
for (FeeCenter item : feeCenterList) {
|
|
|
+ BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }
|
|
|
+ BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
amountDrUsd = amountDrUsd.add(item.getAmount());
|