Browse Source

修复集中监控-fdp数据接入格式

zhongwei
ty 11 months ago
parent
commit
66b2b283ae
  1. 2
      hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/alarm/config/vo/FdpAlarmVo.java
  2. 3
      hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/service/impl/FdpHistoryDataServiceImpl.java
  3. 4
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/FdpAlarmServiceImpl.java

2
hzims-service-api/alarm-api/src/main/java/com/hnac/hzims/alarm/config/vo/FdpAlarmVo.java

@ -21,7 +21,7 @@ public class FdpAlarmVo {
/**
* 故障ID
*/
private String UUID;
private String uuid;
/**
* 故障站点
*/

3
hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/service/impl/FdpHistoryDataServiceImpl.java

@ -50,7 +50,8 @@ public class FdpHistoryDataServiceImpl implements IFdpHistoryDataService {
@Override
public R<IPage<FdpFaultHistoryDataEntity>> getHistoryData(FDPFaultTableDTO req) {
IPage<FdpFaultHistoryDataEntity> page = new Page<>();
page.setSize(req.getPageSize()-1);
req.setPageIndex(req.getPageIndex()-1);
page.setSize(req.getPageSize()+1);
page.setCurrent(req.getPageIndex());
req.setOrderBy("CREATE_TIME");
if (StringUtil.isBlank(req.getSource())){

4
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/source/service/impl/FdpAlarmServiceImpl.java

@ -83,14 +83,14 @@ public class FdpAlarmServiceImpl implements FdpAlarmService {
private AlarmEntity getAlarmEntity(FdpAlarmVo item) {
AlarmEntity entity = new AlarmEntity();
entity.setAlarmId(item.getUUID());
entity.setAlarmId(item.getUuid());
entity.setRealId(item.getFaultId());
entity.setAlarmTime(item.getCreateTime());
entity.setAlarmContext(item.getFinfo());
entity.setAlarmType(EARLY);
entity.setDeviceCode(item.getDeviceId());
entity.setDeviceName(item.getDeviceName());
entity.setAlarmStatus(Integer.valueOf(item.getStatus()));
entity.setAlarmStatus(0);
entity.setAlarmValue(item.getInfo());
entity.setStationId(item.getStation());
entity.setDiagReason(item.getDiagReason());

Loading…
Cancel
Save