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
f7186567
Commit
f7186567
authored
Dec 30, 2021
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拓补图功能
parent
7d756585
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
220 additions
and
50 deletions
+220
-50
EquipmentSpecific.java
.../yeejoin/equipmanage/common/entity/EquipmentSpecific.java
+8
-0
EquipmentSpecificAlarmLog.java
.../equipmanage/common/entity/EquipmentSpecificAlarmLog.java
+4
-0
CommonPageInfoParam.java
...yeejoin/equipmanage/common/utils/CommonPageInfoParam.java
+10
-0
CommonPageParamUtil.java
...yeejoin/equipmanage/common/utils/CommonPageParamUtil.java
+2
-0
TopographyAlarmVo.java
.../com/yeejoin/equipmanage/common/vo/TopographyAlarmVo.java
+42
-0
TopographyIotDataVO.java
...om/yeejoin/equipmanage/common/vo/TopographyIotDataVO.java
+21
-0
TopographyIotVo.java
...va/com/yeejoin/equipmanage/common/vo/TopographyIotVo.java
+28
-0
EquipmentDetailController.java
...oin/equipmanage/controller/EquipmentDetailController.java
+23
-45
TopographyController.java
.../yeejoin/equipmanage/controller/TopographyController.java
+0
-0
EquipmentSpecificAlarmMapper.java
...join/equipmanage/mapper/EquipmentSpecificAlarmMapper.java
+1
-0
EquipmentSpecificIndexMapper.java
...join/equipmanage/mapper/EquipmentSpecificIndexMapper.java
+2
-0
IEquipmentSpecificAlarmService.java
...n/equipmanage/service/IEquipmentSpecificAlarmService.java
+4
-0
EquipmentSpecificAlarmServiceImpl.java
...anage/service/impl/EquipmentSpecificAlarmServiceImpl.java
+35
-4
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+1
-0
wl-3.0.1.xml
...ot-system-equip/src/main/resources/changelog/wl-3.0.1.xml
+13
-0
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+0
-0
EquipmentSpecificIndexMapper.xml
...rc/main/resources/mapper/EquipmentSpecificIndexMapper.xml
+26
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/EquipmentSpecific.java
View file @
f7186567
...
@@ -135,4 +135,12 @@ public class EquipmentSpecific extends BaseEntity {
...
@@ -135,4 +135,12 @@ public class EquipmentSpecific extends BaseEntity {
* 存放位置冗余字段
* 存放位置冗余字段
*/
*/
private
Long
warehouseStructureId
;
private
Long
warehouseStructureId
;
@ApiModelProperty
(
value
=
"告警状态"
)
@TableField
(
exist
=
false
)
private
Integer
status
;
@ApiModelProperty
(
value
=
"系统名称"
)
@TableField
(
exist
=
false
)
private
String
systemName
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/EquipmentSpecificAlarmLog.java
View file @
f7186567
...
@@ -125,6 +125,10 @@ public class EquipmentSpecificAlarmLog extends BaseEntity {
...
@@ -125,6 +125,10 @@ public class EquipmentSpecificAlarmLog extends BaseEntity {
@TableField
(
"equipment_index_id"
)
@TableField
(
"equipment_index_id"
)
private
Long
equipmentIndexId
;
private
Long
equipmentIndexId
;
@ApiModelProperty
(
value
=
"报警状态1报警0恢复"
)
@TableField
(
"status"
)
private
Integer
status
;
@ApiModelProperty
(
value
=
"画布id"
)
@ApiModelProperty
(
value
=
"画布id"
)
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
Long
sceneId
;
private
Long
sceneId
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/utils/CommonPageInfoParam.java
View file @
f7186567
...
@@ -109,6 +109,16 @@ public class CommonPageInfoParam extends CommonPageable {
...
@@ -109,6 +109,16 @@ public class CommonPageInfoParam extends CommonPageable {
*/
*/
private
List
<
String
>
buildIds
;
private
List
<
String
>
buildIds
;
private
String
status
;
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setWarehouseStructureName
(
String
warehouseStructureName
)
{
public
void
setWarehouseStructureName
(
String
warehouseStructureName
)
{
this
.
warehouseStructureName
=
warehouseStructureName
;
this
.
warehouseStructureName
=
warehouseStructureName
;
}
}
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/utils/CommonPageParamUtil.java
View file @
f7186567
...
@@ -55,6 +55,8 @@ public class CommonPageParamUtil {
...
@@ -55,6 +55,8 @@ public class CommonPageParamUtil {
param
.
setBuildId
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
param
.
setBuildId
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
}
else
if
(
"buildIds"
.
equals
(
name
)){
}
else
if
(
"buildIds"
.
equals
(
name
)){
param
.
setBuildIds
((
List
<
String
>)
queryRequests
.
get
(
i
).
getValue
());
param
.
setBuildIds
((
List
<
String
>)
queryRequests
.
get
(
i
).
getValue
());
}
else
if
(
"status"
.
equals
(
name
)){
param
.
setStatus
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
}
}
}
}
if
(
commonPageable
!=
null
){
if
(
commonPageable
!=
null
){
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/vo/TopographyAlarmVo.java
0 → 100644
View file @
f7186567
package
com
.
yeejoin
.
equipmanage
.
common
.
vo
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
/**
* @author keyong
* @title: TopographyAlarmVo
* <pre>
* @description: TODO
* </pre>
* @date 2021/12/29 18:57
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
TopographyAlarmVo
{
private
Date
createDate
;
private
String
fireEquipmentSpecificIndexName
;
private
String
fireEquipmentName
;
private
String
warehouseStructureName
;
private
String
equipmentName
;
private
String
handleStatus
;
private
String
handleType
;
private
String
alarmType
;
private
String
alarmContent
;
private
String
status
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/vo/TopographyIotDataVO.java
0 → 100644
View file @
f7186567
package
com
.
yeejoin
.
equipmanage
.
common
.
vo
;
import
lombok.Data
;
/**
* @author keyong
* @title: IotDataVO
* <pre>
* @description: 物联系统发送的增量数据封装VO
* </pre>
* @date 2021/1/7 17:44
*/
@Data
public
class
TopographyIotDataVO
{
private
String
name
;
private
Object
value
;
private
String
unit
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/vo/TopographyIotVo.java
0 → 100644
View file @
f7186567
package
com
.
yeejoin
.
equipmanage
.
common
.
vo
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author keyong
* @title: TopographyAlarmVo
* <pre>
* @description: TODO
* </pre>
* @date 2021/12/29 18:57
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
TopographyIotVo
{
private
Date
time
;
private
List
<
TopographyIotDataVO
>
list
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentDetailController.java
View file @
f7186567
package
com
.
yeejoin
.
equipmanage
.
controller
;
package
com
.
yeejoin
.
equipmanage
.
controller
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.http.MediaType
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
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.springframework.web.multipart.MultipartFile
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.equipmanage.common.entity.EquProperty
;
import
com.yeejoin.equipmanage.common.entity.*
;
import
com.yeejoin.equipmanage.common.entity.EquipmentDetail
;
import
com.yeejoin.equipmanage.common.entity.dto.TopographyNodeDetailDTO
;
import
com.yeejoin.equipmanage.common.entity.EquipmentSpecific
;
import
com.yeejoin.equipmanage.common.entity.StockDetail
;
import
com.yeejoin.equipmanage.common.entity.WarehouseStructure
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipmentDetailDownloadVO
;
import
com.yeejoin.equipmanage.common.entity.vo.EquipmentDetailDownloadVO
;
import
com.yeejoin.equipmanage.common.enums.ExcelEnums
;
import
com.yeejoin.equipmanage.common.enums.ExcelEnums
;
import
com.yeejoin.equipmanage.common.utils.ExcelUtils
;
import
com.yeejoin.equipmanage.common.utils.ExcelUtils
;
...
@@ -51,18 +17,30 @@ import com.yeejoin.equipmanage.fegin.JcsFeign;
...
@@ -51,18 +17,30 @@ import com.yeejoin.equipmanage.fegin.JcsFeign;
import
com.yeejoin.equipmanage.mapper.EquipmentDetailMapper
;
import
com.yeejoin.equipmanage.mapper.EquipmentDetailMapper
;
import
com.yeejoin.equipmanage.mapper.ManufacturerInfoMapper
;
import
com.yeejoin.equipmanage.mapper.ManufacturerInfoMapper
;
import
com.yeejoin.equipmanage.mapper.StockDetailMapper
;
import
com.yeejoin.equipmanage.mapper.StockDetailMapper
;
import
com.yeejoin.equipmanage.service.IEquipmentDetailService
;
import
com.yeejoin.equipmanage.service.*
;
import
com.yeejoin.equipmanage.service.IEquipmentSpecificIndexSerivce
;
import
com.yeejoin.equipmanage.service.impl.TopographyNodeDetailService
;
import
com.yeejoin.equipmanage.service.IEquipmentSpecificSerivce
;
import
com.yeejoin.equipmanage.service.IExcelService
;
import
com.yeejoin.equipmanage.service.IStockService
;
import
com.yeejoin.equipmanage.service.ISyncDataService
;
import
com.yeejoin.equipmanage.service.IWarehouseStructureService
;
import
com.yeejoin.equipmanage.utils.ExcelUtil
;
import
com.yeejoin.equipmanage.utils.ExcelUtil
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
io.swagger.annotations.ApiParam
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.http.MediaType
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
/**
/**
* @author wujiang
* @author wujiang
...
@@ -219,11 +197,11 @@ public class EquipmentDetailController extends AbstractBaseController {
...
@@ -219,11 +197,11 @@ public class EquipmentDetailController extends AbstractBaseController {
}
}
/***
/***
*
*
* 修改
* 修改
* **/
* **/
@RequestMapping
(
value
=
"equipment/updateById"
,
method
=
RequestMethod
.
PUT
)
@RequestMapping
(
value
=
"equipment/updateById"
,
method
=
RequestMethod
.
PUT
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"修改"
,
notes
=
"修改"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"修改"
,
notes
=
"修改"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/TopographyController.java
View file @
f7186567
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificAlarmMapper.java
View file @
f7186567
...
@@ -185,4 +185,5 @@ public interface EquipmentSpecificAlarmMapper extends BaseMapper<EquipmentSpecif
...
@@ -185,4 +185,5 @@ public interface EquipmentSpecificAlarmMapper extends BaseMapper<EquipmentSpecif
* @return
* @return
*/
*/
List
<
EquipmentSpecificAlarm
>
getEquipListBySpecific
(
@Param
(
"status"
)
Boolean
status
,
@Param
(
"equipmentSpecificId"
)
Long
equipmentSpecificId
);
List
<
EquipmentSpecificAlarm
>
getEquipListBySpecific
(
@Param
(
"status"
)
Boolean
status
,
@Param
(
"equipmentSpecificId"
)
Long
equipmentSpecificId
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificIndexMapper.java
View file @
f7186567
...
@@ -46,6 +46,8 @@ public interface EquipmentSpecificIndexMapper extends BaseMapper<EquipmentSpecif
...
@@ -46,6 +46,8 @@ public interface EquipmentSpecificIndexMapper extends BaseMapper<EquipmentSpecif
*/
*/
List
<
EquipmentSpecificIndex
>
getEquipmentSpeIndexByIotCode
(
String
iotCode
);
List
<
EquipmentSpecificIndex
>
getEquipmentSpeIndexByIotCode
(
String
iotCode
);
List
<
EquipmentSpecificIndex
>
getEquipmentSpeIndexDataByIotCode
(
String
iotCode
);
/**
/**
* 通过设备id查询
* 通过设备id查询
*
*
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificAlarmService.java
View file @
f7186567
...
@@ -10,6 +10,7 @@ import com.yeejoin.equipmanage.common.utils.CommonPageInfoParam;
...
@@ -10,6 +10,7 @@ import com.yeejoin.equipmanage.common.utils.CommonPageInfoParam;
import
com.yeejoin.equipmanage.common.vo.AlarmDataVO
;
import
com.yeejoin.equipmanage.common.vo.AlarmDataVO
;
import
com.yeejoin.equipmanage.common.vo.AlarmEquipMockDataVO
;
import
com.yeejoin.equipmanage.common.vo.AlarmEquipMockDataVO
;
import
com.yeejoin.equipmanage.common.vo.AlarmListDataVO
;
import
com.yeejoin.equipmanage.common.vo.AlarmListDataVO
;
import
com.yeejoin.equipmanage.common.vo.TopographyAlarmVo
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -42,6 +43,9 @@ public interface IEquipmentSpecificAlarmService extends IService<EquipmentSpecif
...
@@ -42,6 +43,9 @@ public interface IEquipmentSpecificAlarmService extends IService<EquipmentSpecif
org
.
springframework
.
data
.
domain
.
Page
<
AlarmListDataVO
>
listAlarmsPage
(
CommonPageInfoParam
param
);
org
.
springframework
.
data
.
domain
.
Page
<
AlarmListDataVO
>
listAlarmsPage
(
CommonPageInfoParam
param
);
org
.
springframework
.
data
.
domain
.
Page
<
TopographyAlarmVo
>
listAlarmsPageForTopography
(
CommonPageInfoParam
param
);
Map
<
String
,
Object
>
getSpecificInfoById
(
Long
id
);
Map
<
String
,
Object
>
getSpecificInfoById
(
Long
id
);
Map
<
String
,
Object
>
getSpecificInfoByCode
(
String
code
);
Map
<
String
,
Object
>
getSpecificInfoByCode
(
String
code
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificAlarmServiceImpl.java
View file @
f7186567
...
@@ -12,9 +12,11 @@ import java.util.Enumeration;
...
@@ -12,9 +12,11 @@ import java.util.Enumeration;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.concurrent.ConcurrentHashMap
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
com.yeejoin.equipmanage.common.vo.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.PageImpl
;
...
@@ -43,10 +45,6 @@ import com.yeejoin.equipmanage.common.enums.EquipmentDataEnum;
...
@@ -43,10 +45,6 @@ import com.yeejoin.equipmanage.common.enums.EquipmentDataEnum;
import
com.yeejoin.equipmanage.common.utils.CommonPageInfoParam
;
import
com.yeejoin.equipmanage.common.utils.CommonPageInfoParam
;
import
com.yeejoin.equipmanage.common.utils.DateUtils
;
import
com.yeejoin.equipmanage.common.utils.DateUtils
;
import
com.yeejoin.equipmanage.common.utils.StringUtil
;
import
com.yeejoin.equipmanage.common.utils.StringUtil
;
import
com.yeejoin.equipmanage.common.vo.AlarmDataVO
;
import
com.yeejoin.equipmanage.common.vo.AlarmEquipMockDataVO
;
import
com.yeejoin.equipmanage.common.vo.AlarmListDataVO
;
import
com.yeejoin.equipmanage.common.vo.EquipmentAlarmDownloadVO
;
import
com.yeejoin.equipmanage.mapper.ConfirmAlarmMapper
;
import
com.yeejoin.equipmanage.mapper.ConfirmAlarmMapper
;
import
com.yeejoin.equipmanage.mapper.EquipmentSpecificAlarmLogMapper
;
import
com.yeejoin.equipmanage.mapper.EquipmentSpecificAlarmLogMapper
;
import
com.yeejoin.equipmanage.mapper.EquipmentSpecificAlarmMapper
;
import
com.yeejoin.equipmanage.mapper.EquipmentSpecificAlarmMapper
;
...
@@ -223,6 +221,39 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
...
@@ -223,6 +221,39 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
}
}
@Override
@Override
public
org
.
springframework
.
data
.
domain
.
Page
<
TopographyAlarmVo
>
listAlarmsPageForTopography
(
CommonPageInfoParam
param
)
{
Page
page
=
new
Page
(
param
.
getPageNumber
(),
param
.
getPageSize
());
Page
<
Map
<
String
,
Object
>>
mybatisResult
=
this
.
baseMapper
.
pageAlarmsInfo
(
page
,
param
);
List
<
TopographyAlarmVo
>
res
=
new
ArrayList
<>();
if
(
mybatisResult
.
getSize
()
>
0
)
{
mybatisResult
.
getRecords
().
forEach
(
x
->
{
TopographyAlarmVo
dataVO
=
new
TopographyAlarmVo
();
try
{
dataVO
.
setCreateDate
(
DateUtils
.
dateParse
(
String
.
valueOf
(
x
.
get
(
"createDate"
)),
DateUtils
.
DATE_TIME_T_PATTERN
));
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
dataVO
.
setFireEquipmentSpecificIndexName
(
String
.
valueOf
(
x
.
get
(
"fireEquipmentSpecificIndexName"
)));
dataVO
.
setFireEquipmentName
(
String
.
valueOf
(
x
.
get
(
"fireEquipmentName"
)));
dataVO
.
setWarehouseStructureName
(
String
.
valueOf
(
x
.
get
(
"warehouseStructureName"
)));
dataVO
.
setEquipmentName
(
null
==
x
.
get
(
"equipmentName"
)
?
null
:
String
.
valueOf
(
x
.
get
(
"equipmentName"
)));
dataVO
.
setHandleStatus
(
String
.
valueOf
(
x
.
get
(
"handleStatus"
)));
dataVO
.
setStatus
(
String
.
valueOf
(
x
.
get
(
"status"
)));
Object
type
=
x
.
get
(
"type"
);
if
(
AlarmTypeEnum
.
HZGJ
.
getCode
().
equals
(
type
)
||
AlarmTypeEnum
.
GZGJ
.
getCode
().
equals
(
type
)
||
AlarmTypeEnum
.
PB
.
getCode
().
equals
(
type
))
{
dataVO
.
setAlarmType
(
AlarmTypeEnum
.
getTypeByCode
(
String
.
valueOf
(
type
)));
}
dataVO
.
setAlarmContent
(
x
.
get
(
"fireEquipmentName"
)
+
dataVO
.
getAlarmType
());
dataVO
.
setHandleType
(
null
==
x
.
get
(
"handleType"
)
?
null
:
String
.
valueOf
(
x
.
get
(
"handleType"
)));
res
.
add
(
dataVO
);
});
}
param
.
setPageNumber
(
param
.
getPageNumber
()
-
1
);
return
new
PageImpl
<>(
res
,
param
,
mybatisResult
.
getTotal
());
}
@Override
public
Map
<
String
,
Object
>
getSpecificInfoById
(
Long
id
)
{
public
Map
<
String
,
Object
>
getSpecificInfoById
(
Long
id
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
EquipmentSpecificAlarmLog
alarm
=
equipmentSpecificAlarmLogMapper
.
selectById
(
id
);
EquipmentSpecificAlarmLog
alarm
=
equipmentSpecificAlarmLogMapper
.
selectById
(
id
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
f7186567
...
@@ -875,6 +875,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
...
@@ -875,6 +875,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
equipmentSpecificAlarmLog
.
setAlarmReason
(
equipmentSpecificAlarm
.
getAlamReason
());
equipmentSpecificAlarmLog
.
setAlarmReason
(
equipmentSpecificAlarm
.
getAlamReason
());
equipmentSpecificAlarmLog
.
setEquipmentSpecificCode
(
equipmentSpecificAlarm
.
getCode
());
equipmentSpecificAlarmLog
.
setEquipmentSpecificCode
(
equipmentSpecificAlarm
.
getCode
());
equipmentSpecificAlarmLog
.
setBuildId
(
equipmentSpecificAlarm
.
getBuildId
());
equipmentSpecificAlarmLog
.
setBuildId
(
equipmentSpecificAlarm
.
getBuildId
());
equipmentSpecificAlarmLog
.
setStatus
(
equipmentSpecificAlarm
.
getStatus
());
equipmentSpecificAlarmLogService
.
save
(
equipmentSpecificAlarmLog
);
equipmentSpecificAlarmLogService
.
save
(
equipmentSpecificAlarmLog
);
// 同步告警消息给平台
// 同步告警消息给平台
if
(
amosSwitch
)
{
if
(
amosSwitch
)
{
...
...
amos-boot-system-equip/src/main/resources/changelog/wl-3.0.1.xml
View file @
f7186567
...
@@ -2037,4 +2037,16 @@
...
@@ -2037,4 +2037,16 @@
</sql>
</sql>
</changeSet>
</changeSet>
<changeSet
author=
"keyong"
id=
"1640205688-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"wl_equipment_specific_alarm_log"
columnName=
"status"
/>
</not>
</preConditions>
<comment>
wl_equipment_specific_alarm_log add column status
</comment>
<sql>
alter table `wl_equipment_specific_alarm_log` add column `status` bit(1) COLLATE utf8mb4_general_ci NOT NULL DEFAULT b'1' COMMENT '报警状态:1报警0恢复';
</sql>
</changeSet>
</databaseChangeLog>
</databaseChangeLog>
\ No newline at end of file
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
f7186567
This diff is collapsed.
Click to expand it.
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificIndexMapper.xml
View file @
f7186567
...
@@ -78,7 +78,8 @@
...
@@ -78,7 +78,8 @@
wes.org_code AS orgCode,
wes.org_code AS orgCode,
wei.type_code AS typeCode,
wei.type_code AS typeCode,
wei.name AS indexName,
wei.name AS indexName,
wei.unit AS indexUnitName
wei.unit AS indexUnitName,
wesi.update_date AS updateDate
FROM
FROM
wl_equipment_specific_index AS wesi
wl_equipment_specific_index AS wesi
LEFT JOIN wl_equipment_specific AS wes ON wes.id = wesi.equipment_specific_id
LEFT JOIN wl_equipment_specific AS wes ON wes.id = wesi.equipment_specific_id
...
@@ -86,6 +87,30 @@
...
@@ -86,6 +87,30 @@
WHERE
WHERE
wes.iot_code = #{iotCode}
wes.iot_code = #{iotCode}
</select>
</select>
<select
id=
"getEquipmentSpeIndexDataByIotCode"
resultType=
"com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex"
>
SELECT
wesi.id AS id,
wei.name_key AS nameKey,
IFNULL(si.value_label, si.`value`) AS 'value',
wesi.equipment_specific_id AS equipmentSpecificId,
wesi.equipment_index_id AS equipmentIndexId,
wes.org_code AS code,
wes.iot_code AS iotCode,
wes.org_code AS orgCode,
wei.type_code AS typeCode,
wei.name AS indexName,
wei.unit AS indexUnitName,
wei.value_enum AS valueEnum
FROM
wl_equipment_specific_index AS wesi
LEFT JOIN wl_equipment_specific AS wes ON wes.id = wesi.equipment_specific_id
LEFT JOIN wl_equipment_index AS wei ON wei.id = wesi.equipment_index_id
WHERE
wes.iot_code = #{iotCode}
</select>
<select
id=
"getEquipmentSpeIndexByEquipmentSecificId"
<select
id=
"getEquipmentSpeIndexByEquipmentSecificId"
resultType=
"com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex"
>
resultType=
"com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex"
>
SELECT
SELECT
...
...
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