Commit 023f795ab4eeb52e1b22f5b2ede8fa0b5fc350f3
Merge branch 'minhang' of
http://222.66.0.204:8090/panzhaov5/bsth_control into minhang
Showing
1 changed file
with
7 additions
and
4 deletions
src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
| ... | ... | @@ -316,6 +316,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 316 | 316 | // 取昨天 的日期 |
| 317 | 317 | String date = sdfnyr.format(DateUtils.addDays(new Date(), -1)); |
| 318 | 318 | StringBuffer sf = new StringBuffer(); |
| 319 | + String str; | |
| 319 | 320 | try { |
| 320 | 321 | int counter = 0; // 计数器 |
| 321 | 322 | int per = 10; // 每几条线路上传一次路单 |
| ... | ... | @@ -400,26 +401,28 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 400 | 401 | if(counter % per == per - 1){ |
| 401 | 402 | counter = 0; |
| 402 | 403 | sf.append("</DLDS>"); |
| 403 | - Results results = ssop.setLD(userNameOther, passwordOther, sf.toString()); | |
| 404 | + str = sf.toString().replace("'","");// 去掉'号 | |
| 405 | + Results results = ssop.setLD(userNameOther, passwordOther, str); | |
| 404 | 406 | if(results.isSuccess()){ |
| 405 | 407 | result = "success"; |
| 406 | 408 | }else{ |
| 407 | 409 | result = "failure"; |
| 408 | 410 | } |
| 409 | - logger.info("setLD:"+sf.toString()); | |
| 411 | + logger.info("setLD:"+str); | |
| 410 | 412 | logger.info("setLD:"+result); |
| 411 | 413 | } |
| 412 | 414 | } |
| 413 | 415 | // 每per条线路上传后剩下的数据再上传 |
| 414 | 416 | if(counter > 0){ |
| 415 | 417 | sf.append("</DLDS>"); |
| 416 | - Results results = ssop.setLD(userNameOther, passwordOther, sf.toString()); | |
| 418 | + str = sf.toString().replace("'","");// 去掉'号 | |
| 419 | + Results results = ssop.setLD(userNameOther, passwordOther, str); | |
| 417 | 420 | if(results.isSuccess()){ |
| 418 | 421 | result = "success"; |
| 419 | 422 | }else{ |
| 420 | 423 | result = "failure"; |
| 421 | 424 | } |
| 422 | - logger.info("setLD:"+sf.toString()); | |
| 425 | + logger.info("setLD:"+str); | |
| 423 | 426 | logger.info("setLD:"+result); |
| 424 | 427 | } |
| 425 | 428 | } catch (Exception e) { | ... | ... |