新增textbook的审核状态
This commit is contained in:
parent
3272abb854
commit
c3a46b9577
|
@ -29,11 +29,6 @@ public class SysOssTextbook extends BaseEntity {
|
||||||
*/
|
*/
|
||||||
private Long catalogId;
|
private Long catalogId;
|
||||||
|
|
||||||
/**
|
|
||||||
* 1课件,2课堂,3作业,4试卷
|
|
||||||
*/
|
|
||||||
private Integer type;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件名
|
* 文件名
|
||||||
*/
|
*/
|
||||||
|
@ -44,4 +39,14 @@ public class SysOssTextbook extends BaseEntity {
|
||||||
*/
|
*/
|
||||||
private String filePath;
|
private String filePath;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1课件,2课堂,3作业,4试卷
|
||||||
|
*/
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,35 +20,24 @@ import jakarta.validation.constraints.*;
|
||||||
@AutoMapper(target = SysOssPerson.class, reverseConvertGenerate = false)
|
@AutoMapper(target = SysOssPerson.class, reverseConvertGenerate = false)
|
||||||
public class SysOssPersonBo extends BaseEntity {
|
public class SysOssPersonBo extends BaseEntity {
|
||||||
|
|
||||||
/**
|
@NotNull(message = "主键不能为空", groups = {EditGroup.class})
|
||||||
*
|
|
||||||
*/
|
|
||||||
@NotNull(message = "不能为空", groups = { EditGroup.class })
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
@NotNull(message = "资源id不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||||
*
|
|
||||||
*/
|
|
||||||
@NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private Long ossId;
|
private Long ossId;
|
||||||
|
|
||||||
/**
|
@NotNull(message = "目录id不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||||
*
|
|
||||||
*/
|
|
||||||
@NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private Long catalogId;
|
private Long catalogId;
|
||||||
|
|
||||||
/**
|
@NotBlank(message = "文件名不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||||
*
|
|
||||||
*/
|
|
||||||
@NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private String fileName;
|
private String fileName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 文件路径
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private String filePath;
|
private String filePath;
|
||||||
|
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,11 +32,21 @@ public class SysOssTextbookBo extends BaseEntity {
|
||||||
@NotNull(message = "文件名不能为空", groups = {AddGroup.class, EditGroup.class})
|
@NotNull(message = "文件名不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||||
private String fileName;
|
private String fileName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件路径
|
||||||
|
*/
|
||||||
|
private String filePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1课件,2课堂,3作业,4试卷
|
* 1课件,2课堂,3作业,4试卷
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "资源类型不能为空", groups = {AddGroup.class, EditGroup.class})
|
@NotNull(message = "资源类型不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,10 +33,25 @@ public class SysOssTextbookVo implements Serializable {
|
||||||
*/
|
*/
|
||||||
private Long catalogId;
|
private Long catalogId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件名
|
||||||
|
*/
|
||||||
|
private String fileName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件路径
|
||||||
|
*/
|
||||||
|
private String filePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1课件,2课堂,3作业,4试卷
|
* 1课件,2课堂,3作业,4试卷
|
||||||
*/
|
*/
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,6 +95,7 @@ public class SysOssTextbookServiceImpl implements ISysOssTextbookService {
|
||||||
SysOssTextbook add = MapstructUtils.convert(bo, SysOssTextbook.class);
|
SysOssTextbook add = MapstructUtils.convert(bo, SysOssTextbook.class);
|
||||||
String path = catalogService.selectCatalogNameById(add.getCatalogId());
|
String path = catalogService.selectCatalogNameById(add.getCatalogId());
|
||||||
add.setFilePath(path);
|
add.setFilePath(path);
|
||||||
|
add.setStatus(-1);
|
||||||
validEntityBeforeSave(add);
|
validEntityBeforeSave(add);
|
||||||
boolean flag = baseMapper.insert(add) > 0;
|
boolean flag = baseMapper.insert(add) > 0;
|
||||||
if (flag) {
|
if (flag) {
|
||||||
|
|
Loading…
Reference in New Issue