Commit 67d3f46b by dong

fix20221223

parent 20d56b71
...@@ -102,7 +102,7 @@ def show_all(): ...@@ -102,7 +102,7 @@ def show_all():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行访问 {} 操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行访问 {} 操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
page = req_dic['page'] page = req_dic['page']
per_page = req_dic['per_page'] per_page = req_dic['per_page']
...@@ -248,7 +248,7 @@ def download_xlsx(): ...@@ -248,7 +248,7 @@ def download_xlsx():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
template_type = req_dic['template_type'] template_type = req_dic['template_type']
if not template_type: if not template_type:
...@@ -394,7 +394,7 @@ def read_template(): ...@@ -394,7 +394,7 @@ def read_template():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
# 载体类型 # 载体类型
carrier_type = request.form['carrier_type'] carrier_type = request.form['carrier_type']
...@@ -705,7 +705,7 @@ def batch_export_build(): ...@@ -705,7 +705,7 @@ def batch_export_build():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
select_id_list = req_dic["select_id_list"] select_id_list = req_dic["select_id_list"]
path = './apps/statics/carrier_file/' path = './apps/statics/carrier_file/'
...@@ -824,7 +824,7 @@ def batch_export_land(): ...@@ -824,7 +824,7 @@ def batch_export_land():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
select_id_list = req_dic["select_id_list"] select_id_list = req_dic["select_id_list"]
path = './apps/statics/carrier_file/' path = './apps/statics/carrier_file/'
...@@ -913,7 +913,7 @@ def batch_export_factory(): ...@@ -913,7 +913,7 @@ def batch_export_factory():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
select_id_list = req_dic["select_id_list"] select_id_list = req_dic["select_id_list"]
path = './apps/statics/carrier_file/' path = './apps/statics/carrier_file/'
...@@ -1050,7 +1050,7 @@ def batch_delete(): ...@@ -1050,7 +1050,7 @@ def batch_delete():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
delete_id_list = req_dic["delete_id_list"] delete_id_list = req_dic["delete_id_list"]
if not delete_id_list: if not delete_id_list:
...@@ -1122,7 +1122,7 @@ def batch_audit(): ...@@ -1122,7 +1122,7 @@ def batch_audit():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
if role_id == 3: # 办事员没有审核功能 if role_id == 3: # 办事员没有审核功能
return jsonify(code=RET.THIRDERR, msg="办事员没有审核功能。") return jsonify(code=RET.THIRDERR, msg="办事员没有审核功能。")
...@@ -1329,7 +1329,7 @@ def carrier_edit_build(): ...@@ -1329,7 +1329,7 @@ def carrier_edit_build():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
if role_id == 3: # 如果是办事员可以编辑自己提报的内容 if role_id == 3: # 如果是办事员可以编辑自己提报的内容
pass pass
...@@ -1451,7 +1451,7 @@ def carrier_edit_land(): ...@@ -1451,7 +1451,7 @@ def carrier_edit_land():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
if role_id == 3: # 如果是办事员可以编辑自己提报的内容 if role_id == 3: # 如果是办事员可以编辑自己提报的内容
pass pass
if role_id == 2: # 市直部门这区县领导可以编辑该部门所有办事员提报的内容 if role_id == 2: # 市直部门这区县领导可以编辑该部门所有办事员提报的内容
...@@ -1524,7 +1524,7 @@ def land_status(): ...@@ -1524,7 +1524,7 @@ def land_status():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
land_id = req_dic['land_id'] land_id = req_dic['land_id']
land_status = req_dic['land_status'] land_status = req_dic['land_status']
try: try:
...@@ -1561,7 +1561,7 @@ def carrier_edit_factory(): ...@@ -1561,7 +1561,7 @@ def carrier_edit_factory():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
if role_id == 3: # 如果是办事员可以编辑自己提报的内容 if role_id == 3: # 如果是办事员可以编辑自己提报的内容
pass pass
if role_id == 2: # 市直部门这区县领导可以编辑该部门所有办事员提报的内容 if role_id == 2: # 市直部门这区县领导可以编辑该部门所有办事员提报的内容
...@@ -1699,7 +1699,7 @@ def search_carrier_build(): ...@@ -1699,7 +1699,7 @@ def search_carrier_build():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
build_name = req_dic['build_name'] build_name = req_dic['build_name']
district_name = req_dic['district_name'] district_name = req_dic['district_name']
...@@ -1909,7 +1909,7 @@ def search_carrier_land(): ...@@ -1909,7 +1909,7 @@ def search_carrier_land():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
district_name = req_dic['district_name'] district_name = req_dic['district_name']
land_name = req_dic['land_name'] land_name = req_dic['land_name']
...@@ -2101,7 +2101,7 @@ def search_carrier_factory(): ...@@ -2101,7 +2101,7 @@ def search_carrier_factory():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
district_name = req_dic['district_name'] district_name = req_dic['district_name']
factory_name = req_dic['factory_name'] factory_name = req_dic['factory_name']
is_standard = req_dic['is_standard'] is_standard = req_dic['is_standard']
...@@ -2336,7 +2336,7 @@ def show_log(): ...@@ -2336,7 +2336,7 @@ def show_log():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
page = req_dic['page'] page = req_dic['page']
per_page = req_dic['per_page'] per_page = req_dic['per_page']
...@@ -2427,7 +2427,7 @@ def upload_build_picture(): ...@@ -2427,7 +2427,7 @@ def upload_build_picture():
section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name) section, user_name, operation_mobile, user_id, role_id, belong_unit = verify_identity(token, action_name)
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name)) return jsonify(code=RET.SESSIONERR, msg="进行{}操作时用户信息校验失败,请重新登陆后尝试!".format(action_name))
carrier_id = request.form['carrier_id'] carrier_id = request.form['carrier_id']
img_flag = request.form['img_flag'] img_flag = request.form['img_flag']
......
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