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 QXJJTC:
case BJQC: case BJQC:
case KM: case KM:
case GM:
case AXLE_RESET: case AXLE_RESET:
case PRERESET_Z: case PRERESET_Z:
case ALARM: case ALARM:

View File

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