Commit 96a0e3d8980206c5817bf840c2a328461ecbfb2c
1 parent
4d3855a9
青浦时刻表上传代码依赖
Showing
1 changed file
with
5 additions
and
1 deletions
src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
| ... | ... | @@ -532,7 +532,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 532 | 532 | //发送邮件 |
| 533 | 533 | EmailBean mail = new EmailBean(); |
| 534 | 534 | mail.setSubject(InetAddress.getLocalHost().getHostAddress()+":路单日志数据"+date); |
| 535 | - mail.setContent(logSuccess+"<br/>成功数:"+countSuccess+"<br/>" +logFailure+"<br/>失败数:"+countFailure); | |
| 535 | + mail.setContent("成功数:"+countSuccess+"<br/>失败数:"+countFailure+"<br/>" +logSuccess + "<br/>"+logFailure); | |
| 536 | 536 | sendEmailController.sendMail(emailSendToAddress, mail); |
| 537 | 537 | logger.info("setLD-sendMail:邮件发送成功!"); |
| 538 | 538 | }catch (Exception e){ |
| ... | ... | @@ -1000,6 +1000,10 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 1000 | 1000 | zlc += emptyLc; |
| 1001 | 1001 | continue; |
| 1002 | 1002 | } |
| 1003 | + // 不是正常班次,不传到运管处 | |
| 1004 | + if(!bcType.equals("normal")){ | |
| 1005 | + continue; | |
| 1006 | + } | |
| 1003 | 1007 | // 如果发车时间格式错误,忽略此条 |
| 1004 | 1008 | if(changeTimeFormat(ttInfoDetail) == null){ |
| 1005 | 1009 | continue; | ... | ... |