Commit 6bec1fd3 by dong

fix20230412

parent a5b9f6bc
......@@ -38,30 +38,30 @@ def get_jjzb():
return jsonify(code=RET.DBERR, msg="查询出错!")
@api_bigdata.route("/GetJjzb", methods=["GET"]) # 项目跟踪
def get_jjzb():
try:
obj_li = City.query.all()
data = [{
"id": obj.id,
"area": obj.area,
"size": obj.size,
"year": obj.year,
"people": obj.people,
"GDP": obj.GDP,
"addscale": obj.addscale,
"investment": obj.investment,
"retail": obj.retail,
"in_out": obj.in_out,
"public": obj.public,
"people_out": obj.people_out,
"people_per": obj.people_per,
"public_in": obj.public_in,
"info": obj.info,
"question": obj.question,
"flag": obj.flag
} for obj in obj_li]
return jsonify(code=RET.OK, data=data, msg="查询成功!")
except Exception as e:
current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="查询出错!")
\ No newline at end of file
# @api_bigdata.route("/GetJjzb", methods=["GET"]) # 项目跟踪
# def get_jjzb():
# try:
# obj_li = City.query.all()
# data = [{
# "id": obj.id,
# "area": obj.area,
# "size": obj.size,
# "year": obj.year,
# "people": obj.people,
# "GDP": obj.GDP,
# "addscale": obj.addscale,
# "investment": obj.investment,
# "retail": obj.retail,
# "in_out": obj.in_out,
# "public": obj.public,
# "people_out": obj.people_out,
# "people_per": obj.people_per,
# "public_in": obj.public_in,
# "info": obj.info,
# "question": obj.question,
# "flag": obj.flag
# } for obj in obj_li]
# return jsonify(code=RET.OK, data=data, msg="查询成功!")
# except Exception as e:
# current_app.logger.error(e)
# return jsonify(code=RET.DBERR, msg="查询出错!")
\ No newline at end of file
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