|
@@ -113,28 +113,13 @@ public class DataController {
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping("/repoBJ")
|
|
@RequestMapping("/repoBJ")
|
|
- public String datarepoBJ(String[] repo_name, HttpServletRequest request, HttpServletResponse response) throws SQLException {
|
|
|
|
- DataRepoTable dataRepoTable = new DataRepoTable();
|
|
|
|
- List<DataRepoTable> tableList = new ArrayList<DataRepoTable>();
|
|
|
|
- if (repo_name != null) {
|
|
|
|
- for (int i = 0; i < repo_name.length; i++) {
|
|
|
|
- String[] value1 = new String[repo_name.length];
|
|
|
|
- String[] value2 = new String[repo_name.length];
|
|
|
|
- String[] value3 = new String[repo_name.length];
|
|
|
|
- String[] value4 = new String[repo_name.length];
|
|
|
|
- String temp = repo_name[i];
|
|
|
|
- String[] itempsplit = temp.split("-");
|
|
|
|
- value1[i] = itempsplit[0];
|
|
|
|
- value2[i] = itempsplit[1];
|
|
|
|
- value3[i] = itempsplit[2];
|
|
|
|
- value4[i] = itempsplit[3];
|
|
|
|
- dataRepoTable = dataService.testSelectBJ(value1[i], value2[i], value3[i], value4[i]);
|
|
|
|
- tableList.add(dataRepoTable);
|
|
|
|
- System.out.println("表:" + value1[i] + "加载完成:100%");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- request.setAttribute("DataRepoTableList", tableList);
|
|
|
|
- return "dataList";
|
|
|
|
|
|
+ public String datarepoBJ(String[] repo_name) throws SQLException {
|
|
|
|
+ String[] value2 = new String[repo_name.length];
|
|
|
|
+ String temp = repo_name[0];
|
|
|
|
+ String[] itempsplit = temp.split("-");
|
|
|
|
+ value2[0] = itempsplit[1];
|
|
|
|
+ dataService.testSelectBJ(value2[0]);
|
|
|
|
+ return "redirect:/data/list";
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|