Commit 2e61fd8c62ad5d48899c28423d0a842802c46b4c

Authored by 娄高锋
1 parent d2cfd47b

发车到站准点率 快1慢3

src/main/java/com/bsth/service/impl/BusIntervalServiceImpl.java
... ... @@ -2935,7 +2935,7 @@ public class BusIntervalServiceImpl implements BusIntervalService {
2935 2935 long fcsjA = Long.valueOf(split2[0])*60 + Long.valueOf(split2[1]);
2936 2936 if(fcsj > 23*60 && fcsjA < 60)
2937 2937 fcsjA += 1440;
2938   - if(fcsjA - fcsj >= 3 || fcsjA - fcsj <= 1){
  2938 + if(fcsjA - fcsj <= 3 && fcsjA - fcsj >= -1){
2939 2939 temp.put("fcsjzd", "准点");
2940 2940 } else {
2941 2941 temp.put("fcsjzd", "不准点");
... ... @@ -2949,7 +2949,7 @@ public class BusIntervalServiceImpl implements BusIntervalService {
2949 2949 long zdsjA = Long.valueOf(split2[0])*60 + Long.valueOf(split2[1]);
2950 2950 if(zdsj > 23*60 && zdsjA < 60)
2951 2951 zdsjA += 1440;
2952   - if(zdsjA - zdsj >= 3 || zdsjA - zdsj <= 1){
  2952 + if(zdsjA - zdsj <= 3 && zdsjA - zdsj >= -1){
2953 2953 temp.put("zdsjzd", "准点");
2954 2954 } else {
2955 2955 temp.put("zdsjzd", "不准点");
... ...