1.微调
This commit is contained in:
@@ -1,10 +1,13 @@
|
|||||||
package com.njcn.device.pq.pojo.po;
|
package com.njcn.device.pq.pojo.po;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import com.njcn.db.bo.BaseEntity;
|
import com.njcn.db.bo.BaseEntity;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
*
|
*
|
||||||
@@ -61,6 +64,8 @@ public class Line extends BaseEntity {
|
|||||||
private Integer state;
|
private Integer state;
|
||||||
|
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<Line> children;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,9 @@ public class LineDetailDataVO {
|
|||||||
@ApiModelProperty(name = "devName",value = "终端名称")
|
@ApiModelProperty(name = "devName",value = "终端名称")
|
||||||
private String devName;
|
private String devName;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "装置型号")
|
||||||
|
private String devType;
|
||||||
|
|
||||||
@ApiModelProperty(name = "ip",value = "网络参数")
|
@ApiModelProperty(name = "ip",value = "网络参数")
|
||||||
private String ip;
|
private String ip;
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,6 @@ public class LineDataExcel implements Serializable {
|
|||||||
private BigDecimal integrity;
|
private BigDecimal integrity;
|
||||||
|
|
||||||
@ExcelProperty(value = "国网ID")
|
@ExcelProperty(value = "国网ID")
|
||||||
private BigDecimal monitorId;
|
private String monitorId;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -487,7 +487,7 @@ public class PqDataVerifyBakServiceImpl extends ServiceImpl<PqDataVerifyBakMappe
|
|||||||
lineDataExcel.setOnlineRate(onLineRate(onlineRateByDev, Arrays.asList(dto.getDeviceId())));
|
lineDataExcel.setOnlineRate(onLineRate(onlineRateByDev, Arrays.asList(dto.getDeviceId())));
|
||||||
lineDataExcel.setIntegrity(integrity(integrityList, Arrays.asList(dto.getLineId())));
|
lineDataExcel.setIntegrity(integrity(integrityList, Arrays.asList(dto.getLineId())));
|
||||||
if (num == 1) {
|
if (num == 1) {
|
||||||
lineDataExcel.setMonitorId(new BigDecimal(dto.getMonitorId()));
|
lineDataExcel.setMonitorId(dto.getMonitorId());
|
||||||
}
|
}
|
||||||
lineDataExcels1.add(lineDataExcel);
|
lineDataExcels1.add(lineDataExcel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4107,6 +4107,7 @@ public class TerminalBaseServiceImpl extends ServiceImpl<LineMapper, Line> imple
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
log.info("台账同步推送异常:" + e);
|
||||||
//出现异常,直接重启整个前置
|
//出现异常,直接重启整个前置
|
||||||
exFlag=true;
|
exFlag=true;
|
||||||
for (Node node : nodes) {
|
for (Node node : nodes) {
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ public class LineServiceImpl extends ServiceImpl<LineMapper, Line> implements Li
|
|||||||
lineDetailDataVO.setIp(device.getIp());
|
lineDetailDataVO.setIp(device.getIp());
|
||||||
lineDetailDataVO.setLoginTime(device.getLoginTime());
|
lineDetailDataVO.setLoginTime(device.getLoginTime());
|
||||||
lineDetailDataVO.setDevId(device.getId());
|
lineDetailDataVO.setDevId(device.getId());
|
||||||
|
lineDetailDataVO.setDevType(device.getDevType());
|
||||||
lineDetailDataVO.setBusinessType(dicDataFeignClient.getDicDataById(lineDetail.getBusinessType()).getData().getName());
|
lineDetailDataVO.setBusinessType(dicDataFeignClient.getDicDataById(lineDetail.getBusinessType()).getData().getName());
|
||||||
lineDetailDataVO.setLoadType(dicDataFeignClient.getDicDataById(lineDetail.getLoadType()).getData().getName());
|
lineDetailDataVO.setLoadType(dicDataFeignClient.getDicDataById(lineDetail.getLoadType()).getData().getName());
|
||||||
lineDetailDataVO.setObjId(lineDetail.getObjId());
|
lineDetailDataVO.setObjId(lineDetail.getObjId());
|
||||||
|
|||||||
@@ -388,15 +388,5 @@ public class EventDetailServiceImpl extends ServiceImpl<RmpEventDetailMapper, Rm
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
try{
|
|
||||||
System.out.println(1/0);
|
|
||||||
}catch (Exception e){
|
|
||||||
System.out.println(1);
|
|
||||||
}
|
|
||||||
System.out.println(1111);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user