Commit d2431157 by dong

fix20230308

parent 9d24d6f1
...@@ -1221,7 +1221,7 @@ def newList1(): ...@@ -1221,7 +1221,7 @@ def newList1():
remind = "" remind = ""
enterprise = enterprise enterprise = enterprise
size = enterprise.count() size = enterprise.count()
enters = enterprise.order_by(enterprise.hots.desc()).paginate(page, perpage).items enters = enterprise.order_by(Enterprise.hots.desc()).paginate(page, perpage).items
enter = [{"id": i.id, enter = [{"id": i.id,
"name": i.company_name, "name": i.company_name,
"hots": i.hots, "hots": i.hots,
...@@ -1237,4 +1237,4 @@ def newList1(): ...@@ -1237,4 +1237,4 @@ def newList1():
return jsonify(code=RET.OK, msg="查找成功", data=data) return jsonify(code=RET.OK, msg="查找成功", data=data)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="数据库错误") 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