|
@@ -233,7 +233,7 @@ public class PrintCommonServiceServiceImpl implements PrintCommonService {
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- log.error("请求出错", e);
|
|
|
+ log.error(SystemConstant.LOG_ERROR, e);
|
|
|
if (e instanceof ApiException) {
|
|
|
ResultUtil.error((ApiException) e, e.getMessage());
|
|
|
} else {
|
|
@@ -337,7 +337,7 @@ public class PrintCommonServiceServiceImpl implements PrintCommonService {
|
|
|
basicAttachment.setPages(pdfDto.getActualPageCount());
|
|
|
basicAttachmentService.save(basicAttachment);
|
|
|
} catch (Exception e) {
|
|
|
- log.error("请求出错", e);
|
|
|
+ log.error(SystemConstant.LOG_ERROR, e);
|
|
|
basicAttachmentService.deleteAttachment(basicAttachment);
|
|
|
if (e instanceof ApiException) {
|
|
|
ResultUtil.error((ApiException) e, e.getMessage());
|
|
@@ -435,7 +435,7 @@ public class PrintCommonServiceServiceImpl implements PrintCommonService {
|
|
|
basicAttachment = new BasicAttachment(jsonObject.toJSONString(), fileName, SystemConstant.HTML_PREFIX, new BigDecimal(size), fileMd5, userId);
|
|
|
basicAttachmentService.save(basicAttachment);
|
|
|
} catch (Exception e) {
|
|
|
- log.error("请求出错", e);
|
|
|
+ log.error(SystemConstant.LOG_ERROR, e);
|
|
|
basicAttachmentService.deleteAttachment(basicAttachment);
|
|
|
if (e instanceof ApiException) {
|
|
|
ResultUtil.error((ApiException) e, e.getMessage());
|
|
@@ -543,7 +543,7 @@ public class PrintCommonServiceServiceImpl implements PrintCommonService {
|
|
|
}
|
|
|
basicAttachment.setPages(pages);
|
|
|
} catch (Exception e) {
|
|
|
- log.error("请求出错", e);
|
|
|
+ log.error(SystemConstant.LOG_ERROR, e);
|
|
|
basicAttachmentService.deleteAttachment(basicAttachment);
|
|
|
if (e instanceof ApiException) {
|
|
|
ResultUtil.error((ApiException) e, e.getMessage());
|
|
@@ -835,7 +835,7 @@ public class PrintCommonServiceServiceImpl implements PrintCommonService {
|
|
|
tbTaskService.save(tbTask);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- log.error("请求出错", e);
|
|
|
+ log.error(SystemConstant.LOG_ERROR, e);
|
|
|
if (Objects.nonNull(basicAttachment)) {
|
|
|
basicAttachmentService.deleteAttachment(basicAttachment);
|
|
|
}
|
|
@@ -865,7 +865,7 @@ public class PrintCommonServiceServiceImpl implements PrintCommonService {
|
|
|
tbTaskService.save(tbTask);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- log.error("请求出错", e);
|
|
|
+ log.error(SystemConstant.LOG_ERROR, e);
|
|
|
if (Objects.nonNull(basicAttachment)) {
|
|
|
basicAttachmentService.deleteAttachment(basicAttachment);
|
|
|
}
|
|
@@ -887,7 +887,7 @@ public class PrintCommonServiceServiceImpl implements PrintCommonService {
|
|
|
TBTask tbTask = tbTaskService.saveTaskCommon(null, taskTypeEnum, map, null);
|
|
|
tbTaskService.save(tbTask);
|
|
|
} catch (Exception e) {
|
|
|
- log.error("请求出错", e);
|
|
|
+ log.error(SystemConstant.LOG_ERROR, e);
|
|
|
if (e instanceof ApiException) {
|
|
|
ResultUtil.error((ApiException) e, e.getMessage());
|
|
|
} else {
|
|
@@ -907,7 +907,7 @@ public class PrintCommonServiceServiceImpl implements PrintCommonService {
|
|
|
tbTask.setPrintPlanId(printPlanId);
|
|
|
tbTaskService.save(tbTask);
|
|
|
} catch (Exception e) {
|
|
|
- log.error("请求出错", e);
|
|
|
+ log.error(SystemConstant.LOG_ERROR, e);
|
|
|
if (e instanceof ApiException) {
|
|
|
ResultUtil.error((ApiException) e, e.getMessage());
|
|
|
} else {
|
|
@@ -926,7 +926,7 @@ public class PrintCommonServiceServiceImpl implements PrintCommonService {
|
|
|
TBSyncTask tbSyncTask = tbSyncTaskService.savePushCommon(pushTypeEnum, map, null);
|
|
|
tbSyncTaskService.save(tbSyncTask);
|
|
|
} catch (Exception e) {
|
|
|
- log.error("请求出错", e);
|
|
|
+ log.error(SystemConstant.LOG_ERROR, e);
|
|
|
if (e instanceof ApiException) {
|
|
|
ResultUtil.error((ApiException) e, e.getMessage());
|
|
|
} else {
|
|
@@ -1113,7 +1113,7 @@ public class PrintCommonServiceServiceImpl implements PrintCommonService {
|
|
|
jsonObject.put(SystemConstant.PATH, dirName);
|
|
|
jsonObject.put(SystemConstant.UPLOAD_TYPE, UploadFileEnum.FILE);
|
|
|
} catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
+ log.error(SystemConstant.LOG_ERROR, e);
|
|
|
} finally {
|
|
|
if (Objects.nonNull(inputStream)) {
|
|
|
inputStream.close();
|