bug fixed 内部人员教育下载不了文件
This commit is contained in:
@ -85,6 +85,7 @@ public class SafetyEducationTraineeController {
|
|||||||
model.addAttribute("fileName", file == null ? "" : file.getOriginalFileName());
|
model.addAttribute("fileName", file == null ? "" : file.getOriginalFileName());
|
||||||
return "safety/EducationTraineeEdit";
|
return "safety/EducationTraineeEdit";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 跳转至编辑弹窗
|
* 跳转至编辑弹窗
|
||||||
*
|
*
|
||||||
@ -99,6 +100,7 @@ public class SafetyEducationTraineeController {
|
|||||||
model.addAttribute("fileName", file == null ? "" : file.getOriginalFileName());
|
model.addAttribute("fileName", file == null ? "" : file.getOriginalFileName());
|
||||||
return "safety/EducationTraineeView";
|
return "safety/EducationTraineeView";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取分页列表信息
|
* 获取分页列表信息
|
||||||
*
|
*
|
||||||
@ -185,7 +187,7 @@ public class SafetyEducationTraineeController {
|
|||||||
} else if (StringUtils.isEmpty(bean.getFileId()) && file.getSize() == 0) {
|
} else if (StringUtils.isEmpty(bean.getFileId()) && file.getSize() == 0) {
|
||||||
bean.setFileId(null);
|
bean.setFileId(null);
|
||||||
safetyEducationTraineeService.update(bean);
|
safetyEducationTraineeService.update(bean);
|
||||||
safetyFilesService.deleteById(oldBean.getFileId());
|
// safetyFilesService.deleteById(oldBean.getFileId());
|
||||||
} else {
|
} else {
|
||||||
safetyEducationTraineeService.update(bean);
|
safetyEducationTraineeService.update(bean);
|
||||||
}
|
}
|
||||||
@ -210,6 +212,7 @@ public class SafetyEducationTraineeController {
|
|||||||
}
|
}
|
||||||
return Result.success();
|
return Result.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除附件
|
* 删除附件
|
||||||
*
|
*
|
||||||
|
|||||||
@ -84,13 +84,17 @@ public class SafetyCheckActivityService {
|
|||||||
* @Date: 2022/10/10
|
* @Date: 2022/10/10
|
||||||
**/
|
**/
|
||||||
public Result audit(String nextUserId, String processInstanceId, int pass) {
|
public Result audit(String nextUserId, String processInstanceId, int pass) {
|
||||||
Task task =
|
List<Task> tasks = workflowService.getTaskService().createTaskQuery().processInstanceId(processInstanceId).active().list();
|
||||||
workflowService.getTaskService().createTaskQuery().processInstanceId(processInstanceId).singleResult();
|
if (tasks == null || tasks.isEmpty()) {
|
||||||
|
return Result.failed("No active task found for process instance: " + processInstanceId);
|
||||||
|
}
|
||||||
Map<String, Object> map = new HashMap<>();
|
Map<String, Object> map = new HashMap<>();
|
||||||
map.put(CommString.ACTI_KEK_Condition, pass);
|
map.put(CommString.ACTI_KEK_Condition, pass);
|
||||||
map.put(CommString.ACTI_KEK_Assignee, nextUserId);
|
map.put(CommString.ACTI_KEK_Assignee, nextUserId);
|
||||||
map.put(CommString.ACTI_KEK_Candidate_Users, nextUserId);
|
map.put(CommString.ACTI_KEK_Candidate_Users, nextUserId);
|
||||||
|
for (Task task : tasks) {
|
||||||
workflowService.getTaskService().complete(task.getId(), map);
|
workflowService.getTaskService().complete(task.getId(), map);
|
||||||
|
}
|
||||||
return Result.success();
|
return Result.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user