SNAPSHOT W7 已部署稳定态 — 凯迪ERP+OA一体化平台 (MET 73.3%)
恢复点(restore point)。别人改崩后可 git reset --hard 回到此提交。 == 此快照内容 == - 后端 oa-backend: 734 控制器 / 711 实体 (Spring Boot 3.2.5 + SQLite, 端口8091) - 前端 modern-ui/app: Vue3+Vite, 约700页 (构建产物已在 oa-backend/src/main/resources/static) - 数据库 oa-backend/data/oa.db: 含全部演示数据 (强制入库, 6.6MB) - 交接文档 go.md + go-code-reference/endpoints/entities/database.md - 多代理建设脚本 .claude/wf-*.js == 状态 == - 对 凯迪科技ERP_20260507.xlsx 合规 MET ~73.3% (PARTIAL 75: 34可建+6种子/bug+35外部硬天花板) - 安全: 5轮红队+5轮复检, default-deny分级鉴权, 连续零可利用 - W3~W7 累计补完436缺口; W8末轮(40缺口)为半成品(源码树可编译但未集成) - 运行: cd oa-backend; java -jar build/libs/oa-backend-0.1.0.jar --server.port=8091; admin/123456 == 排除(gitignore, 可再生) == node_modules / oa-backend/build / .jdks / *.log / Backup-ERP-* / 弃用的OFBiz核心(只保留modern-ui) 完整文件夹备份见同目录 Backup-ERP-20260615-191517/ (含上述全部, 仅缺 node_modules) 时间戳: 20260615-191517 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,140 @@
|
||||
package com.kaidi.oa.domain;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.Instant;
|
||||
|
||||
/**
|
||||
* 融资合同台账(金融办·融资合同与提款管理)。
|
||||
* 一个 Financing(授信/融资申请)签订后会对应一或多份融资合同;
|
||||
* 合同台账记录合同编号、签署日期、金额、担保条款、提款安排等。
|
||||
* 状态:草稿 → 已签署 → 提款中 → 已用款 → 已结清 → 已终止。
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "pmt_financing_contract")
|
||||
public class PmtFinancingContract {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
/** 融资合同编号。 */
|
||||
private String contractNo;
|
||||
|
||||
/** 关联融资台账 id (financings.id)。 */
|
||||
private Long financingId;
|
||||
|
||||
/** 关联融资台账编号(冗余,便于展示)。 */
|
||||
private String financingCode;
|
||||
|
||||
/** 签署银行/资金方名称。 */
|
||||
private String lender;
|
||||
|
||||
/** 合同金额(与授信可能不同)。 */
|
||||
private BigDecimal contractAmount = BigDecimal.ZERO;
|
||||
|
||||
/** 合同利率(年化,如 4.35)。 */
|
||||
private Double contractRate;
|
||||
|
||||
/** 合同签署日期(YYYY-MM-DD)。 */
|
||||
private String signDate;
|
||||
|
||||
/** 合同到期日期(YYYY-MM-DD)。 */
|
||||
private String maturityDate;
|
||||
|
||||
/** 还款方式:等额本息 / 等额本金 / 到期一次还本付息 / 按期付息到期还本。 */
|
||||
private String repayMethod;
|
||||
|
||||
/** 担保方式:信用贷 / 抵押 / 质押 / 保证 / 组合担保。 */
|
||||
private String guaranteeType;
|
||||
|
||||
/** 担保描述(具体担保物或保证人)。 */
|
||||
private String guaranteeDesc;
|
||||
|
||||
/** 首次提款日期(YYYY-MM-DD)。 */
|
||||
private String firstDrawdownDate;
|
||||
|
||||
/** 累计提款金额。 */
|
||||
private BigDecimal drawnAmount = BigDecimal.ZERO;
|
||||
|
||||
/** 合同相关费用(手续费/评估费等)。 */
|
||||
private BigDecimal contractFee = BigDecimal.ZERO;
|
||||
|
||||
/** 状态:草稿 / 已签署 / 提款中 / 已用款 / 已结清 / 已终止。 */
|
||||
private String status;
|
||||
|
||||
/** 合同备注。 */
|
||||
private String remark;
|
||||
|
||||
/** 经办人。 */
|
||||
private String owner;
|
||||
|
||||
private Instant createdAt;
|
||||
|
||||
public Long getId() { return id; }
|
||||
public void setId(Long id) { this.id = id; }
|
||||
|
||||
public String getContractNo() { return contractNo; }
|
||||
public void setContractNo(String contractNo) { this.contractNo = contractNo; }
|
||||
|
||||
public Long getFinancingId() { return financingId; }
|
||||
public void setFinancingId(Long financingId) { this.financingId = financingId; }
|
||||
|
||||
public String getFinancingCode() { return financingCode; }
|
||||
public void setFinancingCode(String financingCode) { this.financingCode = financingCode; }
|
||||
|
||||
public String getLender() { return lender; }
|
||||
public void setLender(String lender) { this.lender = lender; }
|
||||
|
||||
public BigDecimal getContractAmount() { return contractAmount; }
|
||||
public void setContractAmount(BigDecimal contractAmount) { this.contractAmount = contractAmount; }
|
||||
|
||||
public Double getContractRate() { return contractRate; }
|
||||
public void setContractRate(Double contractRate) { this.contractRate = contractRate; }
|
||||
|
||||
public String getSignDate() { return signDate; }
|
||||
public void setSignDate(String signDate) { this.signDate = signDate; }
|
||||
|
||||
public String getMaturityDate() { return maturityDate; }
|
||||
public void setMaturityDate(String maturityDate) { this.maturityDate = maturityDate; }
|
||||
|
||||
public String getRepayMethod() { return repayMethod; }
|
||||
public void setRepayMethod(String repayMethod) { this.repayMethod = repayMethod; }
|
||||
|
||||
public String getGuaranteeType() { return guaranteeType; }
|
||||
public void setGuaranteeType(String guaranteeType) { this.guaranteeType = guaranteeType; }
|
||||
|
||||
public String getGuaranteeDesc() { return guaranteeDesc; }
|
||||
public void setGuaranteeDesc(String guaranteeDesc) { this.guaranteeDesc = guaranteeDesc; }
|
||||
|
||||
public String getFirstDrawdownDate() { return firstDrawdownDate; }
|
||||
public void setFirstDrawdownDate(String firstDrawdownDate) { this.firstDrawdownDate = firstDrawdownDate; }
|
||||
|
||||
public BigDecimal getDrawnAmount() { return drawnAmount; }
|
||||
public void setDrawnAmount(BigDecimal drawnAmount) { this.drawnAmount = drawnAmount; }
|
||||
|
||||
public BigDecimal getContractFee() { return contractFee; }
|
||||
public void setContractFee(BigDecimal contractFee) { this.contractFee = contractFee; }
|
||||
|
||||
public String getStatus() { return status; }
|
||||
public void setStatus(String status) { this.status = status; }
|
||||
|
||||
public String getRemark() { return remark; }
|
||||
public void setRemark(String remark) { this.remark = remark; }
|
||||
|
||||
public String getOwner() { return owner; }
|
||||
public void setOwner(String owner) { this.owner = owner; }
|
||||
|
||||
public Instant getCreatedAt() { return createdAt; }
|
||||
public void setCreatedAt(Instant createdAt) { this.createdAt = createdAt; }
|
||||
|
||||
/** 是否已有过首次提款(用于决定是否回填 firstDrawdownDate)。 */
|
||||
public boolean hasFirstDrawdown() {
|
||||
return firstDrawdownDate != null && !firstDrawdownDate.isBlank();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user