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
c4ecf3d6
提交
c4ecf3d6
authored
5月 22, 2023
作者:
chenshiying
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[新增] 廊坊生成大小类管理问题sql
上级
5cbbc28d
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
52 行增加
和
27 行删除
+52
-27
GeneratorCommandManualScript.java
...om/loit/common/langfang/GeneratorCommandManualScript.java
+52
-27
没有找到文件。
loit-build-component/loit-build-deploy-env/src/main/java/com/loit/common/langfang/GeneratorCommandManualScript.java
浏览文件 @
c4ecf3d6
...
...
@@ -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
=
bigType
Id
Map
.
get
(
commandManual
.
getBigTypeName
());
commandManual
.
setBigTypeId
(
bigTypeId
);
resultList
.
add
(
commandManual
);
}
return
resultList
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论