|
@@ -255,7 +255,7 @@ public class TaskController extends BladeController {
|
|
|
try {
|
|
|
this.buildTaskInfo(taskId, approvalDTO, aopParamsSet, 1);
|
|
|
} catch (Exception e) {
|
|
|
- throw new ServiceException("创建审批任务异常,操作失败:" + e.getMessage());
|
|
|
+ throw new ServiceException("创建审批任务异常," + e.getMessage());
|
|
|
}
|
|
|
|
|
|
/*修改数据源状态为=待审批*/
|
|
@@ -325,7 +325,7 @@ public class TaskController extends BladeController {
|
|
|
try {
|
|
|
this.buildTaskInfo(taskId, approvalDTO, aopParamsSet, 2);
|
|
|
} catch (Exception e) {
|
|
|
- throw new ServiceException("创建审批任务异常,操作失败:" + e.getMessage());
|
|
|
+ throw new ServiceException("创建审批任务异常," + e.getMessage());
|
|
|
}
|
|
|
|
|
|
/*修改数据源状态为=待审批*/
|
|
@@ -390,7 +390,7 @@ public class TaskController extends BladeController {
|
|
|
try {
|
|
|
this.buildTaskInfo(taskId, approvalDTO, aopParamsSet, 3);
|
|
|
} catch (Exception e) {
|
|
|
- throw new ServiceException("创建审批任务异常,操作失败:" + e.getMessage());
|
|
|
+ throw new ServiceException("创建审批任务异常," + e.getMessage());
|
|
|
}
|
|
|
|
|
|
/*修改数据源状态为=待审批*/
|
|
@@ -488,7 +488,7 @@ public class TaskController extends BladeController {
|
|
|
try {
|
|
|
this.buildTaskInfo(taskId, approvalDTO, aopParamsSet, 4);
|
|
|
} catch (Exception e) {
|
|
|
- throw new ServiceException("创建审批任务异常,操作失败:" + e.getMessage());
|
|
|
+ throw new ServiceException("创建审批任务异常," + e.getMessage());
|
|
|
}
|
|
|
|
|
|
return R.data(200, aopParamsSet, "操作成功");
|
|
@@ -535,7 +535,7 @@ public class TaskController extends BladeController {
|
|
|
}
|
|
|
R<Object> objectR = archiveFileTaskClient.checkTaskUserCertificateInfo(approvalDTO.getTaskUserIds());
|
|
|
if (!objectR.isSuccess()) {
|
|
|
- throw new ServiceException("选择的任务人没有签字证书信息,请联系管理员");
|
|
|
+ throw new ServiceException(objectR.getMsg());
|
|
|
}
|
|
|
|
|
|
/*主任务*/
|
|
@@ -571,7 +571,6 @@ public class TaskController extends BladeController {
|
|
|
taskClient.saveTask(task);
|
|
|
|
|
|
/*副任务*/
|
|
|
-
|
|
|
/*1.非预设流程*/
|
|
|
if (sortedMap == null) {
|
|
|
Map<Long, String> nameMap = jdbcTemplate.query("select id,name from blade_user where is_deleted = 0"
|
|
@@ -2983,7 +2982,7 @@ public class TaskController extends BladeController {
|
|
|
String resultString = StringUtils.join(userIds, ",");
|
|
|
R<Object> objectR = archiveFileTaskClient.checkTaskUserCertificateInfo(resultString);
|
|
|
if (!objectR.isSuccess()) {
|
|
|
- throw new ServiceException("预设流程选择的任务人没有签字证书信息");
|
|
|
+ throw new ServiceException(objectR.getMsg());
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -3094,7 +3093,7 @@ public class TaskController extends BladeController {
|
|
|
String resultString = StringUtils.join(userIds, ",");
|
|
|
R<Object> objectR = archiveFileTaskClient.checkTaskUserCertificateInfo(resultString);
|
|
|
if (!objectR.isSuccess()) {
|
|
|
- throw new ServiceException("预设流程选择的任务人没有签字证书信息");
|
|
|
+ throw new ServiceException(objectR.getMsg());
|
|
|
}
|
|
|
}
|
|
|
|