|
|
|
@ -14,7 +14,8 @@ import java.util.*;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class XT_GenerateMenu {
|
|
|
|
|
|
|
|
|
|
//用途:根据Excel为湘潭项目生成菜单
|
|
|
|
|
//办法:用Navicat Prenium的导入功能,将Excel导入到Mysql中,然后针对表进行读取
|
|
|
|
|
public static void main(String[] args) throws IOException {
|
|
|
|
|
//1、配置数据库
|
|
|
|
|
PropKit.use("application.properties");
|
|
|
|
@ -43,8 +44,7 @@ public class XT_GenerateMenu {
|
|
|
|
|
}
|
|
|
|
|
String result = "";
|
|
|
|
|
for (String level_1_name : _set) {
|
|
|
|
|
String rt1 = "";
|
|
|
|
|
String rt2 = "";
|
|
|
|
|
String rt1, rt2 = "";
|
|
|
|
|
for (Record record : list) {
|
|
|
|
|
String l1 = record.getStr("level_1_name");
|
|
|
|
|
String l2 = record.getStr("level_2_name");
|
|
|
|
|