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
62a5eb61
Commit
62a5eb61
authored
Jul 31, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)修改报错
parent
3db4d641
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
DPSubController.java
...boot/module/statistcs/biz/controller/DPSubController.java
+7
-1
DPSubServiceImpl.java
...t/module/statistcs/biz/service/impl/DPSubServiceImpl.java
+1
-1
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 @
62a5eb61
...
...
@@ -8,6 +8,7 @@ import io.swagger.annotations.ApiOperation;
import
org.springframework.util.Assert
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
...
@@ -44,7 +45,12 @@ public class DPSubController {
Assert
.
notNull
(
param
.
get
(
"record"
),
"设备ID不能为空"
);
Assert
.
notNull
(
param
.
get
(
"equList"
),
"设备种类不能为空"
);
template
=
template
+
"_"
+
param
.
get
(
"equList"
);
}
else
if
(
template
.
equals
(
"emergency"
)
||
template
.
equals
(
"problem"
)
||
template
.
equals
(
"registration"
))
{
}
else
if
(
template
.
equals
(
"emergency"
)
||
template
.
equals
(
"registration"
))
{
Assert
.
notNull
(
param
.
get
(
"sequenceNbr"
),
"sequenceNbr不能为空"
);
}
else
if
(
template
.
equals
(
"problem"
))
{
if
(
ValidationUtil
.
isEmpty
(
param
.
get
(
"sequenceNbr"
))){
param
.
put
(
"sequenceNbr"
,
param
.
get
(
"alertId"
));
}
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 @
62a5eb61
...
...
@@ -133,7 +133,7 @@ public class DPSubServiceImpl {
log
.
info
(
"{}tab页获取详情接口,共耗时:{} 毫秒"
,
tab
.
get
(
"displayName"
),
(
e
-
s
));
}
if
(
(!
tab
.
getString
(
"template"
).
contains
(
"equip"
)
||
!
tab
.
getString
(
"template"
).
contains
(
"company"
)
)
&&
tab
.
getString
(
"key"
).
equals
(
"keyinfo"
)){
if
(
!
tab
.
getString
(
"template"
).
contains
(
"equip"
)
&&
!
tab
.
getString
(
"template"
).
contains
(
"company"
)
&&
tab
.
getString
(
"key"
).
equals
(
"keyinfo"
)){
content
.
put
(
tab
.
getString
(
"key"
),
JSONObject
.
parseObject
(
apiResult
.
toString
()));
return
;
}
...
...
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