|
|
@@ -62,6 +62,11 @@ import org.springblade.los.finance.stl.entity.FinStlBills;
|
|
|
import org.springblade.los.finance.stl.entity.FinStlBillsItems;
|
|
|
import org.springblade.los.finance.stl.service.IFinStlBillsItemsService;
|
|
|
import org.springblade.los.finance.stl.service.IFinStlBillsService;
|
|
|
+import org.springblade.los.trade.entity.Agent;
|
|
|
+import org.springblade.los.trade.entity.DispatchVehicles;
|
|
|
+import org.springblade.los.trade.report.ReconciliationSummaryReport;
|
|
|
+import org.springblade.los.trade.service.IDispatchVehiclesService;
|
|
|
+import org.springblade.los.trade.service.IReportDataTradeService;
|
|
|
import org.springblade.system.entity.Dept;
|
|
|
import org.springblade.system.entity.DictBiz;
|
|
|
import org.springblade.system.feign.IDictBizClient;
|
|
|
@@ -135,6 +140,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
|
|
|
private final IHmmEdiService hmmEdiService;
|
|
|
|
|
|
+ private final IReportDataTradeService reportDataTradeService;
|
|
|
+
|
|
|
+ private final IDispatchVehiclesService dispatchVehiclesService;
|
|
|
+
|
|
|
@Override
|
|
|
public IPage<ReportsVO> selectReportsPage(IPage<ReportsVO> page, ReportsVO reports) {
|
|
|
return page.setRecords(baseMapper.selectReportsPage(page, reports));
|
|
|
@@ -699,6 +708,116 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else {
|
|
|
map.put(MagicValues.DATA, null);
|
|
|
}
|
|
|
+ } else if (MagicValues.RECONCILIATION_CENTER.equals(reportCode) && MagicValues.RECONCILIATION_SUMMARY.equals(groupCode)) {
|
|
|
+ List<FinStlBillsItems> finStlBillsItemsList = finStlBillsItemsService.list(new LambdaQueryWrapper<FinStlBillsItems>()
|
|
|
+ .eq(FinStlBillsItems::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(FinStlBillsItems::getIsDeleted, 0)
|
|
|
+ .eq(FinStlBillsItems::getPid, billId));
|
|
|
+ Agent agent = new Agent();
|
|
|
+ if (!finStlBillsItemsList.isEmpty()) {
|
|
|
+ List<Long> feeCenterIdList = finStlBillsItemsList.stream().map(FinStlBillsItems::getSourceId).collect(Collectors.toList());
|
|
|
+ List<FeeCenter> feeCenterList = feeCenterService.list(new LambdaQueryWrapper<FeeCenter>()
|
|
|
+ .eq(FeeCenter::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(FeeCenter::getIsDeleted, 0)
|
|
|
+ .in(FeeCenter::getId, feeCenterIdList));
|
|
|
+ List<Long> idList = feeCenterList.stream().filter(e -> "SI".equals(e.getBusinessType()))
|
|
|
+ .map(FeeCenter::getPid).distinct().collect(Collectors.toList());
|
|
|
+ List<Bills> billsList = billsService.list(new LambdaQueryWrapper<Bills>()
|
|
|
+ .eq(Bills::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(Bills::getIsDeleted, 0)
|
|
|
+ .in(Bills::getId, idList));
|
|
|
+ List<PreContainers> preContainersList = preContainersService.list(new LambdaQueryWrapper<PreContainers>()
|
|
|
+ .eq(PreContainers::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(PreContainers::getIsDeleted, 0)
|
|
|
+ .in(PreContainers::getPid, idList));
|
|
|
+ List<DispatchVehicles> dispatchVehiclesList = dispatchVehiclesService.list(new LambdaQueryWrapper<DispatchVehicles>()
|
|
|
+ .eq(DispatchVehicles::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(DispatchVehicles::getIsDeleted, 0)
|
|
|
+ .in(DispatchVehicles::getPid, idList));
|
|
|
+ List<ReconciliationSummaryReport> list = new ArrayList<>();
|
|
|
+ int count = 1;
|
|
|
+ List<Long> preContainersId = new ArrayList<>();
|
|
|
+ for (PreContainers item : preContainersList) {
|
|
|
+ ReconciliationSummaryReport detail = new ReconciliationSummaryReport();
|
|
|
+ detail.setSort(count);
|
|
|
+ count++;
|
|
|
+ if (!billsList.isEmpty()) {
|
|
|
+ Bills bills = billsList.stream().filter(e -> e.getId().equals(item.getPid())).findFirst().orElse(null);
|
|
|
+ if (bills != null) {
|
|
|
+ detail.setEta(bills.getEta());
|
|
|
+ detail.setCorpName(bills.getCorpCnName());
|
|
|
+ detail.setContractNo(bills.getBookingNo());
|
|
|
+ detail.setBillNo(bills.getMblno());
|
|
|
+ detail.setFreeBoxDate(bills.getIqNo());
|
|
|
+ detail.setArrivalDate(bills.getEta());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ detail.setBoxType(item.getCntrTypeCode());
|
|
|
+ detail.setBoxNo(item.getBoxNo());
|
|
|
+ detail.setGoodsName(item.getGoodsName());
|
|
|
+ if (!dispatchVehiclesList.isEmpty()) {
|
|
|
+ DispatchVehicles dispatchVehicles = dispatchVehiclesList.stream().filter(e -> e.getBoxItemsId().equals(item.getId())).findFirst().orElse(null);
|
|
|
+ if (dispatchVehicles != null) {
|
|
|
+ detail.setSuitcaseDate(dispatchVehicles.getPickupDate());
|
|
|
+ detail.setHaulbackDate(dispatchVehicles.getReturnDate());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (preContainersId.isEmpty() || !preContainersId.contains(item.getPid())) {
|
|
|
+ detail.setCostName1(feeCenterList.stream().filter(e -> "BGF".equals(e.getFeeCode()) && e.getPid().equals(item.getPid()))
|
|
|
+ .map(FeeCenter::getAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ detail.setCostName2(feeCenterList.stream().filter(e -> "ZXF".equals(e.getFeeCode()) && e.getPid().equals(item.getPid()))
|
|
|
+ .map(FeeCenter::getAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ detail.setCostName3(feeCenterList.stream().filter(e -> "XXX".equals(e.getFeeCode()) && e.getPid().equals(item.getPid()))
|
|
|
+ .map(FeeCenter::getAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ detail.setCostName4(feeCenterList.stream().filter(e -> "MTZL".equals(e.getFeeCode()) && e.getPid().equals(item.getPid()))
|
|
|
+ .map(FeeCenter::getAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ detail.setCostName5(feeCenterList.stream().filter(e -> "LYF".equals(e.getFeeCode()) && e.getPid().equals(item.getPid()))
|
|
|
+ .map(FeeCenter::getAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ detail.setCostName6(feeCenterList.stream().filter(e -> "CCF".equals(e.getFeeCode()) && e.getPid().equals(item.getPid()))
|
|
|
+ .map(FeeCenter::getAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ detail.setCostName7(feeCenterList.stream().filter(e -> "CRKF".equals(e.getFeeCode()) && e.getPid().equals(item.getPid()))
|
|
|
+ .map(FeeCenter::getAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ detail.setCostName8(feeCenterList.stream().filter(e -> "CYZY".equals(e.getFeeCode()) && e.getPid().equals(item.getPid()))
|
|
|
+ .map(FeeCenter::getAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ detail.setCostName9(feeCenterList.stream().filter(e -> "YCF".equals(e.getFeeCode()) && e.getPid().equals(item.getPid()))
|
|
|
+ .map(FeeCenter::getAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ detail.setOther(feeCenterList.stream().filter(e -> !"BGF,ZXF,XXX,MTZL,LYF,CCF,CRKF,CYZY,YCF".contains(e.getFeeCode())
|
|
|
+ && e.getPid().equals(item.getPid())).map(FeeCenter::getAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ detail.setTotal(feeCenterList.stream().filter(e -> e.getPid().equals(item.getPid()))
|
|
|
+ .map(FeeCenter::getAmount).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ preContainersId.add(item.getPid());
|
|
|
+ } else {
|
|
|
+ detail.setCostName1(new BigDecimal("0.00"));
|
|
|
+ detail.setCostName2(new BigDecimal("0.00"));
|
|
|
+ detail.setCostName3(new BigDecimal("0.00"));
|
|
|
+ detail.setCostName4(new BigDecimal("0.00"));
|
|
|
+ detail.setCostName5(new BigDecimal("0.00"));
|
|
|
+ detail.setCostName6(new BigDecimal("0.00"));
|
|
|
+ detail.setCostName7(new BigDecimal("0.00"));
|
|
|
+ detail.setCostName8(new BigDecimal("0.00"));
|
|
|
+ detail.setCostName9(new BigDecimal("0.00"));
|
|
|
+ detail.setOther(new BigDecimal("0.00"));
|
|
|
+ detail.setTotal(new BigDecimal("0.00"));
|
|
|
+ }
|
|
|
+ list.add(detail);
|
|
|
+ }
|
|
|
+ agent.setCostName1(list.stream().map(ReconciliationSummaryReport::getCostName1).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ agent.setCostName2(list.stream().map(ReconciliationSummaryReport::getCostName2).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ agent.setCostName3(list.stream().map(ReconciliationSummaryReport::getCostName3).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ agent.setCostName4(list.stream().map(ReconciliationSummaryReport::getCostName4).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ agent.setCostName5(list.stream().map(ReconciliationSummaryReport::getCostName5).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ agent.setCostName6(list.stream().map(ReconciliationSummaryReport::getCostName6).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ agent.setCostName7(list.stream().map(ReconciliationSummaryReport::getCostName7).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ agent.setCostName8(list.stream().map(ReconciliationSummaryReport::getCostName8).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ agent.setCostName9(list.stream().map(ReconciliationSummaryReport::getCostName9).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ agent.setOther(list.stream().map(ReconciliationSummaryReport::getOther).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ agent.setTotal(list.stream().map(ReconciliationSummaryReport::getTotal).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
|
|
|
+ agent.setReportList(list);
|
|
|
+ agent.setDept(dept);
|
|
|
+ map.put(MagicValues.DATA, agent);
|
|
|
+ } else {
|
|
|
+ map.put(MagicValues.DATA, null);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return R.data(map);
|
|
|
@@ -822,7 +941,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
bills.setGrossMargin(new BigDecimal(MagicValues.ZERO));
|
|
|
}
|
|
|
|
|
|
- if(isDebug) {
|
|
|
+ if (isDebug) {
|
|
|
System.out.println("GrossMargin: " + bills.getGrossMargin().toString());
|
|
|
}
|
|
|
|
|
|
@@ -859,9 +978,11 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
}
|
|
|
}
|
|
|
for (Bills item : billsList) {
|
|
|
- List<FeeCenter> feeD = feeCenterListMh.stream().filter(e->MagicValues.D.equals(e.getDc())).collect(Collectors.toList());;
|
|
|
+ List<FeeCenter> feeD = feeCenterListMh.stream().filter(e -> MagicValues.D.equals(e.getDc())).collect(Collectors.toList());
|
|
|
+ ;
|
|
|
item.setFeeCenterListD(feeD);
|
|
|
- List<FeeCenter> feeC = feeCenterListMh.stream().filter(e->MagicValues.C.equals(e.getDc())).collect(Collectors.toList());;
|
|
|
+ List<FeeCenter> feeC = feeCenterListMh.stream().filter(e -> MagicValues.C.equals(e.getDc())).collect(Collectors.toList());
|
|
|
+ ;
|
|
|
item.setFeeCenterListC(feeC);
|
|
|
List<FeeCenter> feeCenterList = feeCenterListMh.stream()
|
|
|
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(
|
|
|
@@ -935,9 +1056,11 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.eq(FeeCenter::getIsDeleted, 0));
|
|
|
allFeeCenter.addAll(feeCenterList);
|
|
|
|
|
|
- List<FeeCenter> feeD = feeCenterList.stream().filter(e->MagicValues.D.equals(e.getDc())).collect(Collectors.toList());;
|
|
|
+ List<FeeCenter> feeD = feeCenterList.stream().filter(e -> MagicValues.D.equals(e.getDc())).collect(Collectors.toList());
|
|
|
+ ;
|
|
|
bills.setFeeCenterListD(feeD);
|
|
|
- List<FeeCenter> feeC = feeCenterList.stream().filter(e->MagicValues.C.equals(e.getDc())).collect(Collectors.toList());;
|
|
|
+ List<FeeCenter> feeC = feeCenterList.stream().filter(e -> MagicValues.C.equals(e.getDc())).collect(Collectors.toList());
|
|
|
+ ;
|
|
|
bills.setFeeCenterListC(feeC);
|
|
|
|
|
|
for (FeeCenter item : feeCenterList) {
|
|
|
@@ -1033,9 +1156,11 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
throw new RuntimeException("请先维护费用信息");
|
|
|
}
|
|
|
allFeeCenter.addAll(feeCenterList);
|
|
|
- List<FeeCenter> feeD = feeCenterList.stream().filter(e->MagicValues.D.equals(e.getDc())).collect(Collectors.toList());;
|
|
|
+ List<FeeCenter> feeD = feeCenterList.stream().filter(e -> MagicValues.D.equals(e.getDc())).collect(Collectors.toList());
|
|
|
+ ;
|
|
|
bills.setFeeCenterListD(feeD);
|
|
|
- List<FeeCenter> feeC = feeCenterList.stream().filter(e->MagicValues.C.equals(e.getDc())).collect(Collectors.toList());;
|
|
|
+ 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) {
|
|
|
@@ -1120,9 +1245,11 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
|
|
|
allFeeCenter.addAll(feeCenterListMh);
|
|
|
|
|
|
- List<FeeCenter> feeD2 = feeCenterListMh.stream().filter(e->MagicValues.D.equals(e.getDc())).collect(Collectors.toList());;
|
|
|
+ List<FeeCenter> feeD2 = feeCenterListMh.stream().filter(e -> MagicValues.D.equals(e.getDc())).collect(Collectors.toList());
|
|
|
+ ;
|
|
|
details.setFeeCenterListD(feeD2);
|
|
|
- List<FeeCenter> feeC2 = feeCenterListMh.stream().filter(e->MagicValues.C.equals(e.getDc())).collect(Collectors.toList());;
|
|
|
+ List<FeeCenter> feeC2 = feeCenterListMh.stream().filter(e -> MagicValues.C.equals(e.getDc())).collect(Collectors.toList());
|
|
|
+ ;
|
|
|
details.setFeeCenterListC(feeC2);
|
|
|
for (FeeCenter item : feeCenterListMh) {
|
|
|
if (ObjectUtils.isNotNull(item.getShortName())) {
|
|
|
@@ -1266,8 +1393,8 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
item.setGrossMargin(new BigDecimal(MagicValues.ZERO));
|
|
|
}
|
|
|
|
|
|
- if(isDebug) {
|
|
|
- System.out.println(item.getId().toString() + ", " + item.getBillNo() + ", GrossMargin: " + bills.getGrossMargin().toString());
|
|
|
+ if (isDebug) {
|
|
|
+ System.out.println(item.getId().toString() + ", " + item.getBillNo() + ", GrossMargin: " + bills.getGrossMargin().toString());
|
|
|
}
|
|
|
// 费用名称
|
|
|
// 1722822288795000833 O/F 海运费 145
|
|
|
@@ -1304,18 +1431,18 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
// 高收退费客户 Id
|
|
|
Long hpsCorpId = 0L;
|
|
|
|
|
|
- if(ObjectUtils.isNotNull(feeList)){
|
|
|
+ if (ObjectUtils.isNotNull(feeList)) {
|
|
|
for (FeeCenter fee : feeList) {
|
|
|
- if(specPSCorpId==0 && ObjectUtils.isNotNull(fee.getCorpId())){
|
|
|
- if(specPScorpIds.indexOf("," + fee.getCorpId().toString() + ",")>=0){
|
|
|
+ if (specPSCorpId == 0 && ObjectUtils.isNotNull(fee.getCorpId())) {
|
|
|
+ if (specPScorpIds.indexOf("," + fee.getCorpId().toString() + ",") >= 0) {
|
|
|
specPSCorpId = fee.getCorpId();
|
|
|
}
|
|
|
}
|
|
|
BigDecimal amt = fee.getAmount();
|
|
|
- if(MagicValues.C.equals(fee.getDc())){
|
|
|
+ if (MagicValues.C.equals(fee.getDc())) {
|
|
|
amt = amt.multiply(new BigDecimal(-1));
|
|
|
}
|
|
|
- if(MagicValues.USD.equals(fee.getCurCode())) {
|
|
|
+ if (MagicValues.USD.equals(fee.getCurCode())) {
|
|
|
if ("O/F".equals(fee.getFeeCode())) {
|
|
|
// 145
|
|
|
usdOFProfit = usdOFProfit.add(amt);
|
|
|
@@ -1325,14 +1452,14 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
psProfit = psProfit.subtract(amt);
|
|
|
}
|
|
|
if ("HP/S".equals(fee.getFeeCode())) {
|
|
|
- if(hpsCorpId==0 && ObjectUtils.isNotNull(fee.getCorpId())){
|
|
|
+ if (hpsCorpId == 0 && ObjectUtils.isNotNull(fee.getCorpId())) {
|
|
|
hpsCorpId = fee.getCorpId();
|
|
|
}
|
|
|
// 623
|
|
|
HPSProfit = HPSProfit.add(amt);
|
|
|
specProfit = specProfit.subtract(amt);
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
if ("O/F".equals(fee.getFeeCode())) {
|
|
|
// 145
|
|
|
ofInAmtProfit = ofInAmtProfit.add(amt.divide(new BigDecimal("6.8"), 2, BigDecimal.ROUND_HALF_UP));
|
|
|
@@ -1343,7 +1470,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
psInAmtProfit = psInAmtProfit.add(amt);
|
|
|
}
|
|
|
if ("HP/S".equals(fee.getFeeCode())) {
|
|
|
- if(hpsCorpId==0 && ObjectUtils.isNotNull(fee.getCorpId())){
|
|
|
+ if (hpsCorpId == 0 && ObjectUtils.isNotNull(fee.getCorpId())) {
|
|
|
hpsCorpId = fee.getCorpId();
|
|
|
}
|
|
|
// 623
|
|
|
@@ -1357,28 +1484,28 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
BCorps bCorps11 = bCorpsService.getById(item.getCorpId());
|
|
|
BigDecimal PsRate = new BigDecimal(BigInteger.ZERO);
|
|
|
Integer corpIsDC = 0;
|
|
|
- if(ObjectUtils.isNotNull(bCorps11)) {
|
|
|
+ if (ObjectUtils.isNotNull(bCorps11)) {
|
|
|
PsRate = new BigDecimal(bCorps11.getPsRate());
|
|
|
- if(ObjectUtils.isNotNull(bCorps11.getCorpTypeName()) && bCorps11.getCorpTypeName().indexOf("国内直接客户")>=0) {
|
|
|
+ if (ObjectUtils.isNotNull(bCorps11.getCorpTypeName()) && bCorps11.getCorpTypeName().indexOf("国内直接客户") >= 0) {
|
|
|
corpIsDC = 1;
|
|
|
}
|
|
|
}
|
|
|
BigDecimal specPsRate = new BigDecimal(BigInteger.ZERO);
|
|
|
Boolean isPS = false;
|
|
|
|
|
|
- if(specPSCorpId>0){
|
|
|
+ if (specPSCorpId > 0) {
|
|
|
BCorps bCorps12 = bCorpsService.getById(specPSCorpId);
|
|
|
if (ObjectUtils.isNotNull(bCorps12)) {
|
|
|
specPsRate = new BigDecimal(bCorps12.getPsRate());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(hpsCorpId>0){
|
|
|
+ if (hpsCorpId > 0) {
|
|
|
BCorps bCorps13 = bCorpsService.getById(hpsCorpId);
|
|
|
- if(ObjectUtils.isNotNull(bCorps13)) {
|
|
|
+ if (ObjectUtils.isNotNull(bCorps13)) {
|
|
|
Long ownerCorpId = ObjectUtils.isNotNull(bCorps13.getCorpId()) ? bCorps13.getCorpId() : 0L;
|
|
|
- if(ownerCorpId>0 && (ownerCorpId.equals(item.getCorpId()) || ownerCorpId.equals(item.getCarrierId()) || ownerCorpId.equals(hpsCorpId))){
|
|
|
- isPS = ObjectUtils.isNotNull(bCorps13.getIsPs()) && bCorps13.getIsPs()==1;
|
|
|
+ if (ownerCorpId > 0 && (ownerCorpId.equals(item.getCorpId()) || ownerCorpId.equals(item.getCarrierId()) || ownerCorpId.equals(hpsCorpId))) {
|
|
|
+ isPS = ObjectUtils.isNotNull(bCorps13.getIsPs()) && bCorps13.getIsPs() == 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1397,54 +1524,54 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
specPsRate = specPsRate.setScale(2, RoundingMode.HALF_UP);
|
|
|
specProfit = specProfit.setScale(2, RoundingMode.HALF_UP);
|
|
|
specInAmtProfit = specInAmtProfit.setScale(2, RoundingMode.HALF_UP);
|
|
|
- if(psInAmtProfit.compareTo(BigDecimal.ZERO)!=0){
|
|
|
+ if (psInAmtProfit.compareTo(BigDecimal.ZERO) != 0) {
|
|
|
ps_remarks += " PS不能出现 RMB 费用\r\n";
|
|
|
}
|
|
|
|
|
|
- if("CC".equals(item.getMpaymode()) && psProfit.compareTo(BigDecimal.ZERO)!=0){
|
|
|
+ if ("CC".equals(item.getMpaymode()) && psProfit.compareTo(BigDecimal.ZERO) != 0) {
|
|
|
ps_remarks += " 主单付费方式为CC 不能出现PS\r\n";
|
|
|
}
|
|
|
|
|
|
- if(("PP".equals(item.getMpaymode()) && (MagicValues.DD.equals(item.getBillType()) || MagicValues.MM.equals(item.getBillType())))
|
|
|
- ||("PP".equals(item.getMpaymode()) && ObjectUtils.isNotNull(item.getHblno()))){
|
|
|
- if(specPScorpIds.indexOf("," + specPSCorpId.toString() + ",")>=0) {
|
|
|
- if(usdOFProfit.compareTo(BigDecimal.ZERO)!=0){
|
|
|
+ if (("PP".equals(item.getMpaymode()) && (MagicValues.DD.equals(item.getBillType()) || MagicValues.MM.equals(item.getBillType())))
|
|
|
+ || ("PP".equals(item.getMpaymode()) && ObjectUtils.isNotNull(item.getHblno()))) {
|
|
|
+ if (specPScorpIds.indexOf("," + specPSCorpId.toString() + ",") >= 0) {
|
|
|
+ if (usdOFProfit.compareTo(BigDecimal.ZERO) != 0) {
|
|
|
BigDecimal tt1 = usdOFProfit.add(ofInAmtProfit).add(HPSProfit).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
- if(tt1.compareTo(BigDecimal.ZERO)!=0) {
|
|
|
+ if (tt1.compareTo(BigDecimal.ZERO) != 0) {
|
|
|
BigDecimal pt1 = psProfit.divide(tt1, 2, BigDecimal.ROUND_HALF_UP);
|
|
|
- if(pt1.compareTo(specPsRate)>0){
|
|
|
+ if (pt1.compareTo(specPsRate) > 0) {
|
|
|
BigDecimal psr1 = new BigDecimal(1).subtract(pt1).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
- ps_remarks += " PS比例高,公司比例: "+psr1.toString() + " 系统比例为:" + specPsRate.toString() +"\r\n";
|
|
|
+ ps_remarks += " PS比例高,公司比例: " + psr1.toString() + " 系统比例为:" + specPsRate.toString() + "\r\n";
|
|
|
BigDecimal psr2 = new BigDecimal(1).subtract(specPsRate).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
- ps_ps += "公司比例:"+psr1.toString()+" (" +psr2.toString()+")\r\n";
|
|
|
+ ps_ps += "公司比例:" + psr1.toString() + " (" + psr2.toString() + ")\r\n";
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }else{
|
|
|
- if(usdOFProfit.compareTo(BigDecimal.ZERO)!=0){
|
|
|
+ } else {
|
|
|
+ if (usdOFProfit.compareTo(BigDecimal.ZERO) != 0) {
|
|
|
BigDecimal tt1 = usdOFProfit.add(ofInAmtProfit).add(HPSProfit).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
- if(tt1.compareTo(BigDecimal.ZERO)!=0) {
|
|
|
+ if (tt1.compareTo(BigDecimal.ZERO) != 0) {
|
|
|
BigDecimal pt1 = psProfit.divide(tt1, 4, BigDecimal.ROUND_HALF_UP);
|
|
|
- if(pt1.compareTo(PsRate)>0){
|
|
|
+ if (pt1.compareTo(PsRate) > 0) {
|
|
|
BigDecimal psr1 = new BigDecimal(1).subtract(pt1).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
- ps_remarks += " PS比例高,公司比例: "+psr1.toString() + " 系统比例为:" + specPsRate.toString() +"\r\n";
|
|
|
+ ps_remarks += " PS比例高,公司比例: " + psr1.toString() + " 系统比例为:" + specPsRate.toString() + "\r\n";
|
|
|
BigDecimal psr2 = new BigDecimal(1).subtract(PsRate).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
- ps_ps += "公司比例:"+psr1.toString()+" (" +psr2.toString()+")\r\n";
|
|
|
+ ps_ps += "公司比例:" + psr1.toString() + " (" + psr2.toString() + ")\r\n";
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }else{
|
|
|
- if(psProfit.compareTo(BigDecimal.ZERO)!=0) {
|
|
|
+ } else {
|
|
|
+ if (psProfit.compareTo(BigDecimal.ZERO) != 0) {
|
|
|
ps_remarks += "只有预付、直单和主单,或分单和到付才可以输入PS\r\n";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
BigDecimal tt2 = specProfit.add(specInAmtProfit).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
- if(tt2.compareTo(BigDecimal.ZERO)==1) {
|
|
|
- if(isPS==true) {
|
|
|
+ if (tt2.compareTo(BigDecimal.ZERO) == 1) {
|
|
|
+ if (isPS == true) {
|
|
|
ps_spec += "存在高收退费\r\n";
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
ps_remarks += "不应该存在高收退费\r\n";
|
|
|
ps_spec += "不应该存在高收退费\r\n";
|
|
|
}
|
|
|
@@ -1457,7 +1584,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
item.setProfitSpec(ps_ps.trim() + "\r\n" + ps_spec.trim());
|
|
|
item.setText(ps_text);
|
|
|
item.setCorpIsDC(corpIsDC);
|
|
|
- item.setIfDCCorp(corpIsDC==1?"DC":"");
|
|
|
+ item.setIfDCCorp(corpIsDC == 1 ? "DC" : "");
|
|
|
|
|
|
// FOverFeeLimit:=Trim(GetSysConst('SEA_ISSUEBILL_OVERFEE_LIMIT', '100000'));
|
|
|
// 判断是否国内直客
|
|
|
@@ -1471,7 +1598,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
BigDecimal sumLocCr = new BigDecimal(BigInteger.ZERO);
|
|
|
|
|
|
BigDecimal sumOFPS = new BigDecimal(BigInteger.ZERO);
|
|
|
- if(item.equals(bills)) {
|
|
|
+ if (item.equals(bills)) {
|
|
|
// 当前单据,计算 ProfitStatus
|
|
|
for (FeeCenter fee : allFeeCenter) {
|
|
|
if (MagicValues.C.equals(fee.getDc()) && "P/S".equals(fee.getFeeCode())) {
|
|
|
@@ -1531,7 +1658,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
// if([WFPK_ProfitStatus]='L','Profit was low!',''))))]
|
|
|
//[IF([WFPK_ProfitStatus]='M', 'Profit was minus!',
|
|
|
// IF([WFPK_ProfitStatus]='U', 'P/S was unfair!', ''))]
|
|
|
- switch (profitStatus){
|
|
|
+ switch (profitStatus) {
|
|
|
case "Z":
|
|
|
item.setProfitStatusText("利润为零");
|
|
|
item.setProfitStatusEnText("Profit was zero!");
|
|
|
@@ -1574,14 +1701,13 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
|
|
|
String salesReportOverlimit = sysClient.getParamServiceNew(MagicValues.SALESREPORT_OVERLIMIT);
|
|
|
BigDecimal ro;
|
|
|
- if(ObjectUtils.isNotNull(salesReportOverlimit)){
|
|
|
- try{
|
|
|
+ if (ObjectUtils.isNotNull(salesReportOverlimit)) {
|
|
|
+ try {
|
|
|
ro = new BigDecimal(salesReportOverlimit);
|
|
|
- }catch (Exception e){
|
|
|
+ } catch (Exception e) {
|
|
|
ro = new BigDecimal(BigInteger.ZERO);
|
|
|
}
|
|
|
- }
|
|
|
- else
|
|
|
+ } else
|
|
|
ro = new BigDecimal(BigInteger.ZERO);
|
|
|
item.setOverFeeLimit(ro.setScale(2, BigDecimal.ROUND_HALF_UP));
|
|
|
|
|
|
@@ -1705,7 +1831,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
bills.setMforwarderDetails(seaBillsDetail.getMforwarderDetails());
|
|
|
}
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
- bills.setCapitalLetters("SAY "+BigDecimalUtils.convertToEnglish(bills.getQuantity()) + " " + bills.getPackingUnit() +" ONLY.");
|
|
|
+ bills.setCapitalLetters("SAY " + BigDecimalUtils.convertToEnglish(bills.getQuantity()) + " " + bills.getPackingUnit() + " ONLY.");
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
BigDecimal boxWeightSum = BigDecimal.ZERO;
|
|
|
List<ContainersReports> containersReportsList = new ArrayList<>();
|
|
|
@@ -1816,7 +1942,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
bills.setIssueType(resDictBiz1.getData().getRemark());
|
|
|
}
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
- bills.setCapitalLetters("SAY "+BigDecimalUtils.convertToEnglish(bills.getQuantity()) + " " + bills.getPackingUnit() +" ONLY.");
|
|
|
+ bills.setCapitalLetters("SAY " + BigDecimalUtils.convertToEnglish(bills.getQuantity()) + " " + bills.getPackingUnit() + " ONLY.");
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
BigDecimal boxWeightSum = BigDecimal.ZERO;
|
|
|
List<Containers> containersList = containersService.list(new LambdaQueryWrapper<Containers>()
|
|
|
@@ -2153,7 +2279,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setMoney(item.getAmount());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -2170,11 +2296,11 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
bills.setAmountCrUsd(amountCrUsd);
|
|
|
bills.setAmountProfitUsd(amountProfitUsd);
|
|
|
bills.setAmountDrLoc(amountDrLoc);
|
|
|
- if ("USD".equals(curCode)){
|
|
|
+ if ("USD".equals(curCode)) {
|
|
|
bills.setCapitalLetters(BigDecimalUtils.convertToEnglish(amountDrUsd));
|
|
|
- }else if ("CNY".equals(curCode)){
|
|
|
+ } else if ("CNY".equals(curCode)) {
|
|
|
bills.setCapitalLetters(BigDecimalUtils.convertToEnglish(amountDr));
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
bills.setCapitalLetters(BigDecimalUtils.convertToEnglish(amountDrLoc));
|
|
|
}
|
|
|
bills.setAmountCrLoc(amountCrLoc);
|
|
|
@@ -2292,7 +2418,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setExrate(item.getExrate());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -2482,7 +2608,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setMoney(item.getAmount());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -2500,11 +2626,11 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
bills.setAmountProfitUsd(amountProfitUsd);
|
|
|
bills.setAmountDrLoc(amountDrLoc);
|
|
|
bills.setAmountCrLoc(amountCrLoc);
|
|
|
- if ("USD".equals(curCode)){
|
|
|
+ if ("USD".equals(curCode)) {
|
|
|
bills.setCapitalLetters(BigDecimalUtils.convertToEnglish(amountCrUsd));
|
|
|
- }else if ("CNY".equals(curCode)){
|
|
|
+ } else if ("CNY".equals(curCode)) {
|
|
|
bills.setCapitalLetters(BigDecimalUtils.convertToEnglish(amountCr));
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
bills.setCapitalLetters(BigDecimalUtils.convertToEnglish(amountCrLoc));
|
|
|
}
|
|
|
bills.setAmountProfitLoc(amountProfitLoc);
|
|
|
@@ -2617,7 +2743,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setExrate(item.getExrate());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -2641,7 +2767,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else {
|
|
|
map.put(MagicValues.DATA, null);
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
// 默认取单据数据,包括主表、预配箱、配箱、费用
|
|
|
Bills bills = billsService.getById(billId);
|
|
|
if (bills != null) {
|
|
|
@@ -2712,7 +2838,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
bills.setIssueType(resDictBiz1.getData().getRemark());
|
|
|
}
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
- bills.setCapitalLetters("SAY "+BigDecimalUtils.convertToEnglish(bills.getQuantity()) + " " + bills.getPackingUnit() +" ONLY.");
|
|
|
+ bills.setCapitalLetters("SAY " + BigDecimalUtils.convertToEnglish(bills.getQuantity()) + " " + bills.getPackingUnit() + " ONLY.");
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
BigDecimal boxWeightSum = BigDecimal.ZERO;
|
|
|
List<Containers> containersList = containersService.list(new LambdaQueryWrapper<Containers>()
|
|
|
@@ -3365,7 +3491,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setAmount(item.getQuantity() + "*" + item.getPrice());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -3494,7 +3620,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setAmount(item.getQuantity() + "*" + item.getPrice());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -3622,7 +3748,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setAmount(item.getQuantity() + "*" + item.getPrice());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -3741,7 +3867,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setAmount(item.getQuantity() + "*" + item.getPrice());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -3884,7 +4010,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setAmount(item.getQuantity() + "*" + item.getPrice());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -3997,7 +4123,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setAmount(item.getQuantity() + "*" + item.getPrice());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -4109,7 +4235,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setAmount(item.getQuantity() + "*" + item.getPrice());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -4222,7 +4348,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setAmount(item.getQuantity() + "*" + item.getPrice());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -6328,7 +6454,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setAmount(item.getQuantity() + "*" + item.getPrice());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -6442,7 +6568,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setAmount(item.getQuantity() + "*" + item.getPrice());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -6555,7 +6681,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setAmount(item.getQuantity() + "*" + item.getPrice());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|
|
|
@@ -6659,7 +6785,7 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReports.setAmount(item.getQuantity() + "*" + item.getPrice());
|
|
|
feeCenterReportsList.add(feeCenterReports);
|
|
|
}
|
|
|
- if (!feeCenterList.isEmpty()){
|
|
|
+ if (!feeCenterList.isEmpty()) {
|
|
|
bills.setTo(feeCenterList.get(0).getCorpCnName());
|
|
|
bills.setAccNo(feeCenterList.stream().map(FeeCenter::getAccBillNo).filter(Objects::nonNull).distinct().collect(Collectors.joining(",")));
|
|
|
}
|