Files
F8WebAI/backend/AgriculturalPlatform.Api/Models/PaymentRecord.cs
T
fanhongcai c377421a3e 新增农户功能升级:身份证OCR/OSS上传、头像采集、同名村检测、Region热度排序及表单体验优化
- Region 表新增热度列,热门省份优先显示
- 区县下拉按地级市分组、已录区县优先、支持全省搜索
- 组选择内置一组至二十组
- 银行卡号独立行+粗体预览,开户行独立行
- 新增农户类型:农户/个体户/合作社/经营集体/公司
- 身份证正反面支持高拍仪/摄像头OCR与手机扫码上传,附件存本地/OSS
- 新增农户头像采集组件(摄像头/本地上传),预留人脸识别收购扩展
- 同名村弹窗提醒(防选错乡镇)
- 编辑窗体禁止遮罩/Esc误关,整体加宽适配高频操作
- 修复二维码局域网手机无法访问(监听0.0.0.0、局域网IP识别、Vite代理兜底)
2026-08-13 16:07:35 +08:00

46 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace AgriculturalPlatform.Api.Models;
/// <summary>电子支付记录(农户货款结算)</summary>
public class PaymentRecord
{
public int Id { get; set; }
/// <summary>付款单号(如 ZF20260812-0001</summary>
public string PayNo { get; set; } = string.Empty;
/// <summary>关联收购单(可为空:批量结算)</summary>
public int? PurchaseOrderId { get; set; }
public PurchaseOrder? PurchaseOrder { get; set; }
/// <summary>收购方组织(批量结算时也记录归属)</summary>
public int? PurchaserOrgId { get; set; }
public Organization? PurchaserOrg { get; set; }
public int FarmerId { get; set; }
public Farmer? Farmer { get; set; }
/// <summary>付款金额(元)</summary>
public decimal Amount { get; set; }
public PayMethod Method { get; set; } = PayMethod.BankTransfer;
public PayStatus Status { get; set; } = PayStatus.Pending;
/// <summary>外部交易流水号</summary>
public string TradeNo { get; set; } = string.Empty;
/// <summary>经办人</summary>
public int? OperatorId { get; set; }
public User? Operator { get; set; }
public DateTime? PaidAt { get; set; }
public string Notes { get; set; } = string.Empty;
public DateTime CreatedAt { get; set; } = DateTime.Now;
}