IBP盘bug修改

This commit is contained in:
joylink_zhangsai 2021-07-12 14:30:30 +08:00
parent a48e863898
commit 5d61e74415
2 changed files with 29 additions and 3 deletions

View File

@ -307,6 +307,7 @@ public class VirtualRealityIbpService implements IVirtualRealityIbpService {
case QXJJTC:
case BJQC:
case KM:
case GM:
case AXLE_RESET:
case PRERESET_Z:
case ALARM:

View File

@ -4,6 +4,7 @@ import club.joylink.rtss.simulation.cbtc.data.vr.VirtualRealityIbp;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.util.StringUtils;
import java.util.List;
@ -33,11 +34,19 @@ public class IbpData {
public static class SquareButtonVO {
private String code;
private VirtualRealityIbp.Mean mean;
private String mean;
private String sectionCode;
private Boolean direction;
public VirtualRealityIbp.Mean getMean() {
if (StringUtils.hasText(this.mean)) {
return VirtualRealityIbp.Mean.valueOf(this.mean);
} else {
return null;
}
}
}
@Getter
@ -55,9 +64,17 @@ public class IbpData {
public static class CircularLampVO {
private String code;
private VirtualRealityIbp.Mean mean;
private String mean;
private Boolean direction;
public VirtualRealityIbp.Mean getMean() {
if (StringUtils.hasText(this.mean)) {
return VirtualRealityIbp.Mean.valueOf(this.mean);
} else {
return null;
}
}
}
@Getter
@ -66,8 +83,16 @@ public class IbpData {
public static class KeyVO {
private String code;
private VirtualRealityIbp.Mean mean;
private String mean;
private Boolean direction; //暂时没用
public VirtualRealityIbp.Mean getMean() {
if (StringUtils.hasText(this.mean)) {
return VirtualRealityIbp.Mean.valueOf(this.mean);
} else {
return null;
}
}
}
}