重新修改盈亏逻辑

This commit is contained in:
2025-06-23 09:40:40 +08:00
parent f7c9ab66e0
commit ca2ea16d40
5 changed files with 55 additions and 71 deletions

View File

@@ -16,17 +16,19 @@ public class ProjectProfitLossVO {
@JsonFormat(shape = JsonFormat.Shape.STRING)
private BigDecimal originalFunds; // 原始合同金额
private String projectRemark; // 项目备注(用于判断币种)
private BigDecimal contractAmountUsd; // 美元合同金额
private Integer isUsd; // 是否美元1是0否
// 从财务明细中汇总的总收入(仅用于无合同额的项目)
@JsonFormat(shape = JsonFormat.Shape.STRING)
private BigDecimal detailIncome;
private BigDecimal exchangeRate; // 实时汇率
// 从财务明细中汇总的总支出(所有项目的成本来源)
@JsonFormat(shape = JsonFormat.Shape.STRING)
private BigDecimal contractAmountCny; // 人民币合同金额
private BigDecimal totalExpenditure;
// 最终计算出的总收入(人民币,展示用)
@JsonFormat(shape = JsonFormat.Shape.STRING)
private BigDecimal warehouseCost;
@JsonFormat(shape = JsonFormat.Shape.STRING)
private BigDecimal hrCost;
private BigDecimal totalIncomeCny;
@JsonFormat(shape = JsonFormat.Shape.STRING)
private BigDecimal profitLoss; //盈亏金额
// ...其他字段
// getter/setter
}