|
@@ -40,6 +40,7 @@ import org.springblade.business.utils.FileUtils;
|
|
|
import org.springblade.business.vo.ContractLogVO;
|
|
|
import org.springblade.business.vo.FileUserVO;
|
|
|
import org.springblade.common.utils.SnowFlakeUtil;
|
|
|
+import org.springblade.core.log.exception.ServiceException;
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl;
|
|
|
import org.springblade.core.mp.support.Condition;
|
|
|
import org.springblade.core.mp.support.Query;
|
|
@@ -314,8 +315,9 @@ public class ContractLogServiceImpl extends BaseServiceImpl<ContractLogMapper, C
|
|
|
if (bladeFile != null && ObjectUtils.isNotEmpty(bladeFile.getLink())) {
|
|
|
contractLogMonthPack.setPdfUrl(bladeFile.getLink());
|
|
|
}
|
|
|
- } catch (FileNotFoundException e) {
|
|
|
- throw new RuntimeException(e);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ throw new ServiceException("文件加载错误,请检查文件是否正常");
|
|
|
}
|
|
|
contractLogMonthPacks.add(contractLogMonthPack);
|
|
|
}
|