提交 5cbbc28d authored 作者: chenshiying's avatar chenshiying

[新增] 廊坊生成大小类管理问题sql

上级 6c56f13b
...@@ -29,8 +29,9 @@ public class GeneratorCommandManualScript { ...@@ -29,8 +29,9 @@ public class GeneratorCommandManualScript {
//TODO 1:事件,2:部件 //TODO 1:事件,2:部件
public static final String CASE_TYPE = "2"; public static final String CASE_TYPE = "2";
//TODO 大类id 需要手动设置下,后面可以改成查询数据库
public static final String BIG_TYPE_ID = "344";
public static Map<String, String> bigTypeMap = new LinkedHashMap<>();
protected static String root_path = "F:\\9Git140\\loit-build-common\\loit-build-component\\loit-build-deploy-env\\src\\main\\resources\\langfang"; protected static String root_path = "F:\\9Git140\\loit-build-common\\loit-build-component\\loit-build-deploy-env\\src\\main\\resources\\langfang";
...@@ -40,6 +41,23 @@ public class GeneratorCommandManualScript { ...@@ -40,6 +41,23 @@ public class GeneratorCommandManualScript {
try { try {
bigTypeMap.put("市容环境", "1");
bigTypeMap.put("宣传广告", "2");
bigTypeMap.put("施工管理", "3");
bigTypeMap.put("街面秩序", "4");
bigTypeMap.put("突发事件", "5");
bigTypeMap.put("共用设施", "6");
bigTypeMap.put("交通设施", "7");
bigTypeMap.put("市容环境设施", "8");
bigTypeMap.put("园林绿化设施", "9");
bigTypeMap.put("其他部件", "10");
bigTypeMap.put("城市管理", "314");
bigTypeMap.put("其他", "316");
bigTypeMap.put("社区管理", "323");
bigTypeMap.put("能源管理", "324");
bigTypeMap.put("其他事件", "331");
bigTypeMap.put("公用设施", "344");
String filePathStr = "F:\\9Git140\\loit-build-common\\loit-build-component\\loit-build-deploy-env\\src\\main\\resources\\井盖大小类扩展20230516.xlsx"; String filePathStr = "F:\\9Git140\\loit-build-common\\loit-build-component\\loit-build-deploy-env\\src\\main\\resources\\井盖大小类扩展20230516.xlsx";
File pdfFile = new File(filePathStr); File pdfFile = new File(filePathStr);
...@@ -129,7 +147,7 @@ public class GeneratorCommandManualScript { ...@@ -129,7 +147,7 @@ public class GeneratorCommandManualScript {
String configFilePath = root_path + "\\2、smallTypeScript.sql"; String configFilePath = root_path + "\\2、smallTypeScript.sql";
CommandManualDTO commandManual = smallTypeList.get(0); CommandManualDTO commandManual = smallTypeList.get(0);
String sql = "select * from base_base_casetype where parent_id = '" + commandManual.getBigTypeCode() + "';\n"; String sql = "select * from base_base_casetype where parent_id = '" + commandManual.getBigTypeId() + "';\n";
FileUtils.append(configFilePath, sql); FileUtils.append(configFilePath, sql);
for (CommandManualDTO commandManualDTO : smallTypeList) { for (CommandManualDTO commandManualDTO : smallTypeList) {
...@@ -255,7 +273,6 @@ public class GeneratorCommandManualScript { ...@@ -255,7 +273,6 @@ public class GeneratorCommandManualScript {
} }
/** /**
* 对excel中的数据做转换: * 对excel中的数据做转换:
* 1、去除空数据 * 1、去除空数据
...@@ -321,8 +338,8 @@ public class GeneratorCommandManualScript { ...@@ -321,8 +338,8 @@ public class GeneratorCommandManualScript {
commandManual.setSmallTypeCodeInt(Integer.valueOf(commandManual.getSmallTypeCode())); commandManual.setSmallTypeCodeInt(Integer.valueOf(commandManual.getSmallTypeCode()));
//TODO 查询从数据库查询 String bigTypeId = bigTypeMap.get(commandManual.getBigTypeName());
commandManual.setBigTypeId(BIG_TYPE_ID); commandManual.setBigTypeId(bigTypeId);
resultList.add(commandManual); resultList.add(commandManual);
} }
...@@ -331,7 +348,4 @@ public class GeneratorCommandManualScript { ...@@ -331,7 +348,4 @@ public class GeneratorCommandManualScript {
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论