新增:StandStatus增加折返策略
This commit is contained in:
parent
18fbefcee7
commit
ffbb75ea4d
@ -117,6 +117,7 @@ public class StandStatus extends DeviceStatus {
|
||||
this.trainLimit = stand.getTrainLimit();
|
||||
this.parkingTime = stand.getParkingTime();
|
||||
this.parkingAlwaysValid = stand.isParkingAlwaysValid();
|
||||
this.typeStrategy = stand.getTypeStrategy();
|
||||
this.noStatus = stand.isNoStatus();
|
||||
this.closed = stand.isClosed();
|
||||
this.fault = Objects.nonNull(stand.getFault())?((Stand.Fault)stand.getFault()).name():null;
|
||||
@ -214,6 +215,11 @@ public class StandStatus extends DeviceStatus {
|
||||
status.setParkingAlwaysValid(this.parkingAlwaysValid);
|
||||
change = true;
|
||||
}
|
||||
if (!Objects.equals(this.typeStrategy, stand.getTypeStrategy())) {
|
||||
this.typeStrategy = stand.getTypeStrategy();
|
||||
status.setTypeStrategy(this.typeStrategy);
|
||||
change = true;
|
||||
}
|
||||
if (!Objects.equals(this.noStatus, stand.isNoStatus())) {
|
||||
this.noStatus = stand.isNoStatus();
|
||||
status.setNoStatus(noStatus);
|
||||
|
@ -77,6 +77,8 @@ public class StandStatusVO extends DeviceStatusVO {
|
||||
@JsonSerialize(using = Boolean2NumSerializer.class)
|
||||
private Boolean parkingAlwaysValid;
|
||||
|
||||
private Stand.TurnBackType typeStrategy;
|
||||
|
||||
@JsonSerialize(using = Boolean2NumSerializer.class)
|
||||
private Boolean noStatus;
|
||||
|
||||
@ -84,7 +86,7 @@ public class StandStatusVO extends DeviceStatusVO {
|
||||
private Boolean closed;
|
||||
|
||||
/**故障*/
|
||||
@JsonInclude(JsonInclude.Include.ALWAYS)
|
||||
@JsonInclude()
|
||||
private String fault;
|
||||
|
||||
public StandStatusVO(Stand stand) {
|
||||
|
Loading…
Reference in New Issue
Block a user