Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
loit-build-common
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
loit-Infrastructure
loit-build-common
Commits
5cbbc28d
提交
5cbbc28d
authored
5月 22, 2023
作者:
chenshiying
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[新增] 廊坊生成大小类管理问题sql
上级
6c56f13b
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
23 行增加
和
9 行删除
+23
-9
GeneratorCommandManualScript.java
...om/loit/common/langfang/GeneratorCommandManualScript.java
+23
-9
没有找到文件。
loit-build-component/loit-build-deploy-env/src/main/java/com/loit/common/langfang/GeneratorCommandManualScript.java
浏览文件 @
5cbbc28d
...
...
@@ -29,8 +29,9 @@ public class GeneratorCommandManualScript {
//TODO 1:事件,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"
;
...
...
@@ -40,6 +41,23 @@ 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"
);
String
filePathStr
=
"F:\\9Git140\\loit-build-common\\loit-build-component\\loit-build-deploy-env\\src\\main\\resources\\井盖大小类扩展20230516.xlsx"
;
File
pdfFile
=
new
File
(
filePathStr
);
...
...
@@ -129,7 +147,7 @@ public class GeneratorCommandManualScript {
String
configFilePath
=
root_path
+
"\\2、smallTypeScript.sql"
;
CommandManualDTO
commandManual
=
smallTypeList
.
get
(
0
);
String
sql
=
"select * from base_base_casetype where parent_id = '"
+
commandManual
.
getBigType
Code
()
+
"';\n"
;
String
sql
=
"select * from base_base_casetype where parent_id = '"
+
commandManual
.
getBigType
Id
()
+
"';\n"
;
FileUtils
.
append
(
configFilePath
,
sql
);
for
(
CommandManualDTO
commandManualDTO
:
smallTypeList
)
{
...
...
@@ -255,7 +273,6 @@ public class GeneratorCommandManualScript {
}
/**
* 对excel中的数据做转换:
* 1、去除空数据
...
...
@@ -321,8 +338,8 @@ public class GeneratorCommandManualScript {
commandManual
.
setSmallTypeCodeInt
(
Integer
.
valueOf
(
commandManual
.
getSmallTypeCode
()));
//TODO 查询从数据库查询
commandManual
.
setBigTypeId
(
BIG_TYPE_ID
);
String
bigTypeId
=
bigTypeMap
.
get
(
commandManual
.
getBigTypeName
());
commandManual
.
setBigTypeId
(
bigTypeId
);
resultList
.
add
(
commandManual
);
}
...
...
@@ -331,7 +348,4 @@ public class GeneratorCommandManualScript {
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论