Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mancheng
Commits
837174d2
Commit
837174d2
authored
Nov 17, 2022
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20221117
parent
c59cb590
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
1 deletions
+53
-1
apps/inves_manage/view.py
+0
-0
apps/models.py
+53
-1
No files found.
apps/inves_manage/view.py
View file @
837174d2
This diff is collapsed.
Click to expand it.
apps/models.py
View file @
837174d2
...
@@ -1034,7 +1034,8 @@ class GovDepartment(db.Model):
...
@@ -1034,7 +1034,8 @@ class GovDepartment(db.Model):
"""招商资源管理"""
"""招商资源管理"""
class
SikuProject
(
db
.
Model
):
# 四库管理-项目信息表
# 四库管理-项目信息表
class
SikuProject
(
db
.
Model
):
__tablename_
=
"siku_project"
__tablename_
=
"siku_project"
__table_args__
=
({
'comment'
:
'四库管理-项目信息表'
})
# 添加表注释
__table_args__
=
({
'comment'
:
'四库管理-项目信息表'
})
# 添加表注释
# 项目标签
# 项目标签
...
@@ -1072,6 +1073,7 @@ class SikuProject(db.Model): # 四库管理-项目信息表
...
@@ -1072,6 +1073,7 @@ class SikuProject(db.Model): # 四库管理-项目信息表
# 对接库
# 对接库
project_to_area
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'拟落地区域'
)
project_to_area
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'拟落地区域'
)
development_area
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'开发区'
)
development_area
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'开发区'
)
garden
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'园区'
)
project_address
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'项目详细地址'
)
project_address
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'项目详细地址'
)
joint_condition
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'项目对接情况'
)
joint_condition
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'项目对接情况'
)
project_problem
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'项目当前存在的问题'
)
project_problem
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'项目当前存在的问题'
)
...
@@ -1094,6 +1096,8 @@ class SikuProject(db.Model): # 四库管理-项目信息表
...
@@ -1094,6 +1096,8 @@ class SikuProject(db.Model): # 四库管理-项目信息表
Party_B_mobile
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'签约乙方联系方式'
)
Party_B_mobile
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'签约乙方联系方式'
)
sign_time
=
db
.
Column
(
db
.
DateTime
,
comment
=
'签约时间'
)
sign_time
=
db
.
Column
(
db
.
DateTime
,
comment
=
'签约时间'
)
sign_year
=
db
.
Column
(
db
.
Integer
,
comment
=
'签约年份'
)
sign_year
=
db
.
Column
(
db
.
Integer
,
comment
=
'签约年份'
)
sign_style
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'签约方式'
)
sign_explain
=
db
.
Column
(
db
.
String
(
255
),
comment
=
'其他签约说明'
)
# 开工库
# 开工库
investment
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'到位资金'
)
investment
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'到位资金'
)
...
@@ -1102,7 +1106,54 @@ class SikuProject(db.Model): # 四库管理-项目信息表
...
@@ -1102,7 +1106,54 @@ class SikuProject(db.Model): # 四库管理-项目信息表
start_year
=
db
.
Column
(
db
.
Integer
,
comment
=
'开工年份'
)
start_year
=
db
.
Column
(
db
.
Integer
,
comment
=
'开工年份'
)
# 四库管理对接库-项目进展(项目对接情况/项目推进情况)
class
ProgressCondition
(
db
.
Model
):
__tablename_
=
"progress_condition"
__table_args__
=
({
'comment'
:
'四库管理对接库-项目进展(项目对接情况/项目推进情况)'
})
# 添加表注释
id
=
db
.
Column
(
db
.
Integer
,
primary_key
=
True
,
autoincrement
=
True
,
comment
=
'主键id'
)
flag
=
db
.
Column
(
db
.
Integer
,
comment
=
'2为对接库,3为签约库,4为开工库'
)
add_time
=
db
.
Column
(
db
.
DateTime
,
comment
=
'添加时间'
)
info
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'项目对接情况'
)
project_id
=
db
.
Column
(
db
.
Integer
,
db
.
ForeignKey
(
"siku_project.id"
),
comment
=
'外键id,项目id'
)
project
=
db
.
relationship
(
'SikuProject'
,
backref
=
db
.
backref
(
'progress_conditions'
))
# 项目1-N项目对接情况
# 四库管理对接库-相关印证资料图片
class
ProjectFile
(
db
.
Model
):
__tablename_
=
"project_file"
__table_args__
=
({
'comment'
:
'四库管理对接库-相关印证资料图片'
})
# 添加表注释
id
=
db
.
Column
(
db
.
Integer
,
primary_key
=
True
,
autoincrement
=
True
,
comment
=
'主键id'
)
flag
=
db
.
Column
(
db
.
Integer
,
comment
=
'2为对接库,3为签约库,4为开工库'
)
file_type
=
db
.
Column
(
db
.
Integer
,
comment
=
'1文件,2图片'
)
file_url
=
db
.
Column
(
db
.
String
(
300
),
comment
=
'相关印证资料图片url'
)
file_name
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'相关印证资料图片名称'
)
upload_time
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'上传时间'
)
upload_people
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'上传人'
)
upload_people_id
=
db
.
Column
(
db
.
Integer
,
comment
=
'上传人id'
)
project_id
=
db
.
Column
(
db
.
Integer
,
db
.
ForeignKey
(
"siku_project.id"
),
comment
=
'外键id,项目id'
)
project
=
db
.
relationship
(
'SikuProject'
,
backref
=
db
.
backref
(
'project_files'
))
# 项目1-N项目对接情况
# 签约库-签约的第三方
class
SignThree
(
db
.
Model
):
__tablename_
=
"sign_three"
__table_args__
=
({
'comment'
:
'签约库-签约的第三方'
})
# 添加表注释
id
=
db
.
Column
(
db
.
Integer
,
primary_key
=
True
,
autoincrement
=
True
,
comment
=
'主键id'
)
# flag = db.Column(db.Integer, comment='2为对接库,3为签约库,4为开工库')
name
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'第三方名称'
)
people
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'第三方联系人'
)
mobile
=
db
.
Column
(
db
.
String
(
20
),
comment
=
'第三方联系方式'
)
project_id
=
db
.
Column
(
db
.
Integer
,
db
.
ForeignKey
(
"siku_project.id"
),
comment
=
'外键id,项目id'
)
project
=
db
.
relationship
(
'SikuProject'
,
backref
=
db
.
backref
(
'sign_threes'
))
# 项目1-N项目对接情况
# 四库管理-项目动态数据表
class
ProjectDynamicLog
(
db
.
Model
):
__tablename_
=
"project_dynamic_log"
__table_args__
=
({
'comment'
:
'四库管理-项目动态数据表'
})
# 添加表注释
id
=
db
.
Column
(
db
.
Integer
,
primary_key
=
True
,
autoincrement
=
True
,
comment
=
'主键id'
)
project_id
=
db
.
Column
(
db
.
Integer
,
comment
=
'项目id'
)
operation_people
=
db
.
Column
(
db
.
String
(
30
),
comment
=
'操作人'
)
item
=
db
.
Column
(
db
.
String
(
255
),
comment
=
'动态'
)
time
=
db
.
Column
(
db
.
String
(
30
),
comment
=
'时间'
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment