From e539c3a34c3ffb69f540516351e9f3dfc25520c6 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Sun, 7 Jul 2024 10:36:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=A1=A8zx=5Fphhd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_review/entity/zx_phhd.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/photo_review/entity/zx_phhd.py b/photo_review/entity/zx_phhd.py index aeb0a23..6c329bd 100644 --- a/photo_review/entity/zx_phhd.py +++ b/photo_review/entity/zx_phhd.py @@ -8,12 +8,11 @@ from config.mysql import Base class ZxPhhd(Base): __tablename__ = 'zx_phhd' __table_args__ = ( - Index('zx_phhd_idx7', 'pk_yljg', 'cjsd_id'), - Index('zx_phhd_idx5', 'cStatus', 'checker', 'checktime') + Index('zx_phhd_idx3', 'pk_yljg', 'cjsd_id'), ) pk_phhd = Column(INTEGER(11), primary_key=True, comment='病案主键') - cPhhd_id = Column(VARCHAR(20), unique=True, comment='拍一拍单据号') + cPhhd_id = Column(VARCHAR(20), index=True, comment='拍一拍单据号') billdate = Column(DateTime, index=True) pk_person = Column(INTEGER(11), server_default=text("'0'"), comment='人员主键') pk_corp = Column(INTEGER(11), index=True, server_default=text("'0'"), comment='单位主键') @@ -49,11 +48,12 @@ class ZxPhhd(Base): problem_note = Column(String(400)) depiction = Column(VARCHAR(300), comment='备注') creator = Column(VARCHAR(30), index=True, comment='创建人') - creationtime = Column(DateTime, index=True, server_default=text("CURRENT_TIMESTAMP"), comment='创建时间') + creationtime = Column(DateTime, server_default=text("CURRENT_TIMESTAMP"), comment='创建时间') modifier = Column(VARCHAR(30), comment='最后修改人') modifiedtime = Column(DateTime, server_default=text("CURRENT_TIMESTAMP"), comment='最后修改时间') - cStatus = Column(CHAR(1), server_default=text("'0'"), comment='状态') + cStatus = Column(CHAR(1), index=True, server_default=text("'0'"), comment='状态') vercode = Column(VARCHAR(4), comment='版本编码') + drg_groups_id = Column(String(6), server_default=text("'2017'"), comment='drg分组器版本号') cSource_flag = Column(VARCHAR(4), server_default=text("'1'"), comment='病案来源') ref_id1 = Column(VARCHAR(20)) ref_id2 = Column(VARCHAR(20)) @@ -95,10 +95,10 @@ class ZxPhhd(Base): addin_xybz = Column(BIT(1)) addin_tybz = Column(BIT(1)) finish_flag = Column(BIT(1)) - exsuccess_flag = Column(BIT(1)) + exsuccess_flag = Column(CHAR(1), server_default=text("'0'"), comment='交换成功标志') pk_soncorp = Column(INTEGER(11), server_default=text("'0'"), comment='镇下村单位pk值') return_times = Column(INTEGER(11), server_default=text("'0'"), comment='退回次数') - phuser_type = Column(CHAR(1), server_default=text("'1'"), comment='拍传人类型(1-自拍,2代拍,3管理员代拍)') + phuser_type = Column(CHAR(1), server_default=text("'1'"), comment='拍传人类型') examine_note = Column(VARCHAR(400), comment='抽查意见') examine_user = Column(VARCHAR(30), comment='抽查人') examine_date = Column(DateTime, comment='抽查时间')