删除上传文件后触发项目重新打标

This commit is contained in:
wkc
2026-03-19 16:05:40 +08:00
parent 199dbb1d9d
commit 627886f711
11 changed files with 341 additions and 5 deletions

View File

@@ -14,6 +14,9 @@ public enum TriggerType {
/** 自动参数变更 */
AUTO_PARAM_CHANGE,
/** 自动文件删除 */
AUTO_FILE_DELETE,
/** 手动触发 */
MANUAL
}

View File

@@ -241,8 +241,13 @@ public class CcdiFileUploadServiceImpl implements ICcdiFileUploadService {
CcdiFileUploadRecord update = new CcdiFileUploadRecord();
update.setId(record.getId());
update.setFileStatus("deleted");
recordMapper.updateById(update);
return "删除成功";
int updatedRows = recordMapper.updateById(update);
if (updatedRows <= 0) {
throw new RuntimeException("更新上传记录状态失败");
}
bankTagService.submitAutoRebuild(record.getProjectId(), TriggerType.AUTO_FILE_DELETE);
return "删除成功,已开始项目重新打标";
}
@Override