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)); 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);
} }