Commit 439b9989 by wutong

同步SKU简单分类及时关闭Session

parent a5c5815f
...@@ -55,9 +55,10 @@ public class SkuSimpleCategoryJob implements SimpleJob { ...@@ -55,9 +55,10 @@ public class SkuSimpleCategoryJob implements SimpleJob {
} else { } else {
throw new RuntimeException("调用SKU简单分类接口返回错误"); throw new RuntimeException("调用SKU简单分类接口返回错误");
} }
} catch (IOException e) { } catch (Exception e) {
throw new RuntimeException("调用SKU简单分类接口失败" + e.getCause().getMessage(), e); throw new RuntimeException("调用SKU简单分类接口失败" + e.getCause().getMessage(), e);
} finally { } finally {
SessionUtil.closeSession();
if (response != null) { if (response != null) {
response.close(); response.close();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment