@@ -157,7 +157,12 @@ public class AflAccessChannelInfoServiceImpl implements AflAccessChannelInfoServ | |||
logger.error("选装-接入渠道管理导出失败:{}", e.getMessage()); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("接入渠道管理导出失败"); | |||
}finally { | |||
File file = new File(pathFile); | |||
File file = null; | |||
try { | |||
file = new File(pathFile); | |||
} catch (Exception e) { | |||
} | |||
if (file!=null){ | |||
file.delete(); | |||
} |
@@ -130,7 +130,12 @@ public class AflAccessChannelProductInfoServiceImpl implements AflAccessChannelP | |||
logger.error("选装-接入渠道产品管理导出失败:{}", e.getMessage()); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("接入渠道产品管理导出失败"); | |||
}finally { | |||
File file = new File(pathFile); | |||
File file = null; | |||
try { | |||
file = new File(pathFile); | |||
} catch (Exception e) { | |||
} | |||
if (file!=null){ | |||
file.delete(); | |||
} |
@@ -154,7 +154,11 @@ public class AflApplicationFunctionServiceImpl implements AflApplicationFunction | |||
logger.error("选装-应用功能配置导出失败:{}", e.getMessage()); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("应用功能配置导出失败"); | |||
}finally { | |||
File file = new File(pathFile); | |||
File file = null; | |||
try { | |||
file = new File(pathFile); | |||
} catch (Exception e) { | |||
} | |||
if (file!=null){ | |||
file.delete(); | |||
} |
@@ -169,7 +169,12 @@ public class AflMobileApplicationInfoServiceImpl implements AflMobileApplication | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("应用功能配置导出失败"); | |||
}finally { | |||
if (!StringUtils.isEmpty(pathFile)){ | |||
File file = new File(pathFile); | |||
File file = null; | |||
try { | |||
file = new File(pathFile); | |||
} catch (Exception e) { | |||
} | |||
if (file!=null){ | |||
file.delete(); | |||
} |
@@ -163,7 +163,12 @@ public class AflNoticeTemplateInfoServiceImpl implements AflNoticeTemplateInfoS | |||
logger.error("选装-通知模板管理导出失败:{}", e.getMessage()); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("通知模板管理导出失败"); | |||
}finally { | |||
File file = new File(pathFile); | |||
File file = null; | |||
try { | |||
file = new File(pathFile); | |||
} catch (Exception e) { | |||
} | |||
if (file!=null){ | |||
file.delete(); | |||
} |
@@ -141,7 +141,12 @@ public class AflProductInfoServiceImpl implements AflProductInfoService{ | |||
logger.error("选装-产品信息管理导出失败:{}", e.getMessage()); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("产品信息管理导出失败"); | |||
}finally { | |||
File file = new File(pathFile); | |||
File file = null; | |||
try { | |||
file = new File(pathFile); | |||
} catch (Exception e) { | |||
} | |||
if (file!=null){ | |||
file.delete(); | |||
} |
@@ -140,7 +140,12 @@ public class AflSignChannelsInfoServiceImpl implements AflSignChannelsInfoServic | |||
logger.error("选装-签约渠道管理导出失败:{}", e.getMessage()); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("签约渠道管理导出失败"); | |||
}finally { | |||
File file = new File(pathFile); | |||
File file = null; | |||
try { | |||
file = new File(pathFile); | |||
} catch (Exception e) { | |||
} | |||
if (file!=null){ | |||
file.delete(); | |||
} |
@@ -153,7 +153,12 @@ public class AflSignReboundInfoServiceImpl implements AflSignReboundInfoService{ | |||
logger.error("选装-签约回跳管理导出失败:{}", e.getMessage()); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("签约回跳管理导出失败"); | |||
}finally { | |||
File file = new File(pathFile); | |||
File file = null; | |||
try { | |||
file = new File(pathFile); | |||
} catch (Exception e) { | |||
} | |||
if (file!=null){ | |||
file.delete(); | |||
} |
@@ -157,7 +157,12 @@ public class AflUiInfoServiceImpl implements AflUiInfoService{ | |||
logger.error("选装-UI配置管理导出失败:{}", e.getMessage()); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("UI配置管理导出失败"); | |||
}finally { | |||
File file = new File(pathFile); | |||
File file = null; | |||
try { | |||
file = new File(pathFile); | |||
} catch (Exception e) { | |||
} | |||
if (file!=null){ | |||
file.delete(); | |||
} |
@@ -196,7 +196,12 @@ public class AflVehicleWhiteServiceImpl implements AflVehicleWhiteService{ | |||
logger.error("选装-车辆白名单管理导出失败:{}", e.getMessage()); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("车辆白名单管理导出失败"); | |||
}finally { | |||
File file = new File(pathFile); | |||
File file = null; | |||
try { | |||
file = new File(pathFile); | |||
} catch (Exception e) { | |||
} | |||
if (file!=null){ | |||
file.delete(); | |||
} |
@@ -109,7 +109,12 @@ public class AflWechatSingServiceImpl implements AflWechatSingService{ | |||
logger.error("选装-签约信息查询失败:{}", e.getMessage()); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("签约信息导出失败"); | |||
}finally { | |||
File file = new File(pathFile); | |||
File file = null; | |||
try { | |||
file = new File(pathFile); | |||
} catch (Exception e) { | |||
} | |||
if (file!=null){ | |||
file.delete(); | |||
} |