【新增】 学号-试卷ID-文件,新增类型字段0:ZIP文件 ,1:选择题文件

This commit is contained in:
RENWEIBING\letre
2025-05-06 17:11:26 +08:00
parent 4b962fa609
commit 2f3cef4be6
2 changed files with 6 additions and 0 deletions

View File

@@ -35,4 +35,9 @@ public class StuPaperFileDO extends TenantBaseDO {
* 学生文件URL
*/
private String url;
/**
* 类型0:zip文件1:选择题文件)
*/
private int type;
}

View File

@@ -110,6 +110,7 @@ public class FileServiceImpl implements FileService {
stuPaperFile.setPaperId(paperId);
stuPaperFile.setStuId(stuId);
stuPaperFile.setUrl(url);
stuPaperFile.setType(0);
stuPaperFileService.insertStuPaperFile(stuPaperFile);
} else {
// 说明已经上传过判断url是否一致不一致得需要进行更新操作