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