微调
This commit is contained in:
@@ -328,21 +328,21 @@ public class SocketFreqConverterService {
|
|||||||
WebServiceManager.sendMsg(this.userId, JSON.toJSONString(socketDataMsg));
|
WebServiceManager.sendMsg(this.userId, JSON.toJSONString(socketDataMsg));
|
||||||
|
|
||||||
if (ObjectUtil.isNotNull(this.lastTolerancePoint)) {
|
if (ObjectUtil.isNotNull(this.lastTolerancePoint)) {
|
||||||
boolean isNewGroup = this.isNewGroup(this.lastTolerancePoint, newTolerantPointVO);
|
// boolean isNewGroup = this.isNewGroup(this.lastTolerancePoint, newTolerantPointVO);
|
||||||
if (isNewGroup) {
|
// if (isNewGroup) {
|
||||||
// 纵向分组
|
// // 纵向分组
|
||||||
if (freqConverterConfig.getDirection() == 1) {
|
// if (freqConverterConfig.getDirection() == 1) {
|
||||||
if (this.lastTolerancePoint.getTolerant() == 1 && testRes.getTolerant() == 1) {
|
// if (this.lastTolerancePoint.getTolerant() == 1 && testRes.getTolerant() == 1) {
|
||||||
TolerantPointVO featurePointVO = new TolerantPointVO();
|
// TolerantPointVO featurePointVO = new TolerantPointVO();
|
||||||
featurePointVO.setResidualVoltage(this.lastTolerancePoint.getResidualVoltage());
|
// featurePointVO.setResidualVoltage(this.lastTolerancePoint.getResidualVoltage());
|
||||||
featurePointVO.setDurationMs(this.lastTolerancePoint.getDurationMs());
|
// featurePointVO.setDurationMs(this.lastTolerancePoint.getDurationMs());
|
||||||
featurePointVO.setTolerant(2);
|
// featurePointVO.setTolerant(2);
|
||||||
socketDataMsg.setData(JSON.toJSONString(featurePointVO));
|
// socketDataMsg.setData(JSON.toJSONString(featurePointVO));
|
||||||
WebServiceManager.sendMsg(this.userId, JSON.toJSONString(socketDataMsg));
|
// WebServiceManager.sendMsg(this.userId, JSON.toJSONString(socketDataMsg));
|
||||||
testRes.setTolerant(2);
|
// testRes.setTolerant(2);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
} else {
|
// } else {
|
||||||
if (testRes.getTolerant() == 0) {
|
if (testRes.getTolerant() == 0) {
|
||||||
if (this.lastTolerancePoint.getTolerant() == 1) {
|
if (this.lastTolerancePoint.getTolerant() == 1) {
|
||||||
TolerantPointVO featurePointVO = new TolerantPointVO();
|
TolerantPointVO featurePointVO = new TolerantPointVO();
|
||||||
@@ -406,7 +406,7 @@ public class SocketFreqConverterService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
this.lastTolerancePoint = newTolerantPointVO;
|
this.lastTolerancePoint = newTolerantPointVO;
|
||||||
updateTestResList.add(testRes);
|
updateTestResList.add(testRes);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user