Commit 52d316bf31ff592eef80f870ce23bacdc76fd1a2

Authored by 王通
1 parent 235c1cea

1.电子路单上传bug修复,加入配置加载和上传对象重新初始化的功能

src/main/java/com/bsth/controller/realcontrol/AdminUtilsController.java
... ... @@ -24,6 +24,7 @@ import com.bsth.filter.SQLInjectFilter;
24 24 import com.bsth.security.SsoConfig;
25 25 import com.bsth.service.SectionService;
26 26 import com.bsth.service.SystemParamService;
  27 +import com.bsth.service.TrafficManageService;
27 28 import com.bsth.service.schedule.utils.SpringUtils;
28 29 import com.bsth.util.MailUtils;
29 30 import com.bsth.websocket.handler.SendUtils;
... ... @@ -103,6 +104,9 @@ public class AdminUtilsController {
103 104 @Autowired
104 105 private LineConfigData lineConfigData;
105 106  
  107 + @Autowired
  108 + private TrafficManageService trafficManageService;
  109 +
106 110 /**
107 111 * 出现重复班次的车辆
108 112 *
... ... @@ -384,6 +388,8 @@ public class AdminUtilsController {
384 388 rfidHttpLoader.afterPropertiesSet();
385 389 ssoConfig.afterPropertiesSet();
386 390  
  391 + trafficManageService.reloadSetting();
  392 +
387 393 return "success";
388 394 } catch (Exception e) {
389 395 e.printStackTrace();
... ...
src/main/java/com/bsth/service/TrafficManageService.java
... ... @@ -99,4 +99,6 @@ public interface TrafficManageService {
99 99 * @return
100 100 */
101 101 String getDownLoadWarrantsBusLineStation();
  102 +
  103 + void reloadSetting();
102 104 }
... ...
src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
... ... @@ -1798,4 +1798,33 @@ public class TrafficManageServiceImpl implements TrafficManageService{
1798 1798 sBuffer.append("</XLs>");
1799 1799 return sBuffer.toString();
1800 1800 }
  1801 +
  1802 + @Override
  1803 + public void reloadSetting() {
  1804 + try {
  1805 + WebServiceLocator locator = new WebServiceLocator();
  1806 + String url = SystemParamCache.getDrSysCityInterfaceUrl();
  1807 + if (StringUtils.isNotEmpty(url)) {
  1808 + locator.setWebServiceSoapEndpointAddress(url);
  1809 + ssop = locator.getWebServiceSoap();
  1810 + }
  1811 + url = SystemParamCache.getDrSysCityInterfaceUrl1();
  1812 + if (StringUtils.isNotEmpty(url)) {
  1813 + locator.setWebServiceSoapEndpointAddress(url);
  1814 + ssop1 = locator.getWebServiceSoap();
  1815 + }
  1816 + url = SystemParamCache.getDrSysCityInterfaceBakUrl();
  1817 + if (StringUtils.isNotEmpty(url)) {
  1818 + locator.setWebServiceSoapEndpointAddress(url);
  1819 + ssopBak = locator.getWebServiceSoap();
  1820 + }
  1821 + url = SystemParamCache.getDrSysCityInterfaceBakUrl1();
  1822 + if (StringUtils.isNotEmpty(url)) {
  1823 + locator.setWebServiceSoapEndpointAddress(url);
  1824 + ssopBak1 = locator.getWebServiceSoap();
  1825 + }
  1826 + } catch (Exception e) {
  1827 + e.printStackTrace();
  1828 + }
  1829 + }
1801 1830 }
... ...