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
3de67164
Commit
3de67164
authored
Dec 09, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
c61d6579
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+33
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/ConfigureController.java
View file @
3de67164
...
@@ -435,7 +435,11 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -435,7 +435,11 @@ public class ConfigureController extends AbstractBaseController {
if
(
StringUtils
.
isNotBlank
(
systemCode
))
{
if
(
StringUtils
.
isNotBlank
(
systemCode
))
{
hashMap
.
put
(
"systemCode"
,
systemCode
);
hashMap
.
put
(
"systemCode"
,
systemCode
);
}
}
return
CommonResponseUtil
.
success
(
iFireFightingSystemService
.
getSystemName
(
hashMap
));
Map
<
String
,
Object
>
map
=
iFireFightingSystemService
.
getSystemName
(
hashMap
);
if
(
StringUtils
.
isEmpty
(
systemCode
))
{
map
.
put
(
"name"
,
""
);
}
return
CommonResponseUtil
.
success
(
map
);
}
}
@PersonIdentify
@PersonIdentify
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
...
@@ -459,6 +463,34 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -459,6 +463,34 @@ public class ConfigureController extends AbstractBaseController {
}
}
return
CommonResponseUtil
.
success
(
iFireFightingSystemService
.
getSystemStatus
(
hashMap
));
return
CommonResponseUtil
.
success
(
iFireFightingSystemService
.
getSystemStatus
(
hashMap
));
}
}
@PersonIdentify
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"获取系统工作状态(根据系统编码查询)"
)
@GetMapping
(
"/buildSystemStatus"
)
public
ResponseModel
buildEquipSystemStatus
(
@RequestParam
(
required
=
false
)
String
systemCode
)
{
HashMap
<
String
,
Object
>
hashMap
=
new
HashMap
<>();
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
.
PersonIdentity
personIdentity
=
reginParams
.
getPersonIdentity
();
if
(!
ValidationUtil
.
isEmpty
(
personIdentity
))
{
String
bizOrgCode
=
personIdentity
.
getBizOrgCode
();
if
(
StringUtils
.
isNotBlank
(
bizOrgCode
))
{
hashMap
.
put
(
"bizOrgCode"
,
bizOrgCode
);
}
if
(
bizOrgCode
==
null
)
{
return
CommonResponseUtil
.
success
(
null
);
}
}
if
(
StringUtils
.
isNotBlank
(
systemCode
))
{
hashMap
.
put
(
"systemCode"
,
systemCode
);
}
Map
<
String
,
Object
>
map
=
iFireFightingSystemService
.
getSystemStatus
(
hashMap
);
if
(
map
.
containsKey
(
"labels"
))
{
map
.
put
(
"labels"
,
"异常"
);
}
return
CommonResponseUtil
.
success
(
map
);
}
@PersonIdentify
@PersonIdentify
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"获取系统近一月告警设备top5(根据系统编码查询)"
)
@ApiOperation
(
value
=
"获取系统近一月告警设备top5(根据系统编码查询)"
)
...
...
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