|
|
@@ -23,11 +23,23 @@ public class WxBillSum implements Serializable { |
|
|
private String needPay = "0"; |
|
|
private String needPay = "0"; |
|
|
@TableField(exist = false) |
|
|
@TableField(exist = false) |
|
|
private BigDecimal needPayNumber; |
|
|
private BigDecimal needPayNumber; |
|
|
|
|
|
@TableField(exist = false) |
|
|
|
|
|
private String taxNeedPay; |
|
|
|
|
|
public String getTaxNeedPay() { |
|
|
|
|
|
if (StringUtils.isNotBlank(taxRate)) { |
|
|
|
|
|
taxNeedPay = new BigDecimal(needPay).multiply(new BigDecimal(taxRate)).divide(new BigDecimal(100)).setScale(6,BigDecimal.ROUND_HALF_UP).toPlainString(); |
|
|
|
|
|
}else { |
|
|
|
|
|
taxNeedPay = ""; |
|
|
|
|
|
} |
|
|
|
|
|
return taxNeedPay; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@TableField(exist = false) |
|
|
@TableField(exist = false) |
|
|
private String noTaxNeedPay = "0"; |
|
|
private String noTaxNeedPay = "0"; |
|
|
public String getNoTaxNeedPay() { |
|
|
public String getNoTaxNeedPay() { |
|
|
if (StringUtils.isNotBlank(taxRate)) { |
|
|
|
|
|
noTaxNeedPay = new BigDecimal(needPay).divide(new BigDecimal(taxRate).divide(new BigDecimal(100)).add(new BigDecimal(1)),6,BigDecimal.ROUND_HALF_UP).toPlainString(); |
|
|
|
|
|
|
|
|
String taxpay = getTaxNeedPay(); |
|
|
|
|
|
if (StringUtils.isNotBlank(taxpay)) { |
|
|
|
|
|
noTaxNeedPay = new BigDecimal(needPay).subtract(new BigDecimal(taxpay)).setScale(6,BigDecimal.ROUND_HALF_UP).toPlainString(); |
|
|
return noTaxNeedPay; |
|
|
return noTaxNeedPay; |
|
|
} |
|
|
} |
|
|
return needPay; |
|
|
return needPay; |
|
|
|