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