| @@ -102,7 +102,8 @@ public class WxProfitSharingOrderVo extends TenantEntity { | |||||
| @Excel(name = "实际分账金额(元)", width = 20, orderNum = "13") | @Excel(name = "实际分账金额(元)", width = 20, orderNum = "13") | ||||
| public String shareAmountStr; | public String shareAmountStr; | ||||
| public WxComposeChildOrderShare getComposeChildOrderShare(){ | |||||
| public void setPointDeduction(String pointDeduction){ | |||||
| this.pointDeduction = pointDeduction; | |||||
| WxComposeChildOrderShare composeChildOrderShare = null; | WxComposeChildOrderShare composeChildOrderShare = null; | ||||
| if(StringUtils.isNotBlank(this.pointDeduction)){ | if(StringUtils.isNotBlank(this.pointDeduction)){ | ||||
| try{ | try{ | ||||
| @@ -111,23 +112,22 @@ public class WxProfitSharingOrderVo extends TenantEntity { | |||||
| } | } | ||||
| if(composeChildOrderShare != null){ | if(composeChildOrderShare != null){ | ||||
| Integer realRateAmount = composeChildOrderShare.getRealRateAmount(); | Integer realRateAmount = composeChildOrderShare.getRealRateAmount(); | ||||
| this.realRateAmountStr = realRateAmount != null ? new BigDecimal(realRateAmount).divide(new BigDecimal(100)).toPlainString() : realRateAmountStr; | |||||
| this.realRateAmountStr = realRateAmount != null ? new BigDecimal(realRateAmount).divide(new BigDecimal(100)).toPlainString() : this.realRateAmountStr; | |||||
| Integer commissionAmount = composeChildOrderShare.getCommissionAmount(); | Integer commissionAmount = composeChildOrderShare.getCommissionAmount(); | ||||
| this.commissionAmountStr = commissionAmount != null ? new BigDecimal(commissionAmount).divide(new BigDecimal(100)).toPlainString() : commissionAmountStr; | |||||
| this.commissionAmountStr = commissionAmount != null ? new BigDecimal(commissionAmount).divide(new BigDecimal(100)).toPlainString() : this.commissionAmountStr; | |||||
| Integer cpsCommission = composeChildOrderShare.getCpsCommission(); | Integer cpsCommission = composeChildOrderShare.getCpsCommission(); | ||||
| this.cpsCommissionStr = cpsCommission != null ? new BigDecimal(cpsCommission).divide(new BigDecimal(100)).toPlainString() : cpsCommissionStr; | |||||
| this.cpsCommissionStr = cpsCommission != null ? new BigDecimal(cpsCommission).divide(new BigDecimal(100)).toPlainString() : this.cpsCommissionStr; | |||||
| Integer systemAmount = composeChildOrderShare.getSystemAmount(); | Integer systemAmount = composeChildOrderShare.getSystemAmount(); | ||||
| this.systemAmountStr = systemAmount != null ? new BigDecimal(systemAmount).divide(new BigDecimal(100)).toPlainString() : systemAmountStr; | |||||
| this.systemAmountStr = systemAmount != null ? new BigDecimal(systemAmount).divide(new BigDecimal(100)).toPlainString() : this.systemAmountStr; | |||||
| Integer sellerAmount = composeChildOrderShare.getSellerAmount(); | Integer sellerAmount = composeChildOrderShare.getSellerAmount(); | ||||
| this.sellerAmountStr = sellerAmount != null ? new BigDecimal(sellerAmount).divide(new BigDecimal(100)).toPlainString() : sellerAmountStr; | |||||
| this.sellerAmountStr = sellerAmount != null ? new BigDecimal(sellerAmount).divide(new BigDecimal(100)).toPlainString() : this.sellerAmountStr; | |||||
| Integer rateAmount = composeChildOrderShare.getRateAmount(); | Integer rateAmount = composeChildOrderShare.getRateAmount(); | ||||
| this.rateAmountStr = rateAmount != null ? new BigDecimal(rateAmount).divide(new BigDecimal(100)).toPlainString() : rateAmountStr; | |||||
| this.rateAmountStr = rateAmount != null ? new BigDecimal(rateAmount).divide(new BigDecimal(100)).toPlainString() : this.rateAmountStr; | |||||
| Integer serviceAmount = composeChildOrderShare.getServiceAmount(); | Integer serviceAmount = composeChildOrderShare.getServiceAmount(); | ||||
| this.serviceAmountStr = serviceAmount != null ? new BigDecimal(serviceAmount).divide(new BigDecimal(100)).toPlainString() : serviceAmountStr; | |||||
| this.serviceAmountStr = serviceAmount != null ? new BigDecimal(serviceAmount).divide(new BigDecimal(100)).toPlainString() : this.serviceAmountStr; | |||||
| Integer shareAmount = composeChildOrderShare.getShareAmount(); | Integer shareAmount = composeChildOrderShare.getShareAmount(); | ||||
| this.shareAmountStr = shareAmount != null ? new BigDecimal(shareAmount).divide(new BigDecimal(100)).toPlainString() : shareAmountStr; | |||||
| this.shareAmountStr = shareAmount != null ? new BigDecimal(shareAmount).divide(new BigDecimal(100)).toPlainString() : this.shareAmountStr; | |||||
| } | } | ||||
| return composeChildOrderShare; | |||||
| } | } | ||||