|
@@ -46,6 +46,12 @@ public class StudyFileServiceImpl implements StudyFileService {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ // 废弃文件时更新废弃字段
|
|
|
+ if ("abandoned".equals(processType)) {
|
|
|
+ currentFile.setIsAbandoned("1");
|
|
|
+ studyFileDao.updateById(currentFile);
|
|
|
+ }
|
|
|
+
|
|
|
// 保存历史学习文件信息
|
|
|
StudyFileRecordDo historyFile = createHistoryFileRecord(currentFile);
|
|
|
studyFileRecordService.save(historyFile);
|
|
@@ -96,7 +102,9 @@ public class StudyFileServiceImpl implements StudyFileService {
|
|
|
List<String> personIdsToDelete = currentPersons.stream()
|
|
|
.map(StudyFilePersonDo::getId)
|
|
|
.collect(Collectors.toList());
|
|
|
- studyFilePersonService.removeByIds(personIdsToDelete);
|
|
|
+ if (!personIdsToDelete.isEmpty()) {
|
|
|
+ studyFilePersonService.removeByIds(personIdsToDelete);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|