|
|
|
@ -36,6 +36,10 @@ import java.util.*;
|
|
|
|
|
|
|
|
|
|
public class CollectController extends Controller {
|
|
|
|
|
CollectModel cm = new CollectModel();
|
|
|
|
|
String basePath = CommonUtil.WebRoot + File.separator + "Excel";
|
|
|
|
|
|
|
|
|
|
public CollectController() throws URISyntaxException {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/********以下为EXCEL模板上传管理功能******************************************************
|
|
|
|
|
/**
|
|
|
|
@ -71,7 +75,6 @@ public class CollectController extends Controller {
|
|
|
|
|
renderJson(map);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
String basePath = CommonUtil.getClassPath() + "/Excel";
|
|
|
|
|
String upload_excel_filename = UUID.randomUUID().toString().toLowerCase() + ".xlsx";
|
|
|
|
|
String templateXls = basePath + "/" + upload_excel_filename;
|
|
|
|
|
//判断目录是不是存在
|
|
|
|
@ -266,7 +269,7 @@ public class CollectController extends Controller {
|
|
|
|
|
Record jobRecord = cm.getJob(job_id);
|
|
|
|
|
|
|
|
|
|
String upload_excel_filename = jobRecord.getStr("upload_excel_filename");//原始模板文件
|
|
|
|
|
String basePath = CommonUtil.getClassPath() + "/Excel";
|
|
|
|
|
|
|
|
|
|
String upload_excel_filename_finish = UUID.randomUUID().toString().toLowerCase() + ".xlsx";//系统中可以提供下载的模板文件
|
|
|
|
|
FileUtil.copy(basePath + File.separator + upload_excel_filename, basePath + File.separator + upload_excel_filename_finish, true);
|
|
|
|
|
|
|
|
|
@ -413,7 +416,6 @@ public class CollectController extends Controller {
|
|
|
|
|
renderJson(map);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
String basePath = CommonUtil.getClassPath() + File.separator + "Excel";
|
|
|
|
|
String upload_excel_filename_user = UUID.randomUUID().toString().toLowerCase() + ".xlsx";
|
|
|
|
|
//判断目录是不是存在
|
|
|
|
|
File file = new File(basePath);
|
|
|
|
@ -588,8 +590,8 @@ public class CollectController extends Controller {
|
|
|
|
|
*/
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
public void getBureauList(int org_type_id, String org_name,int page, int limit) {
|
|
|
|
|
Page<Record> list = cm.getBureauList(org_type_id,org_name, page, limit);
|
|
|
|
|
public void getBureauList(int org_type_id, String org_name, int page, int limit) {
|
|
|
|
|
Page<Record> list = cm.getBureauList(org_type_id, org_name, page, limit);
|
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -712,7 +714,6 @@ public class CollectController extends Controller {
|
|
|
|
|
renderJson(kv);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
String basePath = CommonUtil.getClassPath() + File.separator + "Excel";
|
|
|
|
|
String excelPath = basePath + File.separator + upload_excel_filename_user;
|
|
|
|
|
//2、提供EXCEL
|
|
|
|
|
if (type_id == 1) {
|
|
|
|
|