feat: 可重复检票口名

This commit is contained in:
denglihong2007
2025-04-04 03:06:52 +08:00
parent a15b741825
commit c9e198a8d6
9 changed files with 42 additions and 42 deletions

View File

@@ -82,7 +82,7 @@ namespace CRSim.ScreenSimulator.ViewModels
{
ThisStation = station;
ThisPlatform = platform;
ThisTicketCheck = ticketCheck;
ThisTicketCheck = ticketCheck.Split(" - ")[1];//重复检票口名称的临时解决方案
var trains = station.TrainStops;
foreach (var trainNumber in trains)
{
@@ -91,7 +91,7 @@ namespace CRSim.ScreenSimulator.ViewModels
(StationType == StationType.Both ||
trainNumber.StationType == StationType.Both ||
StationType == trainNumber.StationType) &&
(ticketCheck == string.Empty || trainNumber.TicketChecks.Contains(ticketCheck)) &&
(ticketCheck == string.Empty || (trainNumber.WaitingArea==ticketCheck.Split(" - ")[0] && trainNumber.TicketChecks.Contains(ticketCheck.Split(" - ")[1]))) &&//重复检票口名称的临时解决方案
(platform == string.Empty || trainNumber.Platform == platform))
{
var now = _timeService.GetDateTimeNow();