【事故按下状态删除】

This commit is contained in:
weizhihong 2022-05-11 14:13:23 +08:00
parent 6122643c1f
commit 179edb07d0

View File

@ -122,12 +122,11 @@ public class StationDirectionOperateHandler {
* @param simulation 仿真数据
* @param stationCode 车站编码
* @param labelEnum 运行方向
* @param pressDown 按下1抬起0
*/
@OperateHandlerMapping(type = Operation.Type.ASSIST_PRESS_ACCIDENT)
public void pressAccidentBtn(Simulation simulation, String stationCode, DirectionLabelEnum labelEnum, Integer pressDown) {
public void pressAccidentBtn(Simulation simulation, String stationCode, DirectionLabelEnum labelEnum) {
ButtonThenInterface thenInterface = stationDirectionService.getThenMethodByType(Operation.Type.ASSIST_PRESS_ACCIDENT);
stationDirectionService.changeButtonAspect(simulation, stationCode, labelEnum
, StationDirection.ButtonTypeEnum.ACCIDENT, (pressDown == 1), null, thenInterface);
, StationDirection.ButtonTypeEnum.ACCIDENT, Boolean.TRUE, null, thenInterface);
}
}