diff --git a/db/mysql.py b/db/mysql.py index 9b37fdf..9fd738d 100644 --- a/db/mysql.py +++ b/db/mysql.py @@ -404,3 +404,27 @@ class ViewErrorReview(Base): modifier = Column(VARCHAR(30), comment='最后修改人') modifiedtime = Column(DateTime, server_default=text("CURRENT_TIMESTAMP"), comment='最后修改时间') cstatus = Column(CHAR(1), index=True, server_default=text("'0'"), comment='状态') + + +class ZxIeReview(Base): + __tablename__ = 'zx_ie_review' + + pk_ie_review = Column(INTEGER(11), primary_key=True, comment='自动审核主键') + pk_phhd = Column(INTEGER(11), nullable=False, comment='报销案子主键') + success = Column(BIT(1)) + has_settlement = Column(BIT(1)) + has_discharge = Column(BIT(1)) + has_cost = Column(BIT(1)) + full_page = Column(BIT(1)) + page_description = Column(String(255), comment='具体缺页描述') + name_match = Column(CHAR(1), server_default=text("'0'"), + comment='三项资料姓名是否一致。0:不一致;1:一致;2:结算单不一致;3:出院记录不一致;4:费用清单不一致;5:与报销申请对象不一致') + admission_date_match = Column(CHAR(1), server_default=text("'0'"), + comment='三项资料入院日期是否一致。0:不一致;1:一致;2:结算单不一致;3:出院记录不一致;4:费用清单不一致') + discharge_date_match = Column(CHAR(1), server_default=text("'0'"), + comment='三项资料出院日期是否一致。0:不一致;1:一致;2:结算单不一致;3:出院记录不一致;4:费用清单不一致') + create_time = Column(DateTime, server_default=text("CURRENT_TIMESTAMP"), comment='创建时间') + creator = Column(String(255), comment='创建人') + update_time = Column(DateTime, server_default=text("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"), + comment='修改时间') + updater = Column(String(255), comment='修改人')