【新增】 学号-试卷ID-文件,新增类型字段0:ZIP文件 ,1:选择题文件
This commit is contained in:
@@ -35,4 +35,9 @@ public class StuPaperFileDO extends TenantBaseDO {
|
|||||||
* 学生文件URL
|
* 学生文件URL
|
||||||
*/
|
*/
|
||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 类型(0:zip文件,1:选择题文件)
|
||||||
|
*/
|
||||||
|
private int type;
|
||||||
}
|
}
|
@@ -110,6 +110,7 @@ public class FileServiceImpl implements FileService {
|
|||||||
stuPaperFile.setPaperId(paperId);
|
stuPaperFile.setPaperId(paperId);
|
||||||
stuPaperFile.setStuId(stuId);
|
stuPaperFile.setStuId(stuId);
|
||||||
stuPaperFile.setUrl(url);
|
stuPaperFile.setUrl(url);
|
||||||
|
stuPaperFile.setType(0);
|
||||||
stuPaperFileService.insertStuPaperFile(stuPaperFile);
|
stuPaperFileService.insertStuPaperFile(stuPaperFile);
|
||||||
} else {
|
} else {
|
||||||
// 说明已经上传过,判断url是否一致,不一致得,需要进行更新操作
|
// 说明已经上传过,判断url是否一致,不一致得,需要进行更新操作
|
||||||
|
Reference in New Issue
Block a user