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,6 +316,7 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | ||
| 316 | // 取昨天 的日期 | 316 | // 取昨天 的日期 |
| 317 | String date = sdfnyr.format(DateUtils.addDays(new Date(), -1)); | 317 | String date = sdfnyr.format(DateUtils.addDays(new Date(), -1)); |
| 318 | StringBuffer sf = new StringBuffer(); | 318 | StringBuffer sf = new StringBuffer(); |
| 319 | + String str; | ||
| 319 | try { | 320 | try { |
| 320 | int counter = 0; // 计数器 | 321 | int counter = 0; // 计数器 |
| 321 | int per = 10; // 每几条线路上传一次路单 | 322 | int per = 10; // 每几条线路上传一次路单 |
| @@ -400,26 +401,28 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | @@ -400,26 +401,28 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | ||
| 400 | if(counter % per == per - 1){ | 401 | if(counter % per == per - 1){ |
| 401 | counter = 0; | 402 | counter = 0; |
| 402 | sf.append("</DLDS>"); | 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 | if(results.isSuccess()){ | 406 | if(results.isSuccess()){ |
| 405 | result = "success"; | 407 | result = "success"; |
| 406 | }else{ | 408 | }else{ |
| 407 | result = "failure"; | 409 | result = "failure"; |
| 408 | } | 410 | } |
| 409 | - logger.info("setLD:"+sf.toString()); | 411 | + logger.info("setLD:"+str); |
| 410 | logger.info("setLD:"+result); | 412 | logger.info("setLD:"+result); |
| 411 | } | 413 | } |
| 412 | } | 414 | } |
| 413 | // 每per条线路上传后剩下的数据再上传 | 415 | // 每per条线路上传后剩下的数据再上传 |
| 414 | if(counter > 0){ | 416 | if(counter > 0){ |
| 415 | sf.append("</DLDS>"); | 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 | if(results.isSuccess()){ | 420 | if(results.isSuccess()){ |
| 418 | result = "success"; | 421 | result = "success"; |
| 419 | }else{ | 422 | }else{ |
| 420 | result = "failure"; | 423 | result = "failure"; |
| 421 | } | 424 | } |
| 422 | - logger.info("setLD:"+sf.toString()); | 425 | + logger.info("setLD:"+str); |
| 423 | logger.info("setLD:"+result); | 426 | logger.info("setLD:"+result); |
| 424 | } | 427 | } |
| 425 | } catch (Exception e) { | 428 | } catch (Exception e) { |