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
70c1bc4a
Commit
70c1bc4a
authored
Mar 09, 2022
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务 5665 5666
parent
1b9b06c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
SignalClassifyController.java
...join/equipmanage/controller/SignalClassifyController.java
+15
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/SignalClassifyController.java
View file @
70c1bc4a
...
@@ -9,12 +9,14 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -9,12 +9,14 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
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.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
/**
* 信号分类量测枚举表
* 信号分类量测枚举表
...
@@ -92,7 +94,18 @@ public class SignalClassifyController extends AbstractBaseController {
...
@@ -92,7 +94,18 @@ public class SignalClassifyController extends AbstractBaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"信号分类量测枚举表列表全部数据查询"
,
notes
=
"信号分类量测枚举表列表全部数据查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"信号分类量测枚举表列表全部数据查询"
,
notes
=
"信号分类量测枚举表列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
SignalClassify
>>
selectForList
()
{
public
ResponseModel
<
List
<
SignalClassify
>>
selectForList
(
@RequestParam
(
required
=
false
)
String
isAlarm
,
return
ResponseHelper
.
buildResponse
(
iSignalClassifyService
.
query
().
list
());
@RequestParam
(
required
=
false
)
String
isContainFire
)
{
if
(!
ValidationUtil
.
isEmpty
(
isAlarm
)
&&
"true"
.
equals
(
isAlarm
))
{
if
(!
ValidationUtil
.
isEmpty
(
isContainFire
)
&&
"false"
.
equals
(
isContainFire
))
{
return
ResponseHelper
.
buildResponse
(
iSignalClassifyService
.
query
().
list
().
stream
().
filter
(
e
->
e
.
getIsAlarm
()
==
1
&&
!
"FIREALARM"
.
equals
(
e
.
getTypeCode
())).
collect
(
Collectors
.
toList
()));
}
else
{
return
ResponseHelper
.
buildResponse
(
iSignalClassifyService
.
query
().
list
().
stream
().
filter
(
e
->
e
.
getIsAlarm
()
==
1
).
collect
(
Collectors
.
toList
()));
}
}
else
{
return
ResponseHelper
.
buildResponse
(
iSignalClassifyService
.
query
().
list
());
}
}
}
}
}
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