Commit ee21795153bfa82a69f7f14958fb1b314a1204cb
1 parent
2fba747f
update...
Showing
2 changed files
with
21 additions
and
2 deletions
src/main/java/com/bsth/data/schedule/DayOfSchedule.java
| @@ -494,6 +494,9 @@ public class DayOfSchedule implements CommandLineRunner { | @@ -494,6 +494,9 @@ public class DayOfSchedule implements CommandLineRunner { | ||
| 494 | if (config != null) | 494 | if (config != null) |
| 495 | outConfig = config.getOutConfig(); | 495 | outConfig = config.getOutConfig(); |
| 496 | 496 | ||
| 497 | + //限定出站既出场的停车场 | ||
| 498 | + String park = config.getTwinsPark(); | ||
| 499 | + boolean limitPark = StringUtils.isNotEmpty(park); | ||
| 497 | boolean flag = false; | 500 | boolean flag = false; |
| 498 | ScheduleRealInfo next = null; | 501 | ScheduleRealInfo next = null; |
| 499 | for (ScheduleRealInfo temp : list) { | 502 | for (ScheduleRealInfo temp : list) { |
| @@ -506,7 +509,8 @@ public class DayOfSchedule implements CommandLineRunner { | @@ -506,7 +509,8 @@ public class DayOfSchedule implements CommandLineRunner { | ||
| 506 | continue; | 509 | continue; |
| 507 | 510 | ||
| 508 | //出站既出场,忽略出场班次 | 511 | //出站既出场,忽略出场班次 |
| 509 | - if (outConfig == 2 && temp.getBcType().equals("out")) | 512 | + if (outConfig == 2 && temp.getBcType().equals("out") |
| 513 | + && (!limitPark || park.equals(temp.getQdzCode()))) | ||
| 510 | continue; | 514 | continue; |
| 511 | 515 | ||
| 512 | if (flag) { | 516 | if (flag) { |
| @@ -529,6 +533,9 @@ public class DayOfSchedule implements CommandLineRunner { | @@ -529,6 +533,9 @@ public class DayOfSchedule implements CommandLineRunner { | ||
| 529 | if (config != null) | 533 | if (config != null) |
| 530 | outConfig = config.getOutConfig(); | 534 | outConfig = config.getOutConfig(); |
| 531 | 535 | ||
| 536 | + //限定出站既出场的停车场 | ||
| 537 | + String park = config.getTwinsPark(); | ||
| 538 | + boolean limitPark = StringUtils.isNotEmpty(park); | ||
| 532 | boolean flag = false; | 539 | boolean flag = false; |
| 533 | ScheduleRealInfo next = null; | 540 | ScheduleRealInfo next = null; |
| 534 | for (ScheduleRealInfo temp : list) { | 541 | for (ScheduleRealInfo temp : list) { |
| @@ -541,7 +548,8 @@ public class DayOfSchedule implements CommandLineRunner { | @@ -541,7 +548,8 @@ public class DayOfSchedule implements CommandLineRunner { | ||
| 541 | continue; | 548 | continue; |
| 542 | 549 | ||
| 543 | //出站既出场,忽略出场班次 | 550 | //出站既出场,忽略出场班次 |
| 544 | - if (outConfig == 2 && temp.getBcType().equals("out")) | 551 | + if (outConfig == 2 && temp.getBcType().equals("out") |
| 552 | + && (!limitPark || park.equals(temp.getQdzCode()))) | ||
| 545 | continue; | 553 | continue; |
| 546 | 554 | ||
| 547 | if (flag && temp.getXlDir().equals(sch.getXlDir())) { | 555 | if (flag && temp.getXlDir().equals(sch.getXlDir())) { |
src/main/java/com/bsth/entity/realcontrol/LineConfig.java
| @@ -47,6 +47,9 @@ public class LineConfig { | @@ -47,6 +47,9 @@ public class LineConfig { | ||
| 47 | /** 出场时间设置 0:真实出场(设备离开缓冲区时间) 1:请求出场时间 2:出站即出场 */ | 47 | /** 出场时间设置 0:真实出场(设备离开缓冲区时间) 1:请求出场时间 2:出站即出场 */ |
| 48 | private int outConfig; | 48 | private int outConfig; |
| 49 | 49 | ||
| 50 | + /** 出站既出场 对应的停车场 */ | ||
| 51 | + private String twinsPark; | ||
| 52 | + | ||
| 50 | /** 短语模板 , 号分隔多个 */ | 53 | /** 短语模板 , 号分隔多个 */ |
| 51 | private String phraseTemps; | 54 | private String phraseTemps; |
| 52 | 55 | ||
| @@ -208,4 +211,12 @@ public class LineConfig { | @@ -208,4 +211,12 @@ public class LineConfig { | ||
| 208 | public void setDownOutDiff(int downOutDiff) { | 211 | public void setDownOutDiff(int downOutDiff) { |
| 209 | this.downOutDiff = downOutDiff; | 212 | this.downOutDiff = downOutDiff; |
| 210 | } | 213 | } |
| 214 | + | ||
| 215 | + public String getTwinsPark() { | ||
| 216 | + return twinsPark; | ||
| 217 | + } | ||
| 218 | + | ||
| 219 | + public void setTwinsPark(String twinsPark) { | ||
| 220 | + this.twinsPark = twinsPark; | ||
| 221 | + } | ||
| 211 | } | 222 | } |