Commit cabac947aa0633af33e2a723bc218e26f4d0f763
1 parent
52d316bf
1.电子路单上传bug修复,加入配置加载和上传对象重新初始化的功能
Showing
1 changed file
with
9 additions
and
4 deletions
src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
| ... | ... | @@ -175,13 +175,13 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 175 | 175 | // 数字格式化 |
| 176 | 176 | DecimalFormat format = new DecimalFormat("0.00"); |
| 177 | 177 | |
| 178 | - private final String userNameOther = SystemParamCache.getDrSysCityInterfaceUser(); | |
| 178 | + private String userNameOther = SystemParamCache.getDrSysCityInterfaceUser(); | |
| 179 | 179 | |
| 180 | - private final String passwordOther = SystemParamCache.getDrSysCityInterfacePassword(); | |
| 180 | + private String passwordOther = SystemParamCache.getDrSysCityInterfacePassword(); | |
| 181 | 181 | |
| 182 | - private final String userNameUp = SystemParamCache.getDrSysCityInterfaceBakUser(); | |
| 182 | + private String userNameUp = SystemParamCache.getDrSysCityInterfaceBakUser(); | |
| 183 | 183 | |
| 184 | - private final String passwordUp = SystemParamCache.getDrSysCityInterfaceBakPassword(); | |
| 184 | + private String passwordUp = SystemParamCache.getDrSysCityInterfaceBakPassword(); | |
| 185 | 185 | |
| 186 | 186 | // 接收邮件人 |
| 187 | 187 | private String[] emails = SystemParamCache.getMailWaybill().split(","); |
| ... | ... | @@ -1802,6 +1802,11 @@ public class TrafficManageServiceImpl implements TrafficManageService{ |
| 1802 | 1802 | @Override |
| 1803 | 1803 | public void reloadSetting() { |
| 1804 | 1804 | try { |
| 1805 | + userNameOther = SystemParamCache.getDrSysCityInterfaceUser(); | |
| 1806 | + passwordOther = SystemParamCache.getDrSysCityInterfacePassword(); | |
| 1807 | + userNameUp = SystemParamCache.getDrSysCityInterfaceBakUser(); | |
| 1808 | + passwordUp = SystemParamCache.getDrSysCityInterfaceBakPassword(); | |
| 1809 | + emails = SystemParamCache.getMailWaybill().split(","); | |
| 1805 | 1810 | WebServiceLocator locator = new WebServiceLocator(); |
| 1806 | 1811 | String url = SystemParamCache.getDrSysCityInterfaceUrl(); |
| 1807 | 1812 | if (StringUtils.isNotEmpty(url)) { | ... | ... |