Commit 0d6417f61d54f914f50ddbcb4578618d26e47d9c
Merge branch 'minhang' into pudong
Showing
3 changed files
with
25 additions
and
1 deletions
src/main/java/com/bsth/controller/realcontrol/ServiceDataInterface.java
| ... | ... | @@ -12,7 +12,7 @@ import java.util.ArrayList; |
| 12 | 12 | import java.util.List; |
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | - * 对外的营运数据接口,主要输出当日的数据 | |
| 15 | + * 对外的营运数据接口 | |
| 16 | 16 | * Created by panzhao on 2017/3/15. |
| 17 | 17 | */ |
| 18 | 18 | @RestController |
| ... | ... | @@ -78,4 +78,24 @@ public class ServiceDataInterface { |
| 78 | 78 | } |
| 79 | 79 | return rs; |
| 80 | 80 | } |
| 81 | + | |
| 82 | + /** | |
| 83 | + * 获取全量的进出场数据, 仅供接口项目调用。 由接口项目负责对外所有场站输出 | |
| 84 | + * @return | |
| 85 | + */ | |
| 86 | + @RequestMapping("/findCurrInAndOut") | |
| 87 | + public List<ScheduleRealInfo> findCurrInAndOut(@RequestParam String secretKey){ | |
| 88 | + if (StringUtils.isEmpty(secretKey) || !secretKey.equals(SECRE_KEY)) | |
| 89 | + return null; | |
| 90 | + | |
| 91 | + | |
| 92 | + List<ScheduleRealInfo> all = new ArrayList<>(dayOfSchedule.findAll()), rs = new ArrayList<>(); | |
| 93 | + for (ScheduleRealInfo sch : all) { | |
| 94 | + if (sch.getBcType().equals("in") | |
| 95 | + || sch.getBcType().equals("out")) { | |
| 96 | + rs.add(sch); | |
| 97 | + } | |
| 98 | + } | |
| 99 | + return rs; | |
| 100 | + } | |
| 81 | 101 | } | ... | ... |
src/main/resources/static/pages/scheduleApp/module/common/dts2/ttinfotable/saTimeTable.js
| ... | ... | @@ -189,6 +189,7 @@ angular.module('ScheduleApp').factory( |
| 189 | 189 | formobj.fcno = cellinfo.fcno; |
| 190 | 190 | formobj.bcs = cellinfo.bcs; |
| 191 | 191 | formobj.isFB = cellinfo.isfb; |
| 192 | + formobj.isTS = 0; | |
| 192 | 193 | |
| 193 | 194 | formobj.bcType = colinfo.bc_type; |
| 194 | 195 | formobj.xlDir = colinfo.xldir; | ... | ... |
src/main/resources/static/pages/scheduleApp/module/core/ttInfoManage/detailedit/timeTableDetailManage_old.js
| ... | ... | @@ -490,6 +490,8 @@ angular.module('ScheduleApp').controller( |
| 490 | 490 | self.ttid, |
| 491 | 491 | self.ttname |
| 492 | 492 | ); |
| 493 | + | |
| 494 | + self.TimeTableDetailForSave.isTS = 0; | |
| 493 | 495 | self.title2 = |
| 494 | 496 | self.xlname + "(" + self.ttname + ")" + "时刻表明细信息" + |
| 495 | 497 | "->路牌" + self.TimeTableDetailForSave.lp.lpName + |
| ... | ... | @@ -515,6 +517,7 @@ angular.module('ScheduleApp').controller( |
| 515 | 517 | detailInfo.qdzCode = value.qdzCode || undefined; |
| 516 | 518 | detailInfo.zdzCode = value.zdzCode || undefined; |
| 517 | 519 | detailInfo.isfb = value.isFB; |
| 520 | + detailInfo.ists = value.isTS; | |
| 518 | 521 | |
| 519 | 522 | detailInfo.validInfo(); |
| 520 | 523 | ... | ... |