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
82dc05cc
Commit
82dc05cc
authored
Jan 25, 2022
by
赵宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b5277418
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
apps/models.py
+11
-11
apps/utils/json/city.json
+0
-0
apps/view_360company/view.py
+0
-0
No files found.
apps/models.py
View file @
82dc05cc
...
...
@@ -50,8 +50,8 @@ class Enterprise(db.Model):
company_code
=
db
.
Column
(
db
.
String
(
100
),
doc
=
'组织机构代码'
,
comment
=
'组织机构代码'
)
# 组织机构代码
bao_num
=
db
.
Column
(
db
.
Integer
,
doc
=
'参保人数'
,
comment
=
'参保人数'
)
# 参保人数
entype
=
db
.
Column
(
db
.
String
(
100
),
doc
=
'企业类型'
,
comment
=
'企业类型'
)
# 企业类型
entypeid
=
db
.
Column
(
db
.
Integer
,
index
=
True
,
doc
=
'公司类型id(个人独资企业-1)(股份有限公司-2)(有限责任公司-3)(合伙企业-4)(集体所有制-5)(全民所有制企业-6)(外商企业-7)'
,
comment
=
'公司类型id(个人独资企业-1)(股份有限公司-2)(有限责任公司-3)(合伙企业-4)(集体所有制-5)(全民所有制企业-6)(外商企业-7)'
)
# 公司类型id(个人独资企业-1)(股份有限公司-2)(有限责任公司-3)(合伙企业-4)(集体所有制-5)
# (全民所有制企业-6)(外商企业-7
)
entypeid
=
db
.
Column
(
db
.
Integer
,
index
=
True
,
doc
=
'公司类型id(个人独资企业-1)(股份有限公司-2)(有限责任公司-3)(合伙企业-4)(集体所有制-5)(全民所有制企业-6)(外商企业-7)'
,
comment
=
'公司类型id(个人独资企业-1)(股份有限公司-2)(有限责任公司-3)(合伙企业-4)(集体所有制-5)(全民所有制企业-6)(外商企业-7)'
)
# 公司类型id(个人独资企业-1)(股份有限公司-2)(有限责任公司-3)(合伙企业-4)(集体所有制-5)
(全民所有制企业-6)(外商企业-7)
scale_range
=
db
.
Column
(
db
.
Integer
,
index
=
True
,
doc
=
'企业规模id,1:20人以下,2:20-99人,3:100-499人,4:500-999人,5: 1000-4999人,6:5000-9999人,7:10000人'
,
comment
=
'企业规模id,1:20人以下,2:20-99人,3:100-499人,4:500-999人,5: 1000-4999人,6:5000-9999人,7:10000人'
)
company_industry
=
db
.
Column
(
db
.
String
(
100
),
doc
=
'所属行业'
,
comment
=
'所属行业'
)
# 所属行业
web_site
=
db
.
Column
(
db
.
String
(
255
),
doc
=
'企业网址'
,
comment
=
'企业网址'
)
# 企业网址
...
...
@@ -89,7 +89,6 @@ class Enterprise(db.Model):
c_type
=
db
.
Column
(
db
.
Integer
,
index
=
True
,
doc
=
'行业类id'
,
comment
=
'行业类id'
)
# 行业类id
f_name
=
db
.
Column
(
db
.
String
(
255
),
doc
=
'父行业类名'
,
comment
=
'父行业类名'
)
# 父行业类名
f_type
=
db
.
Column
(
db
.
Integer
,
index
=
True
,
doc
=
'父行业类id'
,
comment
=
'父行业类id'
)
# 父行业类id
# __table_args__ = (Index('view_index(zone,status)', 'resource_zone', 'resource_status'), {'comment': '压测资源表'}) # 添加索引和表注释
__table_args__
=
({
'comment'
:
'全国企业表'
})
# 添加表注释
...
...
@@ -967,7 +966,15 @@ class Property(db.Model):
statu
=
db
.
Column
(
db
.
Integer
,
doc
=
'状态:1启动,2禁用'
,
comment
=
'状态:1启动,2禁用'
)
# 状态 1启动,2禁用
# 查找历史表
class
SearchList
(
BaseModel
,
db
.
Model
):
__tablename__
=
"search_list"
__table_args__
=
({
'comment'
:
'360企业画像--查找历史数据表'
})
# 添加表注释
id
=
db
.
Column
(
db
.
Integer
,
primary_key
=
True
,
autoincrement
=
True
,
doc
=
'主键id'
,
comment
=
'主键id'
)
history
=
db
.
Column
(
db
.
String
(
128
),
doc
=
'用户搜索历史'
,
comment
=
'用户搜索历史'
)
# 用户搜索历史
user_id
=
db
.
Column
(
db
.
Integer
,
db
.
ForeignKey
(
"user.id"
),
doc
=
'用户id'
,
comment
=
'用户id'
)
section
=
db
.
relationship
(
'User'
,
backref
=
db
.
backref
(
'searchlist'
))
# 用户-搜索
...
...
@@ -1100,14 +1107,7 @@ class Property(db.Model):
#
#
# # 查找历史表
# class SearchList(BaseModel, db.Model):
# __tablename__ = "search_list"
#
# id = db.Column(db.Integer, primary_key=True, autoincrement=True)
# history = db.Column(db.String(128)) # 用户搜索历史
# user_id = db.Column(db.Integer, db.ForeignKey("user.id"))
# section = db.relationship('User', backref=db.backref('searchlist')) # 用户-搜索
#
#
#
...
...
apps/utils/json/city.json
View file @
82dc05cc
This source diff could not be displayed because it is too large. You can
view the blob
instead.
apps/view_360company/view.py
View file @
82dc05cc
This diff is collapsed.
Click to expand it.
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