Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
commit
76d9a0efbd
@ -10,10 +10,9 @@ import club.joylink.rtss.simulation.cbtc.data.map.Route;
|
|||||||
import club.joylink.rtss.simulation.cbtc.data.map.Station;
|
import club.joylink.rtss.simulation.cbtc.data.map.Station;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import org.springframework.util.StringUtils;
|
|
||||||
|
|
||||||
import java.time.LocalTime;
|
import java.time.LocalTime;
|
||||||
import java.util.Objects;
|
import java.time.format.DateTimeFormatter;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class CTCService {
|
public class CTCService {
|
||||||
@ -98,8 +97,9 @@ public class CTCService {
|
|||||||
CtcStationRunPlanLog previousStationPlan = getCtcStationRunPlanByRunPlanCode(simulation, previousStation.getCode(), runPlanCode);
|
CtcStationRunPlanLog previousStationPlan = getCtcStationRunPlanByRunPlanCode(simulation, previousStation.getCode(), runPlanCode);
|
||||||
currentStationPlan.finishReceivingNotice();
|
currentStationPlan.finishReceivingNotice();
|
||||||
previousStationPlan.finishDepartureNotice();
|
previousStationPlan.finishDepartureNotice();
|
||||||
currentStationPlan.getArriveRunPlan().setAdjacentMessageTime(simulation.getSystemTime().toString());
|
String systemTime = simulation.getCorrectSystemTime().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:dd"));
|
||||||
previousStationPlan.getDepartRunPlan().setAdjacentMessageTime(simulation.getSystemTime().toString());
|
currentStationPlan.getArriveRunPlan().setAdjacentMessageTime(systemTime);
|
||||||
|
previousStationPlan.getDepartRunPlan().setAdjacentMessageTime(systemTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -365,6 +365,7 @@ public class CtcStationRunPlanLog {
|
|||||||
this.adjacentDepart = null;
|
this.adjacentDepart = null;
|
||||||
this.adjacentMessage = NO;
|
this.adjacentMessage = NO;
|
||||||
this.occupiedCode = null;
|
this.occupiedCode = null;
|
||||||
|
this.adjacentMessageTime = null;
|
||||||
this.trainTypeMap.clear();
|
this.trainTypeMap.clear();
|
||||||
this.processTypeMap.clear();
|
this.processTypeMap.clear();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user