668f1c30 by 周伟奇

add compare report se part 2

1 parent 1c2ccd20
......@@ -1020,7 +1020,7 @@ class HILCompareReportNew(models.Model):
class AFCCompareReportNew(models.Model):
id = models.AutoField(primary_key=True, verbose_name="id") # 主键
application_id = models.CharField(max_length=64, verbose_name="申请id")
application_id = models.CharField(max_length=64, verbose_name="申请id") # 索引
is_se = models.BooleanField(default=True, verbose_name="是否Settlement")
is_auto = models.BooleanField(default=False, verbose_name="是否Settlement Auto")
......@@ -1035,3 +1035,4 @@ class AFCCompareReportNew(models.Model):
class Meta:
managed = False
db_table = 'afc_compare_report_new'
situ_db_label = 'afc'
......
......@@ -13,10 +13,46 @@ hil_sql = """
duration smallint not null,
create_time datetime not null
);
create table hil_compare_report_new
(
id bigint identity primary key,
application_id nvarchar(64) not null,
is_se bit default 1 not null,
is_auto bit default 0 not null,
is_pass bit default 0 not null,
full_result nvarchar(max),
field_result nvarchar(max),
start_time datetime not null,
end_time datetime not null,
);
create index hil_compare_report_new_start_time_index
on hil_compare_report_new (start_time);
create index hil_compare_report_new_application_id_index
on hil_compare_report_new (application_id);
"""
afc_sql = """
create table afc_compare_report_new
(
id bigint identity primary key,
application_id nvarchar(64) not null,
is_se bit default 1 not null,
is_auto bit default 0 not null,
is_pass bit default 0 not null,
full_result nvarchar(max),
field_result nvarchar(max),
start_time datetime not null,
end_time datetime not null,
);
create index afc_compare_report_new_start_time_index
on afc_compare_report_new (start_time);
create index afc_compare_report_new_application_id_index
on afc_compare_report_new (application_id);
"""
hil_cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};', autocommit=True)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!