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
10b2fc91
提交
10b2fc91
authored
5月 22, 2023
作者:
chenshiying
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[新增] 廊坊生成大小类管理问题sql
上级
c4ecf3d6
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
20 行增加
和
18 行删除
+20
-18
GeneratorCommandManualScript.java
...om/loit/common/langfang/GeneratorCommandManualScript.java
+20
-18
养老.xlsx
...omponent/loit-build-deploy-env/src/main/resources/养老.xlsx
+0
-0
新加大小类管理问题.xlsx
...t/loit-build-deploy-env/src/main/resources/新加大小类管理问题.xlsx
+0
-0
没有找到文件。
loit-build-component/loit-build-deploy-env/src/main/java/com/loit/common/langfang/GeneratorCommandManualScript.java
浏览文件 @
10b2fc91
...
...
@@ -28,7 +28,7 @@ public class GeneratorCommandManualScript {
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
GeneratorCommandManualScript
.
class
);
//TODO 1:事件,2:部件
public
static
final
String
CASE_TYPE
=
"
2
"
;
public
static
final
String
CASE_TYPE
=
"
1
"
;
public
static
Map
<
String
,
String
>
bigTypeIdMap
=
new
LinkedHashMap
<>();
...
...
@@ -61,7 +61,6 @@ public class GeneratorCommandManualScript {
bigTypeIdMap
.
put
(
"公用设施"
,
"344"
);
bigTypeCodeMap
.
put
(
"市容环境"
,
"1"
);
bigTypeCodeMap
.
put
(
"宣传广告"
,
"2"
);
bigTypeCodeMap
.
put
(
"施工管理"
,
"3"
);
...
...
@@ -79,7 +78,7 @@ public class GeneratorCommandManualScript {
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"
;
String
filePathStr
=
"F:\\9Git140\\loit-build-common\\loit-build-component\\loit-build-deploy-env\\src\\main\\resources\\
新加大小类管理问题
.xlsx"
;
File
pdfFile
=
new
File
(
filePathStr
);
FileInputStream
fileInputStream
=
new
FileInputStream
(
pdfFile
);
...
...
@@ -124,13 +123,23 @@ public class GeneratorCommandManualScript {
}
bitTypeList
.
sort
(
Comparator
.
comparing
(
CommandManualDTO:
:
getBigTypeCodeInt
));
String
configFilePath
=
root_path
+
"\\1、bigTypeScript.sql"
;
String
sql1
=
"select * from base_base_casetype order by parent_id asc;\n"
;
FileUtils
.
append
(
configFilePath
,
sql1
);
for
(
CommandManualDTO
commandManualDTO
:
bitTypeList
)
{
String
sql
=
"select * from base_base_casetype where parent_id = '"
+
commandManualDTO
.
getBigTypeId
()
+
"';\n"
;
String
sql2
=
"select * from base_base_casetype where obj_name = '"
+
commandManualDTO
.
getBigTypeName
()
+
"';\n"
;
String
sql1
=
"select * from base_base_casetype order by parent_id asc;\n"
;
String
sql2
=
"select * from base_base_casetype where obj_name = '"
+
commandManualDTO
.
getBigTypeName
()
+
"';\n"
;
FileUtils
.
append
(
configFilePath
,
sql2
);
FileUtils
.
append
(
configFilePath
,
sql
);
}
for
(
CommandManualDTO
commandManualDTO
:
bitTypeList
)
{
Map
model
=
new
HashMap
();
model
.
put
(
"bigTypeCode"
,
commandManualDTO
.
getBigTypeCode
());
...
...
@@ -138,10 +147,8 @@ public class GeneratorCommandManualScript {
model
.
put
(
"caseType"
,
CASE_TYPE
);
String
configFilePath
=
root_path
+
"\\1、bigTypeScript.sql"
;
String
jobConfig
=
FreeMarkerUtils
.
process
(
"langfang"
+
"\\bigTypeScript.ftl"
,
model
);
FileUtils
.
append
(
configFilePath
,
sql1
);
FileUtils
.
append
(
configFilePath
,
sql2
);
FileUtils
.
append
(
configFilePath
,
jobConfig
);
}
}
...
...
@@ -167,9 +174,11 @@ 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
.
getBigTypeId
()
+
"';\n"
;
FileUtils
.
append
(
configFilePath
,
sql
);
for
(
CommandManualDTO
commandManualDTO
:
smallTypeList
)
{
String
sql
=
"select * from digital_command_manual where big_type_id = '"
+
commandManualDTO
.
getBigTypeId
()
+
"' and small_type = '"
+
commandManualDTO
.
getSmallTypeName
()
+
"';\n"
;
FileUtils
.
append
(
configFilePath
,
sql
);
}
for
(
CommandManualDTO
commandManualDTO
:
smallTypeList
)
{
Map
model
=
new
HashMap
();
...
...
@@ -202,10 +211,6 @@ public class GeneratorCommandManualScript {
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
)
{
...
...
@@ -366,9 +371,6 @@ public class GeneratorCommandManualScript {
}
return
resultList
;
}
...
...
loit-build-component/loit-build-deploy-env/src/main/resources/养老.xlsx
0 → 100644
浏览文件 @
10b2fc91
File added
loit-build-component/loit-build-deploy-env/src/main/resources/新加大小类管理问题.xlsx
0 → 100644
浏览文件 @
10b2fc91
File added
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论