初始版本提交
This commit is contained in:
@@ -40,22 +40,22 @@ public class BeanVConverter {
|
||||
// dataV.setRmscaCp95();
|
||||
|
||||
//根据电压偏差正负赋值
|
||||
if (messageDataV.getDeltaV() >= 0) {
|
||||
if (Objects.nonNull(messageDataV.getDeltaV())&&messageDataV.getDeltaV() >= 0) {
|
||||
dataVRelation.setVlDev(messageDataV.getDeltaV());
|
||||
} else {
|
||||
dataVRelation.setVuDev(messageDataV.getDeltaV());
|
||||
}
|
||||
if (messageDataV.getGDeltaV() >= 0) {
|
||||
if (Objects.nonNull(messageDataV.getGDeltaV())&&messageDataV.getGDeltaV() >= 0) {
|
||||
dataVRelation.setVlDevCp95(messageDataV.getGDeltaV());
|
||||
} else {
|
||||
dataVRelation.setVuDevCp95(messageDataV.getGDeltaV());
|
||||
}
|
||||
if (messageDataV.getDeltaV() >= 0) {
|
||||
if (Objects.nonNull(messageDataV.getMaxDeltaV())&&messageDataV.getMaxDeltaV() >= 0) {
|
||||
dataVRelation.setVlDevMax(messageDataV.getDeltaV());
|
||||
} else {
|
||||
dataVRelation.setVuDevMax(messageDataV.getDeltaV());
|
||||
}
|
||||
if (messageDataV.getDeltaV() >= 0) {
|
||||
if (Objects.nonNull(messageDataV.getMinDeltaV())&&messageDataV.getMinDeltaV() >= 0) {
|
||||
dataVRelation.setVlDevMin(messageDataV.getDeltaV());
|
||||
} else {
|
||||
dataVRelation.setVuDevMin(messageDataV.getDeltaV());
|
||||
|
||||
Reference in New Issue
Block a user