|
@@ -1,19 +1,27 @@
|
|
|
package org.springblade.modules.investment.pojo.entity;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
|
+
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
import lombok.Data;
|
|
|
+import org.springblade.modules.investment.config.CustomDecimalSerialize;
|
|
|
|
|
|
/**
|
|
|
* 项目资金信息
|
|
|
+ *
|
|
|
* @TableName iba_project_fund
|
|
|
*/
|
|
|
-@TableName(value ="iba_project_fund")
|
|
|
+@TableName(value = "iba_project_fund")
|
|
|
@Data
|
|
|
public class IbaProjectFund {
|
|
|
/**
|
|
|
- *
|
|
|
+ *
|
|
|
*/
|
|
|
@TableId
|
|
|
private Long id;
|
|
@@ -31,67 +39,88 @@ public class IbaProjectFund {
|
|
|
/**
|
|
|
* 流入-通行费
|
|
|
*/
|
|
|
- private Double tollInflow;
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal tollInflow;
|
|
|
|
|
|
/**
|
|
|
* 流入-其他
|
|
|
*/
|
|
|
- private Double otherInflow;
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal otherInflow;
|
|
|
|
|
|
/**
|
|
|
* 流出-建设期总投资额
|
|
|
*/
|
|
|
- private Double constructInvestOutflow;
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal constructInvestOutflow;
|
|
|
|
|
|
/**
|
|
|
* 流出-建设期各年份投入比例
|
|
|
*/
|
|
|
- private Double constructProportionOutflow;
|
|
|
+ private String constructProportionOutflow;
|
|
|
|
|
|
/**
|
|
|
* 流出-借贷本金偿还
|
|
|
*/
|
|
|
- private Double borrowPrincipalOutflow;
|
|
|
+
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal borrowPrincipalOutflow;
|
|
|
|
|
|
/**
|
|
|
* 流出-借贷利息偿还
|
|
|
*/
|
|
|
- private Double borrowInterestOutflow;
|
|
|
+
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal borrowInterestOutflow;
|
|
|
|
|
|
/**
|
|
|
* 流出-经营成本-养护、小修费
|
|
|
*/
|
|
|
- private Double operateMaintainOutflow;
|
|
|
+
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal operateMaintainOutflow;
|
|
|
|
|
|
/**
|
|
|
* 流出-经营成本-大修费
|
|
|
*/
|
|
|
- private Double operateOverhaulOutflow;
|
|
|
+
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal operateOverhaulOutflow;
|
|
|
|
|
|
/**
|
|
|
* 流出-经营成本-资本性支出
|
|
|
*/
|
|
|
- private Double operateCapitalOutflow;
|
|
|
+
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal operateCapitalOutflow;
|
|
|
|
|
|
/**
|
|
|
* 流出-经营成本-运营管理费
|
|
|
*/
|
|
|
- private Double operateOperationOutflow;
|
|
|
+
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal operateOperationOutflow;
|
|
|
|
|
|
/**
|
|
|
* 流出-经营成本-其他费用
|
|
|
*/
|
|
|
- private Double operateOtherOutflow;
|
|
|
+
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal operateOtherOutflow;
|
|
|
|
|
|
/**
|
|
|
* 流出-运营期税金
|
|
|
*/
|
|
|
- private Double operationTaxesOutflow;
|
|
|
+
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal operationTaxesOutflow;
|
|
|
|
|
|
/**
|
|
|
* 流出-其他费用
|
|
|
*/
|
|
|
- private Double otherOutflow;
|
|
|
+
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal otherOutflow;
|
|
|
|
|
|
/**
|
|
|
* 是否删除(0-未删除,1-删除)
|
|
@@ -118,6 +147,29 @@ public class IbaProjectFund {
|
|
|
*/
|
|
|
private String updateUser;
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 流入统计
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal inflowTotal;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 流出统计
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal outflowTotal;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 成本统计
|
|
|
+ */
|
|
|
+ @TableField(exist = false)
|
|
|
+ @JsonSerialize(using = CustomDecimalSerialize.class)
|
|
|
+ private BigDecimal costTotal;
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
public boolean equals(Object that) {
|
|
|
if (this == that) {
|
|
@@ -131,26 +183,26 @@ public class IbaProjectFund {
|
|
|
}
|
|
|
IbaProjectFund other = (IbaProjectFund) that;
|
|
|
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
- && (this.getProjectId() == null ? other.getProjectId() == null : this.getProjectId().equals(other.getProjectId()))
|
|
|
- && (this.getYear() == null ? other.getYear() == null : this.getYear().equals(other.getYear()))
|
|
|
- && (this.getTollInflow() == null ? other.getTollInflow() == null : this.getTollInflow().equals(other.getTollInflow()))
|
|
|
- && (this.getOtherInflow() == null ? other.getOtherInflow() == null : this.getOtherInflow().equals(other.getOtherInflow()))
|
|
|
- && (this.getConstructInvestOutflow() == null ? other.getConstructInvestOutflow() == null : this.getConstructInvestOutflow().equals(other.getConstructInvestOutflow()))
|
|
|
- && (this.getConstructProportionOutflow() == null ? other.getConstructProportionOutflow() == null : this.getConstructProportionOutflow().equals(other.getConstructProportionOutflow()))
|
|
|
- && (this.getBorrowPrincipalOutflow() == null ? other.getBorrowPrincipalOutflow() == null : this.getBorrowPrincipalOutflow().equals(other.getBorrowPrincipalOutflow()))
|
|
|
- && (this.getBorrowInterestOutflow() == null ? other.getBorrowInterestOutflow() == null : this.getBorrowInterestOutflow().equals(other.getBorrowInterestOutflow()))
|
|
|
- && (this.getOperateMaintainOutflow() == null ? other.getOperateMaintainOutflow() == null : this.getOperateMaintainOutflow().equals(other.getOperateMaintainOutflow()))
|
|
|
- && (this.getOperateOverhaulOutflow() == null ? other.getOperateOverhaulOutflow() == null : this.getOperateOverhaulOutflow().equals(other.getOperateOverhaulOutflow()))
|
|
|
- && (this.getOperateCapitalOutflow() == null ? other.getOperateCapitalOutflow() == null : this.getOperateCapitalOutflow().equals(other.getOperateCapitalOutflow()))
|
|
|
- && (this.getOperateOperationOutflow() == null ? other.getOperateOperationOutflow() == null : this.getOperateOperationOutflow().equals(other.getOperateOperationOutflow()))
|
|
|
- && (this.getOperateOtherOutflow() == null ? other.getOperateOtherOutflow() == null : this.getOperateOtherOutflow().equals(other.getOperateOtherOutflow()))
|
|
|
- && (this.getOperationTaxesOutflow() == null ? other.getOperationTaxesOutflow() == null : this.getOperationTaxesOutflow().equals(other.getOperationTaxesOutflow()))
|
|
|
- && (this.getOtherOutflow() == null ? other.getOtherOutflow() == null : this.getOtherOutflow().equals(other.getOtherOutflow()))
|
|
|
- && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()))
|
|
|
- && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
|
|
- && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
|
|
|
- && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
|
|
|
- && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()));
|
|
|
+ && (this.getProjectId() == null ? other.getProjectId() == null : this.getProjectId().equals(other.getProjectId()))
|
|
|
+ && (this.getYear() == null ? other.getYear() == null : this.getYear().equals(other.getYear()))
|
|
|
+ && (this.getTollInflow() == null ? other.getTollInflow() == null : this.getTollInflow().equals(other.getTollInflow()))
|
|
|
+ && (this.getOtherInflow() == null ? other.getOtherInflow() == null : this.getOtherInflow().equals(other.getOtherInflow()))
|
|
|
+ && (this.getConstructInvestOutflow() == null ? other.getConstructInvestOutflow() == null : this.getConstructInvestOutflow().equals(other.getConstructInvestOutflow()))
|
|
|
+ && (this.getConstructProportionOutflow() == null ? other.getConstructProportionOutflow() == null : this.getConstructProportionOutflow().equals(other.getConstructProportionOutflow()))
|
|
|
+ && (this.getBorrowPrincipalOutflow() == null ? other.getBorrowPrincipalOutflow() == null : this.getBorrowPrincipalOutflow().equals(other.getBorrowPrincipalOutflow()))
|
|
|
+ && (this.getBorrowInterestOutflow() == null ? other.getBorrowInterestOutflow() == null : this.getBorrowInterestOutflow().equals(other.getBorrowInterestOutflow()))
|
|
|
+ && (this.getOperateMaintainOutflow() == null ? other.getOperateMaintainOutflow() == null : this.getOperateMaintainOutflow().equals(other.getOperateMaintainOutflow()))
|
|
|
+ && (this.getOperateOverhaulOutflow() == null ? other.getOperateOverhaulOutflow() == null : this.getOperateOverhaulOutflow().equals(other.getOperateOverhaulOutflow()))
|
|
|
+ && (this.getOperateCapitalOutflow() == null ? other.getOperateCapitalOutflow() == null : this.getOperateCapitalOutflow().equals(other.getOperateCapitalOutflow()))
|
|
|
+ && (this.getOperateOperationOutflow() == null ? other.getOperateOperationOutflow() == null : this.getOperateOperationOutflow().equals(other.getOperateOperationOutflow()))
|
|
|
+ && (this.getOperateOtherOutflow() == null ? other.getOperateOtherOutflow() == null : this.getOperateOtherOutflow().equals(other.getOperateOtherOutflow()))
|
|
|
+ && (this.getOperationTaxesOutflow() == null ? other.getOperationTaxesOutflow() == null : this.getOperationTaxesOutflow().equals(other.getOperationTaxesOutflow()))
|
|
|
+ && (this.getOtherOutflow() == null ? other.getOtherOutflow() == null : this.getOtherOutflow().equals(other.getOtherOutflow()))
|
|
|
+ && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()))
|
|
|
+ && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
|
|
+ && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
|
|
|
+ && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
|
|
|
+ && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()));
|
|
|
}
|
|
|
|
|
|
@Override
|