feat 收入明细表:

1:金额修改
dev_1.0.0
chenhao 2024-10-28 16:42:34 +08:00
parent 3b6340774c
commit b0c6337b91
4 changed files with 19 additions and 0 deletions

View File

@ -49,6 +49,7 @@ public class ProjectBudgetCostDetailBase {
@Temporal(TemporalType.TIMESTAMP)
private Date payTime;
private BigDecimal totalTaxInclude;
@Column(name = "pay_amount")
private BigDecimal payAmount;
@ -186,7 +187,14 @@ public class ProjectBudgetCostDetailBase {
this.remark = remark;
}
public void setTotalTaxInclude(BigDecimal totalTaxInclude) {
this.totalTaxInclude = totalTaxInclude;
}
public BigDecimal getTotalTaxInclude(){
// 之前含税总金额为单价*价格 后续更改为手动数据 兼容之前版本数据
if (totalTaxInclude!=null){
return totalTaxInclude;
}
if(null == price){
return BigDecimal.ZERO;
}

View File

@ -27,6 +27,7 @@ public class ProjectBudgetCostDetailTemp extends ProjectBudgetCostDetailBase{
detail.setPayAmount(getPayAmount());
detail.setPayWay(getPayWay());
detail.setRemark(getRemark());
detail.setTotalTaxInclude(getTotalTaxInclude());
return detail;
}
}

View File

@ -51,6 +51,12 @@ public class ProjectBudgetCostProjectManageDetailBase {
@Column(name = "is_diy")
private int isDiy;
private BigDecimal total;
public void setTotal(BigDecimal total) {
this.total = total;
}
/**
*
*/
@ -161,6 +167,9 @@ public class ProjectBudgetCostProjectManageDetailBase {
}
public BigDecimal getTotal(){
if (total!=null){
return total;
}
if(null == price){
return BigDecimal.ZERO;
}

View File

@ -27,6 +27,7 @@ public class ProjectBudgetCostProjectManageDetailTemp extends ProjectBudgetCostP
detail.setRemark(getRemark());
detail.setDeletable(getDeletable());
detail.setIsDiy(getIsDiy());
detail.setTotal(getTotal());
return detail;
}
}