|
@@ -102,13 +102,16 @@ public class ActBusinessController {
|
|
public void submit(ActBusiness act,ProcessNodeVo node){
|
|
public void submit(ActBusiness act,ProcessNodeVo node){
|
|
//获取审核人
|
|
//获取审核人
|
|
String assignees="";
|
|
String assignees="";
|
|
- for(LoginUser l: node.getUsers()){
|
|
|
|
- if(assignees.equals("")){
|
|
|
|
- assignees=l.getUsername();
|
|
|
|
- }else{
|
|
|
|
- assignees=assignees+","+l.getUsername();
|
|
|
|
|
|
+ if(node.getUsers()!=null){
|
|
|
|
+ for(LoginUser l: node.getUsers()){
|
|
|
|
+ if(assignees.equals("")){
|
|
|
|
+ assignees=l.getUsername();
|
|
|
|
+ }else{
|
|
|
|
+ assignees=assignees+","+l.getUsername();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
act.setAssignees(assignees);
|
|
act.setAssignees(assignees);
|
|
//优先级
|
|
//优先级
|
|
act.setPriority(0);
|
|
act.setPriority(0);
|
|
@@ -208,9 +211,9 @@ public class ActBusinessController {
|
|
|
|
|
|
for(String id : ids.split(",")){
|
|
for(String id : ids.split(",")){
|
|
ActBusiness actBusiness = actBusinessService.getById(id);
|
|
ActBusiness actBusiness = actBusinessService.getById(id);
|
|
- if(actBusiness.getStatus()!=0){
|
|
|
|
- return Result.error("删除失败, 仅能删除草稿状态的申请");
|
|
|
|
- }
|
|
|
|
|
|
+// if(actBusiness.getStatus()!=0){
|
|
|
|
+// return Result.error("删除失败, 仅能删除草稿状态的申请");
|
|
|
|
+// }
|
|
// 删除关联业务表
|
|
// 删除关联业务表
|
|
actBusinessService.deleteBusiness(actBusiness.getTableName(), actBusiness.getTableId());
|
|
actBusinessService.deleteBusiness(actBusiness.getTableName(), actBusiness.getTableId());
|
|
actBusinessService.removeById(id);
|
|
actBusinessService.removeById(id);
|
|
@@ -279,7 +282,7 @@ public class ActBusinessController {
|
|
e.setRouteName(actProcess.getRouteName());
|
|
e.setRouteName(actProcess.getRouteName());
|
|
e.setProcessName(actProcess.getName());
|
|
e.setProcessName(actProcess.getName());
|
|
}
|
|
}
|
|
- if("1".equals(e.getStatus())){
|
|
|
|
|
|
+ if(e.getStatus()==1){
|
|
// 关联当前任务
|
|
// 关联当前任务
|
|
List<Task> taskList = taskService.createTaskQuery().processInstanceId(e.getProcInstId()).list();
|
|
List<Task> taskList = taskService.createTaskQuery().processInstanceId(e.getProcInstId()).list();
|
|
if(taskList!=null&&taskList.size()==1){
|
|
if(taskList!=null&&taskList.size()==1){
|