|
|
@@ -20,7 +20,6 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
-import io.seata.spring.annotation.GlobalTransactional;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springblade.core.secure.utils.AuthUtil;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
@@ -164,6 +163,9 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
public R<Map<String, Object>> getReportData(String billId, String reportCode, String groupCode, String corpIds,
|
|
|
String itemIds, String type, String curCode) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
+ if (ObjectUtils.isNull(billId)) {
|
|
|
+ throw new RuntimeException("缺少比要参数");
|
|
|
+ }
|
|
|
R<Dept> res = sysClient.getDept(deptUtils.getDeptPid());
|
|
|
Dept dept;
|
|
|
if (res.isSuccess() && res.getData() != null) {
|
|
|
@@ -185,9 +187,9 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.eq(BCurrency::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(BCurrency::getIsDeleted, 0)
|
|
|
.eq(BCurrency::getCode, MagicValues.USD));
|
|
|
- List<BCorps> bCorpsLists = bCorpsService.list(new LambdaQueryWrapper<BCorps>()
|
|
|
+ /*List<BCorps> bCorpsLists = bCorpsService.list(new LambdaQueryWrapper<BCorps>()
|
|
|
.eq(BCorps::getTenantId, AuthUtil.getTenantId())
|
|
|
- .eq(BCorps::getIsDeleted, 0));
|
|
|
+ .eq(BCorps::getIsDeleted, 0));*/
|
|
|
if (MagicValues.BUSINESS.equals(reportCode) && MagicValues.SALES_REPORT.equals(groupCode) && (MagicValues.HYCK.equals(type) || MagicValues.HYJK.equals(type))) {
|
|
|
List<Bills> list = new ArrayList<>();
|
|
|
String profitMargin = sysClient.getParamServiceNew(MagicValues.PROFIT_MARGIN);
|
|
|
@@ -220,14 +222,27 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.in(FeeCenter::getPid, ids)
|
|
|
.eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(FeeCenter::getIsDeleted, 0));
|
|
|
+ if (feeCenterListMh.isEmpty()) {
|
|
|
+ throw new RuntimeException("请先维护费用信息");
|
|
|
+ }
|
|
|
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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
for (Bills item : billsList) {
|
|
|
@@ -301,13 +316,23 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
if (!feeCenterList.isEmpty()) {
|
|
|
@@ -384,15 +409,28 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.eq(FeeCenter::getPid, bills.getId())
|
|
|
.eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
.eq(FeeCenter::getIsDeleted, 0));
|
|
|
+ if (feeCenterList.isEmpty()) {
|
|
|
+ throw new RuntimeException("请先维护费用信息");
|
|
|
+ }
|
|
|
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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
@@ -463,13 +501,23 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
List<FeeCenter> feeCenterList1 = feeCenterListMh.stream()
|
|
|
@@ -796,13 +844,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
@@ -915,13 +973,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
@@ -1500,13 +1568,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
@@ -1602,13 +1680,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
@@ -1743,13 +1831,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(items.getShortName())) {
|
|
|
+ items.setCorpCnName(items.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(items.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ items.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ items.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(items.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- items.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(items.getBillShortName())) {
|
|
|
+ items.setBillCorpCnName(items.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(items.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ items.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ items.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
List<FeeCenter> feeCenterList = feeCenterListMh.stream()
|
|
|
@@ -1903,13 +2001,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
feeCenterList.stream().filter(e -> ObjectUtils.isNull(e.getReportType())).forEach(e -> e.setReportType("0"));
|
|
|
@@ -2066,13 +2174,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
feeCenterList.stream().filter(e -> ObjectUtils.isNull(e.getReportType())).forEach(e -> e.setReportType("0"));
|
|
|
@@ -2226,13 +2344,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
List<FeeCenter> feeCenterList1 = feeCenterListMh.stream()
|
|
|
@@ -2653,13 +2781,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(items.getShortName())) {
|
|
|
+ items.setCorpCnName(items.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(items.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ items.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ items.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(items.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- items.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(items.getBillShortName())) {
|
|
|
+ items.setBillCorpCnName(items.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(items.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ items.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ items.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
List<FeeCenter> feeCenterList = feeCenterListMh.stream()
|
|
|
@@ -2813,13 +2951,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
feeCenterList.stream().filter(e -> ObjectUtils.isNull(e.getReportType())).forEach(e -> e.setReportType("0"));
|
|
|
@@ -2976,13 +3124,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
feeCenterList.stream().filter(e -> ObjectUtils.isNull(e.getReportType())).forEach(e -> e.setReportType("0"));
|
|
|
@@ -3136,13 +3294,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
List<FeeCenter> feeCenterList1 = feeCenterListMh.stream()
|
|
|
@@ -3486,13 +3654,23 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.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());
|
|
|
+ if (ObjectUtils.isNotNull(items.getShortName())) {
|
|
|
+ items.setCorpCnName(items.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(items.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ items.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ items.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(items.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- items.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(items.getBillShortName())) {
|
|
|
+ items.setBillCorpCnName(items.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(items.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ items.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ items.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
List<FeeCenter> feeCenterList = feeCenterListMh.stream()
|
|
|
@@ -3566,13 +3744,23 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
@@ -3650,13 +3838,23 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
@@ -3727,13 +3925,23 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
List<FeeCenter> feeCenterList1 = feeCenterListMh.stream()
|
|
|
@@ -3968,13 +4176,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
@@ -4086,13 +4304,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
@@ -4175,13 +4403,23 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
}
|
|
|
List<FeeCenter> feeCenters = feeCenterList.stream()
|
|
|
@@ -4337,13 +4575,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|
|
|
@@ -4444,13 +4692,23 @@ 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());
|
|
|
+ if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
+ item.setCorpCnName(item.getShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorps = bCorpsLists.stream().filter(e -> e.getId().equals(item.getCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorps != null) {
|
|
|
+ item.setCorpCnName(bCorps.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setCorpCnName("无");
|
|
|
}
|
|
|
- BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
- if (bCorp != null) {
|
|
|
- item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ if (ObjectUtils.isNotNull(item.getBillShortName())) {
|
|
|
+ item.setBillCorpCnName(item.getBillShortName());
|
|
|
+ } else {
|
|
|
+ /*BCorps bCorp = bCorpsLists.stream().filter(e -> e.getId().equals(item.getBillCorpId())).findFirst().orElse(null);
|
|
|
+ if (bCorp != null) {
|
|
|
+ item.setBillCorpCnName(bCorp.getShortName());
|
|
|
+ }*/
|
|
|
+ item.setBillCorpCnName("无");
|
|
|
}
|
|
|
if (MagicValues.D.equals(item.getDc())) {
|
|
|
if (MagicValues.USD.equals(item.getCurCode())) {
|