Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
40420db8
Commit
40420db8
authored
Jul 31, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)修改应急模板报错问题
parent
657fb729
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
DPSubController.java
...boot/module/statistcs/biz/controller/DPSubController.java
+1
-3
DPSubServiceImpl.java
...t/module/statistcs/biz/service/impl/DPSubServiceImpl.java
+3
-1
emergency.json
...ule-statistics-biz/src/main/resources/json/emergency.json
+5
-6
problem.json
...odule-statistics-biz/src/main/resources/json/problem.json
+0
-0
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/DPSubController.java
View file @
40420db8
...
...
@@ -38,15 +38,13 @@ public class DPSubController {
public
ResponseModel
<
JSONObject
>
commonQuery
(
@PathVariable
String
template
,
@RequestBody
Map
<
String
,
Object
>
param
)
{
if
(
template
.
equals
(
"company"
))
{
Assert
.
notNull
(
param
.
get
(
"useUnitCode"
),
"企业统一信用代码不能为空"
);
}
else
if
(
template
.
equals
(
"emergency"
))
{
Assert
.
notNull
(
param
.
get
(
"id"
),
"id不能为空"
);
}
else
if
(
template
.
equals
(
"equip"
))
{
param
.
put
(
"record"
,
param
.
get
(
"SEQUENCE_NBR"
));
param
.
put
(
"equList"
,
param
.
get
(
"EQU_LIST_CODE"
));
Assert
.
notNull
(
param
.
get
(
"record"
),
"设备ID不能为空"
);
Assert
.
notNull
(
param
.
get
(
"equList"
),
"设备种类不能为空"
);
template
=
template
+
"_"
+
param
.
get
(
"equList"
);
}
else
if
(
template
.
equals
(
"
issue
"
))
{
}
else
if
(
template
.
equals
(
"
emergency"
)
||
template
.
equals
(
"problem
"
))
{
Assert
.
notNull
(
param
.
get
(
"sequenceNbr"
),
"sequenceNbr不能为空"
);
}
else
{
throw
new
RuntimeException
(
"暂无模板"
);
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/DPSubServiceImpl.java
View file @
40420db8
...
...
@@ -65,7 +65,9 @@ public class DPSubServiceImpl {
//1、替换json中所有的变量
if
(!
ValidationUtil
.
isEmpty
(
param
))
{
for
(
Map
.
Entry
item
:
param
.
entrySet
())
{
templateJson
=
templateJson
.
replaceAll
(
"\\{"
+
item
.
getKey
()
+
"\\}"
,
item
.
getValue
().
toString
());
if
(!
ValidationUtil
.
isEmpty
(
item
.
getValue
())){
templateJson
=
templateJson
.
replaceAll
(
"\\{"
+
item
.
getKey
()
+
"\\}"
,
item
.
getValue
().
toString
());
}
}
}
//2、解析结构
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/emergency.json
View file @
40420db8
...
...
@@ -7,7 +7,7 @@
"dataConfig"
:
{
"api"
:
{
"httpMethod"
:
"GET"
,
"apiPath"
:
"/elevator/alert-called/detail/{
id
}"
"apiPath"
:
"/elevator/alert-called/detail/{
sequenceNbr
}"
}
}
},
...
...
@@ -18,7 +18,7 @@
"dataConfig"
:
{
"api"
:
{
"httpMethod"
:
"GET"
,
"apiPath"
:
"/elevator/alert-called/basicDetail/{
id
}"
"apiPath"
:
"/elevator/alert-called/basicDetail/{
sequenceNbr
}"
}
}
},
...
...
@@ -29,7 +29,7 @@
"dataConfig"
:
{
"api"
:
{
"httpMethod"
:
"GET"
,
"apiPath"
:
"/elevator/alert-called/dispatchRecord/{
id
}"
"apiPath"
:
"/elevator/alert-called/dispatchRecord/{
sequenceNbr
}"
}
}
},
...
...
@@ -40,7 +40,7 @@
"dataConfig"
:
{
"api"
:
{
"httpMethod"
:
"GET"
,
"apiPath"
:
"/elevator/alert-called/followRecords/{
id
}"
"apiPath"
:
"/elevator/alert-called/followRecords/{
sequenceNbr
}"
}
}
},
...
...
@@ -48,11 +48,10 @@
"key"
:
"callRecords"
,
"displayName"
:
"通话记录"
,
"renderType"
:
"table"
,
"formSeq"
:
""
,
"dataConfig"
:
{
"api"
:
{
"httpMethod"
:
"GET"
,
"apiPath"
:
"/elevator/alert-called/callRecords/{
id
}"
"apiPath"
:
"/elevator/alert-called/callRecords/{
sequenceNbr
}"
}
},
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/
issue
.json
→
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/
problem
.json
View file @
40420db8
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment