Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
668f1c30
authored
2022-10-19 19:29:34 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add compare report se part 2
1 parent
1c2ccd20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
2 deletions
src/apps/doc/models.py
src/common/tools/mssql_script21.py
src/apps/doc/models.py
View file @
668f1c3
...
...
@@ -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'
...
...
src/common/tools/mssql_script21.py
View file @
668f1c3
...
...
@@ -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
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment