提交 c4ecf3d6 authored 作者: chenshiying's avatar chenshiying

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

上级 5cbbc28d
......@@ -31,7 +31,9 @@ public class GeneratorCommandManualScript {
public static final String CASE_TYPE = "2";
public static Map<String, String> bigTypeMap = new LinkedHashMap<>();
public static Map<String, String> bigTypeIdMap = new LinkedHashMap<>();
public static Map<String, String> bigTypeCodeMap = new LinkedHashMap<>();
protected static String root_path = "F:\\9Git140\\loit-build-common\\loit-build-component\\loit-build-deploy-env\\src\\main\\resources\\langfang";
......@@ -41,22 +43,41 @@ public class GeneratorCommandManualScript {
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");
bigTypeIdMap.put("市容环境", "1");
bigTypeIdMap.put("宣传广告", "2");
bigTypeIdMap.put("施工管理", "3");
bigTypeIdMap.put("街面秩序", "4");
bigTypeIdMap.put("突发事件", "5");
bigTypeIdMap.put("共用设施", "6");
bigTypeIdMap.put("交通设施", "7");
bigTypeIdMap.put("市容环境设施", "8");
bigTypeIdMap.put("园林绿化设施", "9");
bigTypeIdMap.put("其他部件", "10");
bigTypeIdMap.put("城市管理", "314");
bigTypeIdMap.put("其他", "316");
bigTypeIdMap.put("社区管理", "323");
bigTypeIdMap.put("能源管理", "324");
bigTypeIdMap.put("其他事件", "331");
bigTypeIdMap.put("公用设施", "344");
bigTypeCodeMap.put("市容环境", "1");
bigTypeCodeMap.put("宣传广告", "2");
bigTypeCodeMap.put("施工管理", "3");
bigTypeCodeMap.put("街面秩序", "4");
bigTypeCodeMap.put("突发事件", "5");
bigTypeCodeMap.put("共用设施", "6");
bigTypeCodeMap.put("交通设施", "7");
bigTypeCodeMap.put("市容环境设施", "8");
bigTypeCodeMap.put("园林绿化设施", "9");
bigTypeCodeMap.put("其他部件", "10");
bigTypeCodeMap.put("城市管理", "11");
bigTypeCodeMap.put("其他", "12");
bigTypeCodeMap.put("社区管理", "13");
bigTypeCodeMap.put("能源管理", "14");
bigTypeCodeMap.put("其他事件", "15");
bigTypeCodeMap.put("公用设施", "16");
String filePathStr = "F:\\9Git140\\loit-build-common\\loit-build-component\\loit-build-deploy-env\\src\\main\\resources\\井盖大小类扩展20230516.xlsx";
......@@ -179,6 +200,12 @@ public class GeneratorCommandManualScript {
return;
}
String configFilePath = root_path + "\\3、manageProblemScript.sql";
String sql = "select * from digital_command_manual where small_type = '老人呼救';\n";
FileUtils.append(configFilePath, sql);
for (CommandManualDTO commandManualDTO : commandManualList) {
......@@ -205,7 +232,7 @@ public class GeneratorCommandManualScript {
model.put("climit", climitUnit.getLimit());
model.put("cunit", climitUnit.getUnit());
String configFilePath = root_path + "\\3、manageProblemScript.sql";
String jobConfig = FreeMarkerUtils.process("langfang" + "\\manageProblemScript.ftl", model);
FileUtils.append(configFilePath, jobConfig);
}
......@@ -295,19 +322,14 @@ public class GeneratorCommandManualScript {
}
if (StringUtils.isNotEmpty(commandManual.getBigTypeCode())) {
bigTypeCode = commandManual.getBigTypeCode();
} else {
commandManual.setBigTypeCode(bigTypeCode);
}
if (StringUtils.isNotEmpty(commandManual.getBigTypeName())) {
bigTypeName = commandManual.getBigTypeName();
} else {
commandManual.setBigTypeName(bigTypeName);
}
commandManual.setBigTypeCode(bigTypeCodeMap.get(commandManual.getBigTypeName()));
if (StringUtils.isNotEmpty(commandManual.getSmallTypeCode())) {
smallTypeCode = commandManual.getSmallTypeCode();
......@@ -338,12 +360,15 @@ public class GeneratorCommandManualScript {
commandManual.setSmallTypeCodeInt(Integer.valueOf(commandManual.getSmallTypeCode()));
String bigTypeId = bigTypeMap.get(commandManual.getBigTypeName());
String bigTypeId = bigTypeIdMap.get(commandManual.getBigTypeName());
commandManual.setBigTypeId(bigTypeId);
resultList.add(commandManual);
}
return resultList;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论