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
67c12c5a
Commit
67c12c5a
authored
Nov 15, 2022
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:总部直流中心统一入口提交
parent
effa07d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
23 deletions
+62
-23
DCenterController.java
...com/yeejoin/equipmanage/controller/DCenterController.java
+62
-0
EquipmentAlarmController.java
...join/equipmanage/controller/EquipmentAlarmController.java
+0
-23
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/DCenterController.java
0 → 100644
View file @
67c12c5a
package
com
.
yeejoin
.
equipmanage
.
controller
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.equipmanage.common.utils.*
;
import
com.yeejoin.equipmanage.service.IEquipmentSpecificAlarmService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author Jianqiang Gao
* @title: DCenterController
* <pre>
* @description: 设备告警
* </pre>
* @date 2022/11/15 09:54
*/
@RestController
@Api
(
tags
=
"总部直流中心监管页面Api"
)
@RequestMapping
(
value
=
"/dc-center"
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
class
DCenterController
extends
AbstractBaseController
{
@Autowired
IEquipmentSpecificAlarmService
iEquipmentSpecificAlarmService
;
/**
* 直流中心告警列表分页,用于直流中心大数据查询分页,不建议再扩展联表查询
*
*/
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询"
,
produces
=
"application/json;charset=UTF-8"
,
notes
=
"列表分页查询"
)
public
ResponseModel
listPage
(
@RequestParam
(
value
=
"alarmType"
,
required
=
false
)
String
alarmType
,
CommonPageable
commonPageable
)
{
if
(
commonPageable
.
getPageNumber
()
==
0
)
{
commonPageable
.
setPageNumber
(
1
);
}
List
<
CommonRequest
>
queryRequests
=
new
ArrayList
<>();
CommonRequest
request
=
new
CommonRequest
();
request
.
setName
(
"alarmType"
);
request
.
setValue
(
StringUtil
.
isNotEmpty
(
alarmType
)
?
StringUtils
.
trimToNull
(
alarmType
)
:
null
);
queryRequests
.
add
(
request
);
CommonPageInfoParam
param
=
CommonPageParamUtil
.
fillCommonPageInfoParam
(
queryRequests
,
commonPageable
);
Page
<
Map
<
String
,
Object
>>
list
=
iEquipmentSpecificAlarmService
.
zlzxListPage
(
param
);
return
CommonResponseUtil
.
success
(
list
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentAlarmController.java
View file @
67c12c5a
...
@@ -178,29 +178,6 @@ public class EquipmentAlarmController extends AbstractBaseController {
...
@@ -178,29 +178,6 @@ public class EquipmentAlarmController extends AbstractBaseController {
}
}
/**
/**
* 直流中心告警列表分页,用于直流中心大数据查询分页,不建议再扩展联表查询
*
* @return
*/
@RequestMapping
(
value
=
"/zlzx-list"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询"
,
produces
=
"application/json;charset=UTF-8"
,
notes
=
"列表分页查询"
)
public
ResponseModel
listPage
(
@RequestParam
(
value
=
"alarmType"
,
required
=
false
)
String
alarmType
,
CommonPageable
commonPageable
)
{
if
(
commonPageable
.
getPageNumber
()
==
0
)
{
commonPageable
.
setPageNumber
(
1
);
}
List
<
CommonRequest
>
queryRequests
=
new
ArrayList
<>();
CommonRequest
request
=
new
CommonRequest
();
request
.
setName
(
"alarmType"
);
request
.
setValue
(
StringUtil
.
isNotEmpty
(
alarmType
)
?
StringUtils
.
trimToNull
(
alarmType
)
:
null
);
queryRequests
.
add
(
request
);
CommonPageInfoParam
param
=
CommonPageParamUtil
.
fillCommonPageInfoParam
(
queryRequests
,
commonPageable
);
Page
<
Map
<
String
,
Object
>>
list
=
iEquipmentSpecificAlarmService
.
zlzxListPage
(
param
);
return
CommonResponseUtil
.
success
(
list
);
}
/**
* 稳压泵跑马灯消息已读列表分页查询
* 稳压泵跑马灯消息已读列表分页查询
*
*
* @return
* @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