Commit d0b6d2dd by dong

fix

parent ece47945
...@@ -1845,6 +1845,9 @@ def get_data(): ...@@ -1845,6 +1845,9 @@ def get_data():
flag = req_dic['flag'] flag = req_dic['flag']
data_time = req_dic['data_time'] data_time = req_dic['data_time']
if data_time: if data_time:
return jsonify(code=RET.OK, msg="")
if data_time:
current_year = data_time.split('年')[0] current_year = data_time.split('年')[0]
else: else:
current_year = str(datetime.now().year) current_year = str(datetime.now().year)
......
...@@ -270,7 +270,7 @@ class Enterprise1(db.Model): ...@@ -270,7 +270,7 @@ class Enterprise1(db.Model):
__table_args__ = ({'comment': '全国企业表'}) # 添加表注释 __table_args__ = ({'comment': '全国企业表'}) # 添加表注释
# 晋城企业表 # 本地企业表
class Company(db.Model): class Company(db.Model):
__tablename__ = "company" __tablename__ = "company"
id = db.Column(db.Integer, primary_key=True, autoincrement=True, doc='企业主键id', comment='企业主键id') # 企业 id = db.Column(db.Integer, primary_key=True, autoincrement=True, doc='企业主键id', comment='企业主键id') # 企业
...@@ -368,7 +368,7 @@ class Company(db.Model): ...@@ -368,7 +368,7 @@ class Company(db.Model):
__table_args__ = ({'comment': '晋城企业表'}) # 添加表注释 __table_args__ = ({'comment': '晋城企业表'}) # 添加表注释
# 晋城企业行政许可 # 企业行政许可
class CompanyLicence(db.Model): class CompanyLicence(db.Model):
__tablename_ = "company_licence" __tablename_ = "company_licence"
__table_args__ = ({'comment': '企业行政许可数据表'}) # 添加表注释 __table_args__ = ({'comment': '企业行政许可数据表'}) # 添加表注释
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment