feat(oa):项目盈亏视图增加客户ID字段
- 在ProjectProfitLossVO中添加customerId字段 - 更新SysOaProjectMapper.xml映射文件以包含客户ID - 支持项目盈亏查询中关联客户信息- 为后续客户维度分析提供数据基础
This commit is contained in:
@@ -15,6 +15,8 @@ public class ProjectProfitLossVO {
|
|||||||
private Integer tradeType;
|
private Integer tradeType;
|
||||||
private Date beginTime;
|
private Date beginTime;
|
||||||
private String projectStatus;
|
private String projectStatus;
|
||||||
|
//客户id
|
||||||
|
private Long customerId;
|
||||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||||
private BigDecimal originalFunds; // 原始合同金额
|
private BigDecimal originalFunds; // 原始合同金额
|
||||||
private String projectRemark; // 项目备注(用于判断币种)
|
private String projectRemark; // 项目备注(用于判断币种)
|
||||||
|
|||||||
@@ -845,6 +845,7 @@
|
|||||||
p.funds AS original_funds,
|
p.funds AS original_funds,
|
||||||
p.remark AS project_remark,
|
p.remark AS project_remark,
|
||||||
p.signing_company AS signingCompany,
|
p.signing_company AS signingCompany,
|
||||||
|
p.customer_id AS customerId,
|
||||||
COALESCE(finance_details.total_income, 0) AS detail_income,
|
COALESCE(finance_details.total_income, 0) AS detail_income,
|
||||||
COALESCE(finance_details.total_expenditure, 0) AS total_expenditure,
|
COALESCE(finance_details.total_expenditure, 0) AS total_expenditure,
|
||||||
CASE
|
CASE
|
||||||
|
|||||||
Reference in New Issue
Block a user