| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- """临床应用缴费记录模型"""
- from sqlalchemy import Column, String, Text, SmallInteger, Numeric, DateTime
- from sqlalchemy.sql import func
- from app.models.base import Base
- class BizPilotPayment(Base):
- """临床应用缴费记录 biz_pilot_payment"""
- __tablename__ = "biz_pilot_payment"
- id = Column(String(64), primary_key=True, comment="主键ID")
- pilot_application_id = Column(String(64), nullable=False, comment="临床申请单ID")
- infusion_schedule_id = Column(String(64), nullable=False, comment="输注计划ID")
- biz_type = Column(String(20), nullable=False, default="clinical_application", comment="业务类型")
- amount = Column(Numeric(18, 2), nullable=False, comment="缴费金额")
- transfer_type = Column(String(16), nullable=True, comment="转账方式: wxzz/zzfbzz/yhkzz/xj")
- transfer_amount = Column(Numeric(18, 2), nullable=True, comment="实际转账金额")
- transfer_time = Column(DateTime, nullable=True, comment="转账时间")
- transfer_attachments = Column(Text, nullable=True, comment="转账凭证附件")
- pay_status = Column(String(32), nullable=False, default="dfj", comment="缴费状态: dfj/jfqrz/yjf/tfqrz/ytf")
- finance_confirm_attachments = Column(Text, nullable=True, comment="财务确认收款附件")
- finance_remark = Column(String(512), nullable=True, comment="财务确认收款备注")
- finance_confirm_time = Column(DateTime, nullable=True, comment="财务确认收款时间")
- refund_amount = Column(Numeric(18, 2), nullable=True, comment="退费金额")
- refund_remark = Column(String(512), nullable=True, comment="退费备注")
- refund_attachments = Column(Text, nullable=True, comment="退费附件")
- refund_apply_by = Column(String(64), nullable=True, comment="退费申请人ID")
- refund_apply_time = Column(DateTime, nullable=True, comment="退费申请时间")
- refund_finance_confirm_attachments = Column(Text, nullable=True, comment="退费财务确认附件")
- refund_finance_remark = Column(String(512), nullable=True, comment="退费财务确认备注")
- refund_finance_confirm_time = Column(DateTime, nullable=True, comment="退费财务确认时间")
- tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
- order_num = Column(SmallInteger, nullable=True, comment="排序号")
- remark = Column(String(512), nullable=True, comment="备注")
- create_by = Column(String(64), nullable=True, comment="创建人id")
- create_dept_id = Column(String(64), nullable=False, default="", comment="创建人部门ID")
- create_time = Column(DateTime, nullable=False, server_default=func.now(), comment="创建时间")
- update_by = Column(String(64), nullable=True, comment="更新人id")
- update_time = Column(DateTime, nullable=False, server_default=func.now(), onupdate=func.now(), comment="更新时间")
- del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|