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
de333899
Commit
de333899
authored
Jul 19, 2022
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:添加告警日志分页列表
parent
580e0230
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
5 deletions
+76
-5
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+45
-1
EquipmentSpecificAlarmMapper.java
...join/equipmanage/mapper/EquipmentSpecificAlarmMapper.java
+2
-0
IEquipmentSpecificAlarmService.java
...n/equipmanage/service/IEquipmentSpecificAlarmService.java
+3
-4
EquipmentSpecificAlarmServiceImpl.java
...anage/service/impl/EquipmentSpecificAlarmServiceImpl.java
+0
-0
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+26
-0
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 @
de333899
package
com
.
yeejoin
.
equipmanage
.
controller
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
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.foundation.utils.ValidationUtil
;
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
;
@RestController
@Api
(
tags
=
"组态需求 -- API"
)
@RequestMapping
(
value
=
"/configure"
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
class
ConfigureController
{
public
class
ConfigureController
extends
AbstractBaseController
{
@Autowired
private
IEquipmentSpecificAlarmService
equipmentSpecificAlarmService
;
@RequestMapping
(
value
=
"/alarmLogPage"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询"
,
produces
=
"application/json;charset=UTF-8"
,
notes
=
"列表分页查询"
)
public
ResponseModel
pageQuery
(
@RequestParam
(
required
=
false
)
String
system
,
CommonPageable
commonPageable
)
{
if
(
commonPageable
.
getPageNumber
()
==
0
)
{
commonPageable
.
setPageNumber
(
1
);
}
ReginParams
reginParams
=
getSelectedOrgInfo
();
List
<
CommonRequest
>
queryRequests
=
new
ArrayList
<>();
CommonRequest
request7
=
new
CommonRequest
();
request7
.
setName
(
"system"
);
request7
.
setValue
(
StringUtil
.
isNotEmpty
(
system
)
?
StringUtils
.
trimToNull
(
system
)
:
null
);
queryRequests
.
add
(
request7
);
if
(!
ValidationUtil
.
isEmpty
(
reginParams
.
getPersonIdentity
()))
{
CommonRequest
request13
=
new
CommonRequest
();
request13
.
setName
(
"bizOrgCode"
);
request13
.
setValue
(
StringUtil
.
isNotEmpty
(
reginParams
.
getPersonIdentity
().
getBizOrgCode
())
?
reginParams
.
getPersonIdentity
().
getBizOrgCode
()
:
null
);
queryRequests
.
add
(
request13
);
}
CommonPageInfoParam
param
=
CommonPageParamUtil
.
fillCommonPageInfoParam
(
queryRequests
,
commonPageable
);
Page
<
Map
<
String
,
Object
>>
list
=
equipmentSpecificAlarmService
.
pageQuery
(
param
);
return
CommonResponseUtil
.
success
(
list
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificAlarmMapper.java
View file @
de333899
...
...
@@ -139,6 +139,8 @@ public interface EquipmentSpecificAlarmMapper extends BaseMapper<EquipmentSpecif
Page
<
Map
<
String
,
Object
>>
page
(
Page
page
,
@Param
(
"param"
)
CommonPageInfoParam
param
);
Page
<
Map
<
String
,
Object
>>
pageQuery
(
Page
page
,
@Param
(
"param"
)
CommonPageInfoParam
param
);
List
<
HashMap
<
String
,
Object
>>
getAlarmList
(
CommonPageInfoParam
param
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificAlarmService.java
View file @
de333899
...
...
@@ -3,7 +3,6 @@ package com.yeejoin.equipmanage.service;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yeejoin.equipmanage.common.datasync.entity.FireEquipmentFireAlarm
;
import
com.yeejoin.equipmanage.common.dto.OrgUsrDto
;
import
com.yeejoin.equipmanage.common.entity.EquipmentSpecificAlarm
;
import
com.yeejoin.equipmanage.common.entity.EquipmentSpecificAlarmLog
;
import
com.yeejoin.equipmanage.common.entity.dto.AlarmDTO
;
...
...
@@ -31,6 +30,8 @@ public interface IEquipmentSpecificAlarmService extends IService<EquipmentSpecif
Page
<
Map
<
String
,
Object
>>
listPage
(
CommonPageInfoParam
param
);
Page
<
Map
<
String
,
Object
>>
pageQuery
(
CommonPageInfoParam
param
);
void
handleExport
(
HttpServletResponse
response
,
List
<
Long
>
ids
,
String
alarmType
);
List
<
HashMap
<
String
,
Object
>>
getColumn
(
String
alarmType
);
...
...
@@ -65,15 +66,13 @@ public interface IEquipmentSpecificAlarmService extends IService<EquipmentSpecif
List
<
EquipmentSpecificAlarmLog
>
getConfirmUser
();
//各种类型统计
Integer
getcountAlarmtype
(
String
tyep
);
//统计已处理和未处理
Integer
getcountAlarmHandle
(
String
tyep
);
/**
*
* <pre>
* 根据装备id和查询指定状态告警数据
* </pre>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificAlarmServiceImpl.java
View file @
de333899
This diff is collapsed.
Click to expand it.
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
de333899
...
...
@@ -257,6 +257,32 @@
ORDER BY wlesal.create_date DESC
</select>
<select
id=
"pageQuery"
resultType=
"java.util.HashMap"
>
SELECT
`wlesal`.`id` AS `id`,
`wles`.`code` AS `code`,
`wlesal`.`equipment_specific_name` AS `specificName`,
`wlesal`.`equipment_specific_index_key` AS `indexKey`,
`wlesal`.`equipment_specific_index_name` AS `indexName`,
`wlesal`.`equipment_specific_id` AS `specificId`,
IF
( `wlesal`.`clean_time` IS NOT NULL, '已消除', '未消除' ) AS `cleanStatus`,
`wlesal`.`iot_code` AS `iotCode`,
`wlesal`.`create_date` AS `createDate`
FROM
`wl_equipment_specific_alarm_log` `wlesal`
LEFT JOIN `wl_equipment_specific` `wles` ON `wlesal`.`equipment_specific_id` = `wles`.`id`
<where>
<if
test=
"param.system != null and param.system != ''"
>
find_in_set( #{param.system}, `wlesal`.`system_codes` )
</if>
<if
test=
"param.bizOrgCode != null and param.bizOrgCode != ''"
>
AND wles.biz_org_code like concat (#{param.bizOrgCode},'%')
</if>
</where>
ORDER BY
`wlesal`.`create_date` DESC
</select>
<select
id=
"pageAlarmsInfo"
resultType=
"Map"
>
SELECT
d.*
...
...
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