微调
This commit is contained in:
@@ -327,24 +327,8 @@ public class SocketFreqConverterService {
|
||||
socketDataMsg.setData(JSON.toJSONString(newTolerantPointVO));
|
||||
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 {
|
||||
if (testRes.getTolerant() == 0) {
|
||||
if (this.lastTolerancePoint.getTolerant() == 1) {
|
||||
if (ObjectUtil.isNotNull(this.lastTolerancePoint) && this.lastTolerancePoint.getTolerant() == 1) {
|
||||
TolerantPointVO featurePointVO = new TolerantPointVO();
|
||||
|
||||
featurePointVO.setResidualVoltage(Math.round((task.getPqDipData().getResidualVoltage() + this.lastTolerancePoint.getResidualVoltage()) / 2D * 100) / 100D);
|
||||
@@ -405,12 +389,9 @@ public class SocketFreqConverterService {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
this.lastTolerancePoint = newTolerantPointVO;
|
||||
updateTestResList.add(testRes);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
if (!saveTestResList.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user