Commit fd44a5a1d1b6fe34800158185ff92e790747ec7e
1 parent
8ebf2e00
update...
Showing
1 changed file
with
9 additions
and
1 deletions
src/main/java/com/bsth/data/pilot80/PilotReport.java
| @@ -181,7 +181,7 @@ public class PilotReport { | @@ -181,7 +181,7 @@ public class PilotReport { | ||
| 181 | sch.setZdsjActualAll(d80.getTimestamp()); | 181 | sch.setZdsjActualAll(d80.getTimestamp()); |
| 182 | 182 | ||
| 183 | //没有里程的进场班次 | 183 | //没有里程的进场班次 |
| 184 | - if(sch.getBcsj() == null && sch.getJhlc() == null) | 184 | + if(isEmpty(sch.getBcsj()) && isEmpty(sch.getJhlc())) |
| 185 | sch.setFcsjActualAll(d80.getTimestamp()); | 185 | sch.setFcsjActualAll(d80.getTimestamp()); |
| 186 | 186 | ||
| 187 | dayOfSchedule.save(sch); | 187 | dayOfSchedule.save(sch); |
| @@ -190,6 +190,14 @@ public class PilotReport { | @@ -190,6 +190,14 @@ public class PilotReport { | ||
| 190 | } | 190 | } |
| 191 | } | 191 | } |
| 192 | } | 192 | } |
| 193 | + | ||
| 194 | + public boolean isEmpty(Integer v){ | ||
| 195 | + return v == null || v.equals(0); | ||
| 196 | + } | ||
| 197 | + | ||
| 198 | + public boolean isEmpty(Double v){ | ||
| 199 | + return v == null || v.equals(0); | ||
| 200 | + } | ||
| 193 | 201 | ||
| 194 | public void defaultReply(String nbbm, short requestCode, boolean agree){ | 202 | public void defaultReply(String nbbm, short requestCode, boolean agree){ |
| 195 | Line line = BasicData.nbbm2LineMap.get(nbbm); | 203 | Line line = BasicData.nbbm2LineMap.get(nbbm); |