|
|
@@ -1075,6 +1075,9 @@ class BizCollectionProtocol(Base):
|
|
|
to_research_time = Column(DateTime, nullable=True, comment="协议转科研时间")
|
|
|
to_research_desc = Column(String(512), nullable=True, comment="协议转科研描述")
|
|
|
collector_user_id = Column(String(64), nullable=True, comment="采集专员用户ID")
|
|
|
+ protocol_total_amount = Column(Numeric(18, 2), nullable=True, comment="手填协议总金额")
|
|
|
+ source_presign_order_id = Column(String(64), nullable=True, comment="来源预签约订单ID")
|
|
|
+ payment_model_version = Column(SmallInteger, nullable=False, default=2, comment="缴费模型版本 1旧/2新")
|
|
|
tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
|
|
order_num = Column(Integer, nullable=True, comment="排序号")
|
|
|
remark = Column(String(512), nullable=True, comment="备注信息")
|
|
|
@@ -1211,6 +1214,183 @@ class BizProtocolPaymentDetail(Base):
|
|
|
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
|
|
|
|
|
|
|
|
+class BizProtocolSamplePayment(Base):
|
|
|
+ """采集协议单-按样本缴费方案 biz_protocol_sample_payment"""
|
|
|
+
|
|
|
+ __tablename__ = "biz_protocol_sample_payment"
|
|
|
+
|
|
|
+ id = Column(String(64), primary_key=True, comment="主键ID")
|
|
|
+ collection_protocol_id = Column(String(64), nullable=False, comment="采集协议单ID")
|
|
|
+ protocol_sample_id = Column(String(64), nullable=True, comment="协议样本ID(可空兜底)")
|
|
|
+ sample_code = Column(String(32), nullable=False, comment="样本编码(业务关联键)")
|
|
|
+ pay_mode = Column(String(8), nullable=False, comment="dj趸交 fq分期")
|
|
|
+ contract_amount = Column(Numeric(18, 2), nullable=True, comment="该样本合同金额")
|
|
|
+ installment_count = Column(Integer, nullable=True, comment="分期期数")
|
|
|
+ installment_interval_months = Column(Numeric(10, 2), nullable=True, comment="每期间隔(月)")
|
|
|
+ installment_start_date = Column(CHAR(8), nullable=True, comment="分期开始YYYYMMDD")
|
|
|
+ installment_advance_days = Column(Integer, nullable=True, comment="第2期起应缴费提前天数")
|
|
|
+ installment_ratios = Column(String(256), nullable=True, comment="各期缴费比例JSON数组")
|
|
|
+ lump_sum_deadline = Column(CHAR(8), nullable=True, comment="趸交截止时间YYYYMMDD")
|
|
|
+ tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
|
|
+ order_num = Column(Integer, 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, default=datetime.now, comment="创建时间")
|
|
|
+ update_by = Column(String(64), nullable=True, comment="更新人id")
|
|
|
+ update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
|
|
+ del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
|
|
+
|
|
|
+
|
|
|
+class BizProtocolPaymentSchedule(Base):
|
|
|
+ """采集协议单-应缴批次 biz_protocol_payment_schedule"""
|
|
|
+
|
|
|
+ __tablename__ = "biz_protocol_payment_schedule"
|
|
|
+
|
|
|
+ id = Column(String(64), primary_key=True, comment="主键ID")
|
|
|
+ sample_payment_id = Column(String(64), nullable=False, comment="样本缴费方案ID")
|
|
|
+ collection_protocol_id = Column(String(64), nullable=False, comment="采集协议单ID")
|
|
|
+ sample_code = Column(String(32), nullable=False, comment="样本编码")
|
|
|
+ schedule_no = Column(Integer, nullable=True, comment="期次序号")
|
|
|
+ due_amount = Column(Numeric(18, 2), nullable=True, comment="应缴金额")
|
|
|
+ due_date = Column(CHAR(8), nullable=True, comment="应缴日期YYYYMMDD")
|
|
|
+ schedule_status = Column(String(16), nullable=True, comment="批次状态 open/cleared/void")
|
|
|
+ tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
|
|
+ order_num = Column(Integer, 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, default=datetime.now, comment="创建时间")
|
|
|
+ update_by = Column(String(64), nullable=True, comment="更新人id")
|
|
|
+ update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
|
|
+ del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
|
|
+
|
|
|
+
|
|
|
+class BizProtocolPaymentTransfer(Base):
|
|
|
+ """采集协议单-缴费转账笔 biz_protocol_payment_transfer"""
|
|
|
+
|
|
|
+ __tablename__ = "biz_protocol_payment_transfer"
|
|
|
+
|
|
|
+ id = Column(String(64), primary_key=True, comment="主键ID")
|
|
|
+ schedule_id = Column(String(64), nullable=False, comment="应缴批次ID")
|
|
|
+ sample_payment_id = Column(String(64), nullable=False, comment="样本缴费方案ID")
|
|
|
+ collection_protocol_id = Column(String(64), nullable=False, comment="采集协议单ID")
|
|
|
+ sample_code = Column(String(32), nullable=False, comment="样本编码")
|
|
|
+ transfer_amount = Column(Numeric(18, 2), nullable=True, comment="转账金额")
|
|
|
+ transfer_time = Column(DateTime, nullable=True, comment="转账时间")
|
|
|
+ transfer_type = Column(String(16), nullable=True, comment="转账方式")
|
|
|
+ transfer_attachments = Column(Text, nullable=True, comment="转账附件")
|
|
|
+ pay_status = Column(String(32), nullable=False, default="dfj", comment="缴费状态 dfj/jfqrz/yjf")
|
|
|
+ finance_confirm_attachments = Column(Text, nullable=True, comment="缴费财务确认附件")
|
|
|
+ finance_remark = Column(String(512), nullable=True, comment="缴费财务确认备注")
|
|
|
+ tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
|
|
+ order_num = Column(Integer, 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, default=datetime.now, comment="创建时间")
|
|
|
+ update_by = Column(String(64), nullable=True, comment="更新人id")
|
|
|
+ update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
|
|
+ del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
|
|
+
|
|
|
+
|
|
|
+class BizProtocolRefundRecord(Base):
|
|
|
+ """采集协议单-退费登记 biz_protocol_refund_record"""
|
|
|
+
|
|
|
+ __tablename__ = "biz_protocol_refund_record"
|
|
|
+
|
|
|
+ id = Column(String(64), primary_key=True, comment="主键ID")
|
|
|
+ collection_protocol_id = Column(String(64), nullable=False, comment="采集协议单ID")
|
|
|
+ refund_amount = Column(Numeric(18, 2), nullable=True, comment="退费金额")
|
|
|
+ refund_time = Column(DateTime, nullable=True, comment="退费时间")
|
|
|
+ refund_remark = Column(String(512), nullable=True, comment="退费备注")
|
|
|
+ refund_attachments = Column(Text, nullable=True, comment="退费附件")
|
|
|
+ workflow_instance_id = Column(String(64), nullable=True, comment="OA工作流实例ID")
|
|
|
+ tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
|
|
+ order_num = Column(Integer, 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, default=datetime.now, comment="创建时间")
|
|
|
+ update_by = Column(String(64), nullable=True, comment="更新人id")
|
|
|
+ update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
|
|
+ del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
|
|
+
|
|
|
+
|
|
|
+class BizPresignOrder(Base):
|
|
|
+ """预签约订单 biz_presign_order"""
|
|
|
+
|
|
|
+ __tablename__ = "biz_presign_order"
|
|
|
+
|
|
|
+ id = Column(String(64), primary_key=True, comment="主键ID")
|
|
|
+ order_date = Column(CHAR(8), nullable=True, comment="业务日期YYYYMMDD")
|
|
|
+ protocol_no = Column(String(64), nullable=True, comment="协议编号")
|
|
|
+ mother_name = Column(String(64), nullable=True, comment="母亲姓名")
|
|
|
+ expected_delivery_date = Column(CHAR(8), nullable=True, comment="预产期YYYYMMDD")
|
|
|
+ region_id = Column(String(64), nullable=True, comment="采集地区ID")
|
|
|
+ hospital_id = Column(String(64), nullable=True, comment="医院ID")
|
|
|
+ sample_collect_time = Column(DateTime, nullable=True, comment="采集时间")
|
|
|
+ pay_mode = Column(String(8), nullable=True, comment="整单缴费方式 dj/fq")
|
|
|
+ contract_amount = Column(Numeric(18, 2), nullable=True, comment="整单合同金额")
|
|
|
+ sales_user_id = Column(String(64), nullable=True, comment="市场专员用户ID")
|
|
|
+ region_manager_user_id = Column(String(64), nullable=True, comment="地区经理用户ID")
|
|
|
+ order_status = Column(String(16), nullable=True, comment="订单状态 draft/active/converted/void")
|
|
|
+ converted_protocol_id = Column(String(64), nullable=True, comment="转成的正式协议ID")
|
|
|
+ tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
|
|
+ order_num = Column(Integer, 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, default=datetime.now, comment="创建时间")
|
|
|
+ update_by = Column(String(64), nullable=True, comment="更新人id")
|
|
|
+ update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
|
|
+ del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
|
|
+
|
|
|
+
|
|
|
+class BizPresignOrderSampleType(Base):
|
|
|
+ """预签约订单-样本类型 biz_presign_order_sample_type"""
|
|
|
+
|
|
|
+ __tablename__ = "biz_presign_order_sample_type"
|
|
|
+
|
|
|
+ id = Column(String(64), primary_key=True, comment="主键ID")
|
|
|
+ presign_order_id = Column(String(64), nullable=False, comment="预签约订单ID")
|
|
|
+ sample_type_id = Column(String(64), nullable=False, comment="样本类型ID")
|
|
|
+ tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
|
|
+ order_num = Column(Integer, 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, default=datetime.now, comment="创建时间")
|
|
|
+ update_by = Column(String(64), nullable=True, comment="更新人id")
|
|
|
+ update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
|
|
+ del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
|
|
+
|
|
|
+
|
|
|
+class BizPresignTransfer(Base):
|
|
|
+ """预签约订单-意向金转账笔 biz_presign_transfer"""
|
|
|
+
|
|
|
+ __tablename__ = "biz_presign_transfer"
|
|
|
+
|
|
|
+ id = Column(String(64), primary_key=True, comment="主键ID")
|
|
|
+ presign_order_id = Column(String(64), nullable=False, comment="预签约订单ID")
|
|
|
+ transfer_amount = Column(Numeric(18, 2), nullable=True, comment="转账金额")
|
|
|
+ transfer_time = Column(DateTime, nullable=True, comment="转账时间")
|
|
|
+ transfer_type = Column(String(16), nullable=True, comment="转账方式")
|
|
|
+ transfer_attachments = Column(Text, nullable=True, comment="转账附件")
|
|
|
+ pay_status = Column(String(32), nullable=False, default="dfj", comment="缴费状态 dfj/jfqrz/yjf")
|
|
|
+ finance_confirm_attachments = Column(Text, nullable=True, comment="缴费财务确认附件")
|
|
|
+ finance_remark = Column(String(512), nullable=True, comment="缴费财务确认备注")
|
|
|
+ tenant_no = Column(String(64), nullable=False, default="zkxw", comment="租户编号")
|
|
|
+ order_num = Column(Integer, 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, default=datetime.now, comment="创建时间")
|
|
|
+ update_by = Column(String(64), nullable=True, comment="更新人id")
|
|
|
+ update_time = Column(DateTime, nullable=False, default=datetime.now, onupdate=datetime.now, comment="更新时间")
|
|
|
+ del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
|
|
+
|
|
|
+
|
|
|
class BizProtocolInvoiceRequest(Base):
|
|
|
"""采集协议单开票申请主表 biz_protocol_invoice_request"""
|
|
|
|