Merge branch 'master' into feature/pres
Showing
2 changed files
with
38 additions
and
1 deletions
... | @@ -1020,7 +1020,7 @@ class HILCompareReportNew(models.Model): | ... | @@ -1020,7 +1020,7 @@ class HILCompareReportNew(models.Model): |
1020 | 1020 | ||
1021 | class AFCCompareReportNew(models.Model): | 1021 | class AFCCompareReportNew(models.Model): |
1022 | id = models.AutoField(primary_key=True, verbose_name="id") # 主键 | 1022 | id = models.AutoField(primary_key=True, verbose_name="id") # 主键 |
1023 | application_id = models.CharField(max_length=64, verbose_name="申请id") | 1023 | application_id = models.CharField(max_length=64, verbose_name="申请id") # 索引 |
1024 | 1024 | ||
1025 | is_se = models.BooleanField(default=True, verbose_name="是否Settlement") | 1025 | is_se = models.BooleanField(default=True, verbose_name="是否Settlement") |
1026 | is_auto = models.BooleanField(default=False, verbose_name="是否Settlement Auto") | 1026 | is_auto = models.BooleanField(default=False, verbose_name="是否Settlement Auto") |
... | @@ -1035,3 +1035,4 @@ class AFCCompareReportNew(models.Model): | ... | @@ -1035,3 +1035,4 @@ class AFCCompareReportNew(models.Model): |
1035 | class Meta: | 1035 | class Meta: |
1036 | managed = False | 1036 | managed = False |
1037 | db_table = 'afc_compare_report_new' | 1037 | db_table = 'afc_compare_report_new' |
1038 | situ_db_label = 'afc' | ... | ... |
... | @@ -13,10 +13,46 @@ hil_sql = """ | ... | @@ -13,10 +13,46 @@ hil_sql = """ |
13 | duration smallint not null, | 13 | duration smallint not null, |
14 | create_time datetime not null | 14 | create_time datetime not null |
15 | ); | 15 | ); |
16 | |||
17 | create table hil_compare_report_new | ||
18 | ( | ||
19 | id bigint identity primary key, | ||
20 | application_id nvarchar(64) not null, | ||
21 | is_se bit default 1 not null, | ||
22 | is_auto bit default 0 not null, | ||
23 | is_pass bit default 0 not null, | ||
24 | full_result nvarchar(max), | ||
25 | field_result nvarchar(max), | ||
26 | start_time datetime not null, | ||
27 | end_time datetime not null, | ||
28 | ); | ||
29 | |||
30 | create index hil_compare_report_new_start_time_index | ||
31 | on hil_compare_report_new (start_time); | ||
32 | |||
33 | create index hil_compare_report_new_application_id_index | ||
34 | on hil_compare_report_new (application_id); | ||
16 | """ | 35 | """ |
17 | 36 | ||
18 | afc_sql = """ | 37 | afc_sql = """ |
38 | create table afc_compare_report_new | ||
39 | ( | ||
40 | id bigint identity primary key, | ||
41 | application_id nvarchar(64) not null, | ||
42 | is_se bit default 1 not null, | ||
43 | is_auto bit default 0 not null, | ||
44 | is_pass bit default 0 not null, | ||
45 | full_result nvarchar(max), | ||
46 | field_result nvarchar(max), | ||
47 | start_time datetime not null, | ||
48 | end_time datetime not null, | ||
49 | ); | ||
50 | |||
51 | create index afc_compare_report_new_start_time_index | ||
52 | on afc_compare_report_new (start_time); | ||
19 | 53 | ||
54 | create index afc_compare_report_new_application_id_index | ||
55 | on afc_compare_report_new (application_id); | ||
20 | """ | 56 | """ |
21 | 57 | ||
22 | hil_cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};', autocommit=True) | 58 | hil_cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};', autocommit=True) | ... | ... |
-
Please register or sign in to post a comment