Commit bf510deb authored by 332784038@qq.com's avatar 332784038@qq.com

修改自编号应收报表统计与代码格式化

parent b7436ae7
...@@ -2603,8 +2603,14 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -2603,8 +2603,14 @@ public class OrderQueryServiceImpl implements OrderQueryService {
totalNetReceiptsAdvanceOtherFeeGroupDtoMap.put(currencyId, netReceiptsFee.setScale(0, RoundingMode.HALF_UP)); totalNetReceiptsAdvanceOtherFeeGroupDtoMap.put(currencyId, netReceiptsFee.setScale(0, RoundingMode.HALF_UP));
} }
if (!Objects.equals(currencyId, collectOtherFeeId)) { if (!Objects.equals(currencyId, collectOtherFeeId)) {
ExchangeRateRespDTO otherRateRespDTO = currencyApi.getCurrencyRate(currencyId, collectOtherFeeId);
totalNetReceiptsAdvanceOtherFee = totalNetReceiptsAdvanceOtherFee.add(netReceiptsFee.multiply(otherRateRespDTO.getCurrencyRate()));
} else {
totalNetReceiptsAdvanceOtherFee = totalNetReceiptsAdvanceOtherFee.add(netReceiptsFee);
}
if (!Objects.equals(currencyId, collectAssistantOtherFeeId)) {
ExchangeRateRespDTO assistantOtherRateRespDTO = currencyApi.getCurrencyRate(currencyId, collectAssistantOtherFeeId); ExchangeRateRespDTO assistantOtherRateRespDTO = currencyApi.getCurrencyRate(currencyId, collectAssistantOtherFeeId);
totalNetReceiptsAdvanceOtherFee = totalNetReceiptsAdvanceOtherFee.add(netReceiptsFee.multiply(assistantOtherRateRespDTO.getCurrencyRate())); totalNetReceiptsAdvanceAssistantOtherFee = totalNetReceiptsAdvanceAssistantOtherFee.add(netReceiptsFee.multiply(assistantOtherRateRespDTO.getCurrencyRate()));
} else { } else {
totalNetReceiptsAdvanceAssistantOtherFee = totalNetReceiptsAdvanceAssistantOtherFee.add(netReceiptsFee); totalNetReceiptsAdvanceAssistantOtherFee = totalNetReceiptsAdvanceAssistantOtherFee.add(netReceiptsFee);
} }
...@@ -2617,12 +2623,17 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -2617,12 +2623,17 @@ public class OrderQueryServiceImpl implements OrderQueryService {
totalNetReceiptsCollectOtherFeeGroupDtoMap.put(currencyId, netReceiptsFee.setScale(0, RoundingMode.HALF_UP)); totalNetReceiptsCollectOtherFeeGroupDtoMap.put(currencyId, netReceiptsFee.setScale(0, RoundingMode.HALF_UP));
} }
if (!Objects.equals(currencyId, collectOtherFeeId)) { if (!Objects.equals(currencyId, collectOtherFeeId)) {
ExchangeRateRespDTO otherRateRespDTO = currencyApi.getCurrencyRate(currencyId, collectOtherFeeId);
totalNetReceiptsCollectOtherFee = totalNetReceiptsCollectOtherFee.add(netReceiptsFee.multiply(otherRateRespDTO.getCurrencyRate()));
} else {
totalNetReceiptsCollectOtherFee = totalNetReceiptsCollectOtherFee.add(netReceiptsFee);
}
if (!Objects.equals(currencyId, collectAssistantOtherFeeId)) {
ExchangeRateRespDTO assistantOtherRateRespDTO = currencyApi.getCurrencyRate(currencyId, collectAssistantOtherFeeId); ExchangeRateRespDTO assistantOtherRateRespDTO = currencyApi.getCurrencyRate(currencyId, collectAssistantOtherFeeId);
totalNetReceiptsCollectOtherFee = totalNetReceiptsCollectOtherFee.add(netReceiptsFee.multiply(assistantOtherRateRespDTO.getCurrencyRate())); totalNetReceiptsCollectAssistantOtherFee = totalNetReceiptsCollectAssistantOtherFee.add(netReceiptsFee.multiply(assistantOtherRateRespDTO.getCurrencyRate()));
} else { } else {
totalNetReceiptsCollectAssistantOtherFee = totalNetReceiptsCollectAssistantOtherFee.add(netReceiptsFee); totalNetReceiptsCollectAssistantOtherFee = totalNetReceiptsCollectAssistantOtherFee.add(netReceiptsFee);
} }
} }
} }
} }
...@@ -2680,9 +2691,7 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -2680,9 +2691,7 @@ public class OrderQueryServiceImpl implements OrderQueryService {
// 订单总优惠分组 // 订单总优惠分组
StringBuilder discountTotalFeeGroup = new StringBuilder(); StringBuilder discountTotalFeeGroup = new StringBuilder();
List<FeeGroupDto> discountTotalFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> discountTotalFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, receivableTotalFeeGroupDtoMap, netReceiptsTotalFeeGroupDtoMap, discountTotalFeeGroupDtoList, discountTotalFeeGroup);
convertFeeGroup(currencyRespDTOMap, receivableTotalFeeGroupDtoMap, netReceiptsTotalFeeGroupDtoMap, discountTotalFeeGroupDtoList, discountTotalFeeGroup);
summaryDto.setDiscountTotalFeeGroupDtoList(discountTotalFeeGroupDtoList); summaryDto.setDiscountTotalFeeGroupDtoList(discountTotalFeeGroupDtoList);
summaryDto.setDiscountTotalFeeGroup(discountTotalFeeGroup.toString()); summaryDto.setDiscountTotalFeeGroup(discountTotalFeeGroup.toString());
// 总费用换算成美元设置的货币单位的总应收、总实收、总优惠 // 总费用换算成美元设置的货币单位的总应收、总实收、总优惠
...@@ -2695,35 +2704,27 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -2695,35 +2704,27 @@ public class OrderQueryServiceImpl implements OrderQueryService {
// 应收运费分组 // 应收运费分组
StringBuilder receivableFreightFeeGroup = new StringBuilder(); StringBuilder receivableFreightFeeGroup = new StringBuilder();
List<FeeGroupDto> receivableFreightFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> receivableFreightFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, totalReceivableFreightFeeGroupDtoMap, receivableFreightFeeGroupDtoList, receivableFreightFeeGroup);
convertFeeGroup(currencyRespDTOMap, totalReceivableFreightFeeGroupDtoMap, receivableFreightFeeGroupDtoList, receivableFreightFeeGroup);
summaryDto.setReceivableFreightFeeGroupDtoList(receivableFreightFeeGroupDtoList); summaryDto.setReceivableFreightFeeGroupDtoList(receivableFreightFeeGroupDtoList);
summaryDto.setReceivableFreightFeeGroup(receivableFreightFeeGroup.toString()); summaryDto.setReceivableFreightFeeGroup(receivableFreightFeeGroup.toString());
// 实收运费分组 // 实收运费分组
StringBuilder netReceiptsFreightFeeGroup = new StringBuilder(); StringBuilder netReceiptsFreightFeeGroup = new StringBuilder();
List<FeeGroupDto> netReceiptsFreightFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> netReceiptsFreightFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, totalNetReceiptsFreightFeeGroupDtoMap, netReceiptsFreightFeeGroupDtoList, netReceiptsFreightFeeGroup);
convertFeeGroup(currencyRespDTOMap, totalNetReceiptsFreightFeeGroupDtoMap, netReceiptsFreightFeeGroupDtoList, netReceiptsFreightFeeGroup);
summaryDto.setNetReceiptsFreightFeeGroupDtoList(netReceiptsFreightFeeGroupDtoList); summaryDto.setNetReceiptsFreightFeeGroupDtoList(netReceiptsFreightFeeGroupDtoList);
summaryDto.setNetReceiptsFreightFeeGroup(netReceiptsFreightFeeGroup.toString()); summaryDto.setNetReceiptsFreightFeeGroup(netReceiptsFreightFeeGroup.toString());
// 实收到付运费分组 // 实收到付运费分组
StringBuilder netReceiptsCollectFreightFeeGroup = new StringBuilder(); StringBuilder netReceiptsCollectFreightFeeGroup = new StringBuilder();
List<FeeGroupDto> netReceiptsCollectFreightFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> netReceiptsCollectFreightFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, totalNetReceiptsCollectFreightFeeGroupDtoMap, netReceiptsCollectFreightFeeGroupDtoList, netReceiptsCollectFreightFeeGroup);
convertFeeGroup(currencyRespDTOMap, totalNetReceiptsCollectFreightFeeGroupDtoMap, netReceiptsCollectFreightFeeGroupDtoList, netReceiptsCollectFreightFeeGroup);
summaryDto.setNetReceiptsCollectFreightFeeGroupDtoList(netReceiptsCollectFreightFeeGroupDtoList); summaryDto.setNetReceiptsCollectFreightFeeGroupDtoList(netReceiptsCollectFreightFeeGroupDtoList);
summaryDto.setNetReceiptsCollectFreightFeeGroup(netReceiptsCollectFreightFeeGroup.toString()); summaryDto.setNetReceiptsCollectFreightFeeGroup(netReceiptsCollectFreightFeeGroup.toString());
// 实收预付运费分组 // 实收预付运费分组
StringBuilder netReceiptsAdvanceFreightFeeGroup = new StringBuilder(); StringBuilder netReceiptsAdvanceFreightFeeGroup = new StringBuilder();
List<FeeGroupDto> netReceiptsAdvanceFreightFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> netReceiptsAdvanceFreightFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, totalNetReceiptsAdvanceFreightFeeGroupDtoMap, netReceiptsAdvanceFreightFeeGroupDtoList, netReceiptsAdvanceFreightFeeGroup);
convertFeeGroup(currencyRespDTOMap, totalNetReceiptsAdvanceFreightFeeGroupDtoMap, netReceiptsAdvanceFreightFeeGroupDtoList, netReceiptsAdvanceFreightFeeGroup);
summaryDto.setNetReceiptsAdvanceFreightFeeGroupDtoList(netReceiptsAdvanceFreightFeeGroupDtoList); summaryDto.setNetReceiptsAdvanceFreightFeeGroupDtoList(netReceiptsAdvanceFreightFeeGroupDtoList);
summaryDto.setNetReceiptsAdvanceFreightFeeGroup(netReceiptsAdvanceFreightFeeGroup.toString()); summaryDto.setNetReceiptsAdvanceFreightFeeGroup(netReceiptsAdvanceFreightFeeGroup.toString());
...@@ -2739,34 +2740,26 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -2739,34 +2740,26 @@ public class OrderQueryServiceImpl implements OrderQueryService {
summaryDto.setTotalNetReceiptsAdvanceFreightFee(totalNetReceiptsAdvanceFreightFee.setScale(0, RoundingMode.HALF_UP)); summaryDto.setTotalNetReceiptsAdvanceFreightFee(totalNetReceiptsAdvanceFreightFee.setScale(0, RoundingMode.HALF_UP));
summaryDto.setTotalReceivableFreightFee(totalReceivableFreightFee.setScale(0, RoundingMode.HALF_UP)); summaryDto.setTotalReceivableFreightFee(totalReceivableFreightFee.setScale(0, RoundingMode.HALF_UP));
summaryDto.setTotalNetReceiptsFreightFee(totalNetReceiptsFreightFee.setScale(0, RoundingMode.HALF_UP)); summaryDto.setTotalNetReceiptsFreightFee(totalNetReceiptsFreightFee.setScale(0, RoundingMode.HALF_UP));
summaryDto.setDiscountFreightFee(summaryDto.getTotalReceivableFreightFee(). summaryDto.setDiscountFreightFee(summaryDto.getTotalReceivableFreightFee().subtract(summaryDto.getTotalNetReceiptsFreightFee()));
subtract(summaryDto.getTotalNetReceiptsFreightFee()));
// 清关费 // 清关费
// 应收清关费分组 // 应收清关费分组
StringBuilder receivableClearanceFeeGroup = new StringBuilder(); StringBuilder receivableClearanceFeeGroup = new StringBuilder();
List<FeeGroupDto> receivableClearanceFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> receivableClearanceFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, totalReceivableClearanceFeeGroupDtoMap, receivableClearanceFeeGroupDtoList, receivableClearanceFeeGroup);
convertFeeGroup(currencyRespDTOMap, totalReceivableClearanceFeeGroupDtoMap, receivableClearanceFeeGroupDtoList, receivableClearanceFeeGroup);
summaryDto.setReceivableClearanceFeeGroupDtoList(receivableClearanceFeeGroupDtoList); summaryDto.setReceivableClearanceFeeGroupDtoList(receivableClearanceFeeGroupDtoList);
summaryDto.setReceivableClearanceFeeGroup(receivableClearanceFeeGroup.toString()); summaryDto.setReceivableClearanceFeeGroup(receivableClearanceFeeGroup.toString());
// 实收清关费分组 // 实收清关费分组
StringBuilder netReceiptsClearanceFeeGroup = new StringBuilder(); StringBuilder netReceiptsClearanceFeeGroup = new StringBuilder();
List<FeeGroupDto> netReceiptsClearanceFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> netReceiptsClearanceFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, totalNetReceiptsClearanceFeeGroupDtoMap, netReceiptsClearanceFeeGroupDtoList, netReceiptsClearanceFeeGroup);
convertFeeGroup(currencyRespDTOMap, totalNetReceiptsClearanceFeeGroupDtoMap, netReceiptsClearanceFeeGroupDtoList, netReceiptsClearanceFeeGroup);
summaryDto.setNetReceiptsClearanceFeeGroupDtoList(netReceiptsClearanceFeeGroupDtoList); summaryDto.setNetReceiptsClearanceFeeGroupDtoList(netReceiptsClearanceFeeGroupDtoList);
summaryDto.setNetReceiptsClearanceFeeGroup(netReceiptsClearanceFeeGroup.toString()); summaryDto.setNetReceiptsClearanceFeeGroup(netReceiptsClearanceFeeGroup.toString());
// 实收到付清关费分组 // 实收到付清关费分组
StringBuilder netReceiptsCollectClearanceFeeGroup = new StringBuilder(); StringBuilder netReceiptsCollectClearanceFeeGroup = new StringBuilder();
List<FeeGroupDto> netReceiptsCollectClearanceFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> netReceiptsCollectClearanceFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, totalNetReceiptsCollectClearanceFeeGroupDtoMap, netReceiptsCollectClearanceFeeGroupDtoList, netReceiptsCollectClearanceFeeGroup);
convertFeeGroup(currencyRespDTOMap, totalNetReceiptsCollectClearanceFeeGroupDtoMap, netReceiptsCollectClearanceFeeGroupDtoList, netReceiptsCollectClearanceFeeGroup);
summaryDto.setNetReceiptsCollectClearanceFeeGroupDtoList(netReceiptsCollectClearanceFeeGroupDtoList); summaryDto.setNetReceiptsCollectClearanceFeeGroupDtoList(netReceiptsCollectClearanceFeeGroupDtoList);
summaryDto.setNetReceiptsCollectClearanceFeeGroup(netReceiptsCollectClearanceFeeGroup.toString()); summaryDto.setNetReceiptsCollectClearanceFeeGroup(netReceiptsCollectClearanceFeeGroup.toString());
...@@ -2774,18 +2767,14 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -2774,18 +2767,14 @@ public class OrderQueryServiceImpl implements OrderQueryService {
// 实收预付清关费分组 // 实收预付清关费分组
StringBuilder netReceiptsAdvanceClearanceFeeGroup = new StringBuilder(); StringBuilder netReceiptsAdvanceClearanceFeeGroup = new StringBuilder();
List<FeeGroupDto> netReceiptsAdvanceClearanceFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> netReceiptsAdvanceClearanceFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, totalNetReceiptsAdvanceClearanceFeeGroupDtoMap, netReceiptsAdvanceClearanceFeeGroupDtoList, netReceiptsAdvanceClearanceFeeGroup);
convertFeeGroup(currencyRespDTOMap, totalNetReceiptsAdvanceClearanceFeeGroupDtoMap, netReceiptsAdvanceClearanceFeeGroupDtoList, netReceiptsAdvanceClearanceFeeGroup);
summaryDto.setNetReceiptsAdvanceClearanceFeeGroupDtoList(netReceiptsAdvanceClearanceFeeGroupDtoList); summaryDto.setNetReceiptsAdvanceClearanceFeeGroupDtoList(netReceiptsAdvanceClearanceFeeGroupDtoList);
summaryDto.setNetReceiptsAdvanceClearanceFeeGroup(netReceiptsAdvanceClearanceFeeGroup.toString()); summaryDto.setNetReceiptsAdvanceClearanceFeeGroup(netReceiptsAdvanceClearanceFeeGroup.toString());
// 清关费优惠分组 // 清关费优惠分组
StringBuilder discountClearanceFeeGroup = new StringBuilder(); StringBuilder discountClearanceFeeGroup = new StringBuilder();
List<FeeGroupDto> discountClearanceFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> discountClearanceFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, totalReceivableClearanceFeeGroupDtoMap, totalNetReceiptsClearanceFeeGroupDtoMap, discountClearanceFeeGroupDtoList, discountClearanceFeeGroup);
convertFeeGroup(currencyRespDTOMap, totalReceivableClearanceFeeGroupDtoMap, totalNetReceiptsClearanceFeeGroupDtoMap, discountClearanceFeeGroupDtoList, discountClearanceFeeGroup);
summaryDto.setDiscountClearanceFeeGroupDtoList(discountClearanceFeeGroupDtoList); summaryDto.setDiscountClearanceFeeGroupDtoList(discountClearanceFeeGroupDtoList);
summaryDto.setDiscountClearanceFeeGroup(discountClearanceFeeGroup.toString()); summaryDto.setDiscountClearanceFeeGroup(discountClearanceFeeGroup.toString());
// 清关费换算成目的地设置的货币单位的总应收、总实收、总优惠 // 清关费换算成目的地设置的货币单位的总应收、总实收、总优惠
...@@ -2794,52 +2783,40 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -2794,52 +2783,40 @@ public class OrderQueryServiceImpl implements OrderQueryService {
summaryDto.setTotalReceivableClearanceFee(totalReceivableClearanceFee.setScale(0, RoundingMode.HALF_UP)); summaryDto.setTotalReceivableClearanceFee(totalReceivableClearanceFee.setScale(0, RoundingMode.HALF_UP));
summaryDto.setTotalNetReceiptsClearanceFee(totalNetReceiptsClearanceFee.setScale(0, RoundingMode.HALF_UP)); summaryDto.setTotalNetReceiptsClearanceFee(totalNetReceiptsClearanceFee.setScale(0, RoundingMode.HALF_UP));
summaryDto.setDiscountClearanceFee(totalReceivableClearanceFee.subtract(totalNetReceiptsClearanceFee)); summaryDto.setDiscountClearanceFee(totalReceivableClearanceFee.subtract(totalNetReceiptsClearanceFee));
summaryDto.setDiscountClearanceFee(summaryDto.getTotalReceivableClearanceFee(). summaryDto.setDiscountClearanceFee(summaryDto.getTotalReceivableClearanceFee().subtract(summaryDto.getTotalNetReceiptsClearanceFee()));
subtract(summaryDto.getTotalNetReceiptsClearanceFee()));
// 额外费用 // 额外费用
// 应收额外费用分组 // 应收额外费用分组
StringBuilder receivableOtherFeeGroup = new StringBuilder(); StringBuilder receivableOtherFeeGroup = new StringBuilder();
List<FeeGroupDto> receivableOtherFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> receivableOtherFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, totalReceivableOtherFeeGroupDtoMap, receivableOtherFeeGroupDtoList, receivableOtherFeeGroup);
convertFeeGroup(currencyRespDTOMap, totalReceivableOtherFeeGroupDtoMap, receivableOtherFeeGroupDtoList, receivableOtherFeeGroup);
summaryDto.setReceivableOtherFeeGroupDtoList(receivableOtherFeeGroupDtoList); summaryDto.setReceivableOtherFeeGroupDtoList(receivableOtherFeeGroupDtoList);
summaryDto.setReceivableOtherFeeGroup(receivableOtherFeeGroup.toString()); summaryDto.setReceivableOtherFeeGroup(receivableOtherFeeGroup.toString());
// 实收额外费用分组 // 实收额外费用分组
StringBuilder netReceiptsOtherFeeGroup = new StringBuilder(); StringBuilder netReceiptsOtherFeeGroup = new StringBuilder();
List<FeeGroupDto> netReceiptsOtherFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> netReceiptsOtherFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, totalNetReceiptsOtherFeeGroupDtoMap, netReceiptsOtherFeeGroupDtoList, netReceiptsOtherFeeGroup);
convertFeeGroup(currencyRespDTOMap, totalNetReceiptsOtherFeeGroupDtoMap, netReceiptsOtherFeeGroupDtoList, netReceiptsOtherFeeGroup);
summaryDto.setNetReceiptsOtherFeeGroupDtoList(netReceiptsOtherFeeGroupDtoList); summaryDto.setNetReceiptsOtherFeeGroupDtoList(netReceiptsOtherFeeGroupDtoList);
summaryDto.setNetReceiptsOtherFeeGroup(netReceiptsOtherFeeGroup.toString()); summaryDto.setNetReceiptsOtherFeeGroup(netReceiptsOtherFeeGroup.toString());
// 实收到付额外费用分组 // 实收到付额外费用分组
StringBuilder netReceiptsCollectOtherFeeGroup = new StringBuilder(); StringBuilder netReceiptsCollectOtherFeeGroup = new StringBuilder();
List<FeeGroupDto> netReceiptsCollectOtherFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> netReceiptsCollectOtherFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, totalNetReceiptsCollectOtherFeeGroupDtoMap, netReceiptsCollectOtherFeeGroupDtoList, netReceiptsCollectOtherFeeGroup);
convertFeeGroup(currencyRespDTOMap, totalNetReceiptsCollectOtherFeeGroupDtoMap, netReceiptsCollectOtherFeeGroupDtoList, netReceiptsCollectOtherFeeGroup);
summaryDto.setNetReceiptsCollectOtherFeeGroupDtoList(netReceiptsCollectOtherFeeGroupDtoList); summaryDto.setNetReceiptsCollectOtherFeeGroupDtoList(netReceiptsCollectOtherFeeGroupDtoList);
summaryDto.setNetReceiptsCollectOtherFeeGroup(netReceiptsCollectOtherFeeGroup.toString()); summaryDto.setNetReceiptsCollectOtherFeeGroup(netReceiptsCollectOtherFeeGroup.toString());
// 实收预付额外费用分组 // 实收预付额外费用分组
StringBuilder netReceiptsAdvanceOtherFeeGroup = new StringBuilder(); StringBuilder netReceiptsAdvanceOtherFeeGroup = new StringBuilder();
List<FeeGroupDto> netReceiptsAdvanceOtherFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> netReceiptsAdvanceOtherFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, totalNetReceiptsAdvanceOtherFeeGroupDtoMap, netReceiptsAdvanceOtherFeeGroupDtoList, netReceiptsAdvanceOtherFeeGroup);
convertFeeGroup(currencyRespDTOMap, totalNetReceiptsAdvanceOtherFeeGroupDtoMap, netReceiptsAdvanceOtherFeeGroupDtoList, netReceiptsAdvanceOtherFeeGroup);
summaryDto.setNetReceiptsAdvanceOtherFeeGroupDtoList(netReceiptsAdvanceOtherFeeGroupDtoList); summaryDto.setNetReceiptsAdvanceOtherFeeGroupDtoList(netReceiptsAdvanceOtherFeeGroupDtoList);
summaryDto.setNetReceiptsAdvanceOtherFeeGroup(netReceiptsAdvanceOtherFeeGroup.toString()); summaryDto.setNetReceiptsAdvanceOtherFeeGroup(netReceiptsAdvanceOtherFeeGroup.toString());
// 额外费用优惠分组 // 额外费用优惠分组
StringBuilder discountOtherFeeGroup = new StringBuilder(); StringBuilder discountOtherFeeGroup = new StringBuilder();
List<FeeGroupDto> discountOtherFeeGroupDtoList = new ArrayList<>(); List<FeeGroupDto> discountOtherFeeGroupDtoList = new ArrayList<>();
this. this.convertFeeGroup(currencyRespDTOMap, totalReceivableOtherFeeGroupDtoMap, totalNetReceiptsOtherFeeGroupDtoMap, discountOtherFeeGroupDtoList, discountOtherFeeGroup);
convertFeeGroup(currencyRespDTOMap, totalReceivableOtherFeeGroupDtoMap, totalNetReceiptsOtherFeeGroupDtoMap, discountOtherFeeGroupDtoList, discountOtherFeeGroup);
summaryDto.setDiscountOtherFeeGroupDtoList(discountOtherFeeGroupDtoList); summaryDto.setDiscountOtherFeeGroupDtoList(discountOtherFeeGroupDtoList);
summaryDto.setDiscountOtherFeeGroup(discountOtherFeeGroup.toString()); summaryDto.setDiscountOtherFeeGroup(discountOtherFeeGroup.toString());
// 额外费用换算成目的地设置的货币单位的总应收、总实收、总优惠 // 额外费用换算成目的地设置的货币单位的总应收、总实收、总优惠
...@@ -2849,9 +2826,7 @@ public class OrderQueryServiceImpl implements OrderQueryService { ...@@ -2849,9 +2826,7 @@ public class OrderQueryServiceImpl implements OrderQueryService {
summaryDto.setTotalNetReceiptsAdvanceAssistantOtherFee(totalNetReceiptsAdvanceAssistantOtherFee.setScale(0, RoundingMode.HALF_UP)); summaryDto.setTotalNetReceiptsAdvanceAssistantOtherFee(totalNetReceiptsAdvanceAssistantOtherFee.setScale(0, RoundingMode.HALF_UP));
summaryDto.setTotalReceivableOtherFee(totalReceivableOtherFee.setScale(0, RoundingMode.HALF_UP)); summaryDto.setTotalReceivableOtherFee(totalReceivableOtherFee.setScale(0, RoundingMode.HALF_UP));
summaryDto.setTotalNetReceiptsOtherFee(totalNetReceiptsOtherFee.setScale(0, RoundingMode.HALF_UP)); summaryDto.setTotalNetReceiptsOtherFee(totalNetReceiptsOtherFee.setScale(0, RoundingMode.HALF_UP));
summaryDto.setDiscountOtherFee(summaryDto.getTotalReceivableOtherFee(). summaryDto.setDiscountOtherFee(summaryDto.getTotalReceivableOtherFee().subtract(summaryDto.getTotalNetReceiptsOtherFee()));
subtract(summaryDto.getTotalNetReceiptsOtherFee()));
return summaryDto; return summaryDto;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment