This commit is contained in:
caozehui
2026-05-08 10:39:27 +08:00
parent 8dca7bf537
commit 924c2e8f45

View File

@@ -328,21 +328,21 @@ public class SocketFreqConverterService {
WebServiceManager.sendMsg(this.userId, JSON.toJSONString(socketDataMsg));
if (ObjectUtil.isNotNull(this.lastTolerancePoint)) {
boolean isNewGroup = this.isNewGroup(this.lastTolerancePoint, newTolerantPointVO);
if (isNewGroup) {
// 纵向分组
if (freqConverterConfig.getDirection() == 1) {
if (this.lastTolerancePoint.getTolerant() == 1 && testRes.getTolerant() == 1) {
TolerantPointVO featurePointVO = new TolerantPointVO();
featurePointVO.setResidualVoltage(this.lastTolerancePoint.getResidualVoltage());
featurePointVO.setDurationMs(this.lastTolerancePoint.getDurationMs());
featurePointVO.setTolerant(2);
socketDataMsg.setData(JSON.toJSONString(featurePointVO));
WebServiceManager.sendMsg(this.userId, JSON.toJSONString(socketDataMsg));
testRes.setTolerant(2);
}
}
} else {
// boolean isNewGroup = this.isNewGroup(this.lastTolerancePoint, newTolerantPointVO);
// if (isNewGroup) {
// // 纵向分组
// if (freqConverterConfig.getDirection() == 1) {
// if (this.lastTolerancePoint.getTolerant() == 1 && testRes.getTolerant() == 1) {
// TolerantPointVO featurePointVO = new TolerantPointVO();
// featurePointVO.setResidualVoltage(this.lastTolerancePoint.getResidualVoltage());
// featurePointVO.setDurationMs(this.lastTolerancePoint.getDurationMs());
// featurePointVO.setTolerant(2);
// socketDataMsg.setData(JSON.toJSONString(featurePointVO));
// WebServiceManager.sendMsg(this.userId, JSON.toJSONString(socketDataMsg));
// testRes.setTolerant(2);
// }
// }
// } else {
if (testRes.getTolerant() == 0) {
if (this.lastTolerancePoint.getTolerant() == 1) {
TolerantPointVO featurePointVO = new TolerantPointVO();
@@ -406,7 +406,7 @@ public class SocketFreqConverterService {
}
}
}
}
// }
this.lastTolerancePoint = newTolerantPointVO;
updateTestResList.add(testRes);
}