Commit db6ce03b by dong

fix20230721

parent b762a251
...@@ -1756,6 +1756,8 @@ def batch_export_project1(): ...@@ -1756,6 +1756,8 @@ def batch_export_project1():
select_id_list = req_dic["select_id_list"] select_id_list = req_dic["select_id_list"]
# path = './apps/statics/project_file/' # path = './apps/statics/project_file/'
# pro_path = 'http://39.100.39.50:5050/statics/project_file/' # 项目路径 # pro_path = 'http://39.100.39.50:5050/statics/project_file/' # 项目路径
path = '/root/code/dist_jincheng/aaa_statics/project_file/'
pro_path = SERVER_NAME + '/aaa_statics/project_file/' # 项目路径 pro_path = SERVER_NAME + '/aaa_statics/project_file/' # 项目路径
if not select_id_list: if not select_id_list:
return jsonify(code=RET.PARAMERR, msg="参数不能为空!") return jsonify(code=RET.PARAMERR, msg="参数不能为空!")
...@@ -1830,7 +1832,7 @@ def batch_export_project1(): ...@@ -1830,7 +1832,7 @@ def batch_export_project1():
sheet.write(i + 1, j, target_data_list[i][j]) sheet.write(i + 1, j, target_data_list[i][j])
time_stamp = '{0:%Y%m%d%H%M%S}'.format(datetime.now()) time_stamp = '{0:%Y%m%d%H%M%S}'.format(datetime.now())
file_name = "线索库数据{}.xlsx".format(time_stamp) file_name = "线索库数据{}.xlsx".format(time_stamp)
excel.save(pro_path + file_name) excel.save(path + file_name)
# 记录项目动态 # 记录项目动态
for project_id in select_id_list: for project_id in select_id_list:
...@@ -1858,6 +1860,8 @@ def batch_export_project2(): ...@@ -1858,6 +1860,8 @@ def batch_export_project2():
# path = './apps/statics/project_file/' # path = './apps/statics/project_file/'
# pro_path = 'D:/中研项目代码/flask_jincheng/apps/statics/project_file/' # pro_path = 'D:/中研项目代码/flask_jincheng/apps/statics/project_file/'
# pro_path = 'http://39.100.39.50:5050/statics/project_file/' # 项目路径 # pro_path = 'http://39.100.39.50:5050/statics/project_file/' # 项目路径
path = '/root/code/dist_jincheng/aaa_statics/project_file/'
pro_path = SERVER_NAME + '/aaa_statics/project_file/' # 项目路径 pro_path = SERVER_NAME + '/aaa_statics/project_file/' # 项目路径
if not select_id_list: if not select_id_list:
...@@ -1949,7 +1953,7 @@ def batch_export_project2(): ...@@ -1949,7 +1953,7 @@ def batch_export_project2():
sheet.write(i + 1, j, target_data_list[i][j]) sheet.write(i + 1, j, target_data_list[i][j])
time_stamp = '{0:%Y%m%d%H%M%S}'.format(datetime.now()) time_stamp = '{0:%Y%m%d%H%M%S}'.format(datetime.now())
file_name = "对接库数据{}.xlsx".format(time_stamp) file_name = "对接库数据{}.xlsx".format(time_stamp)
excel.save(pro_path + file_name) excel.save(path + file_name)
# 记录项目动态 # 记录项目动态
for project_id in select_id_list: for project_id in select_id_list:
......
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