Commit b28b06c85580d2cdd8eda0caceac2a63ef8c5f71
1 parent
1dacccb9
嘉定定制线准点率接口
Showing
1 changed file
with
4 additions
and
0 deletions
src/main/java/com/bsth/data/jddzx/JDInterface.java
| ... | ... | @@ -48,6 +48,10 @@ public class JDInterface { |
| 48 | 48 | String date=params.get("date").toString();//yyyy-MM-dd |
| 49 | 49 | String lineCode=params.get("lineCode").toString(); |
| 50 | 50 | List<ScheduleRealInfo> schList=scheduleRealInfoRepository.scheduleDaily(lineCode, date); |
| 51 | + if(schList.size()==0){ | |
| 52 | + rtn.put("status",ResponseCode.SUCCESS); | |
| 53 | + return rtn; | |
| 54 | + } | |
| 51 | 55 | //去除空驶 临加 子任务产生的主任务 |
| 52 | 56 | List<ScheduleRealInfo> list=schList.stream().filter((sch) -> !sch.getBcType().equals("out") && !sch.getBcType().equals("in") && !sch.getBcType().equals("venting") |
| 53 | 57 | && !sch.getBcType().equals("ldks") && !sch.isSflj() && !sch.isCcService()).collect(Collectors.toList()); | ... | ... |