|
|
|
@ -0,0 +1,88 @@
|
|
|
|
|
package com.ibeetl.jlw.entity.vo;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
|
|
import cn.hutool.core.lang.UUID;
|
|
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
import com.ibeetl.admin.core.entity.BaseEntity;
|
|
|
|
|
import lombok.Builder;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能描述: <br>
|
|
|
|
|
* 教师点评列表实体
|
|
|
|
|
*
|
|
|
|
|
* @author: mlx
|
|
|
|
|
* @description:
|
|
|
|
|
* @date: 2023/1/14 12:19
|
|
|
|
|
* @version: 1.0
|
|
|
|
|
*/
|
|
|
|
|
@Data
|
|
|
|
|
@EqualsAndHashCode
|
|
|
|
|
public class FileQuestionLogListPageVO extends BaseEntity {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ================ 学生信息单独查询,会省点时间 ===================
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
private String studentIdText;
|
|
|
|
|
|
|
|
|
|
private String studentSn;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* =============================================================
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 文件路径 JSONArray 格式的
|
|
|
|
|
* [{"fileName":"小米承诺函.pdf","fileUrl":"\\filesystem\\temp\\1670763205397_5_7.pdf"}]
|
|
|
|
|
*/
|
|
|
|
|
private String reportFile;
|
|
|
|
|
|
|
|
|
|
@JsonProperty("reportComment")
|
|
|
|
|
private String teacherOpenCourseQuestionLogReply;
|
|
|
|
|
|
|
|
|
|
@JsonProperty("reportScore")
|
|
|
|
|
private BigDecimal studentScore;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 附件,学生端上传附件(单文件)
|
|
|
|
|
*/
|
|
|
|
|
@JsonIgnore
|
|
|
|
|
private String teacherOpenCourseQuestionLogUploadFile ;
|
|
|
|
|
|
|
|
|
|
public void setTeacherOpenCourseQuestionLogUploadFile(String teacherOpenCourseQuestionLogUploadFile) {
|
|
|
|
|
this.teacherOpenCourseQuestionLogUploadFile = teacherOpenCourseQuestionLogUploadFile;
|
|
|
|
|
if (teacherOpenCourseQuestionLogUploadFile != null) {
|
|
|
|
|
String[] files = teacherOpenCourseQuestionLogUploadFile.split(",");
|
|
|
|
|
List<ReportFileStaticClass> list = Arrays.stream(files)
|
|
|
|
|
.map(filePath -> ReportFileStaticClass.builder()
|
|
|
|
|
.fileName(UUID.fastUUID().toString(true) + "." + FileUtil.extName(filePath))
|
|
|
|
|
.fileUrl(filePath).build())
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
|
// 构建
|
|
|
|
|
setReportFile(JSONUtil.toJsonStr(list));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Data
|
|
|
|
|
@Builder
|
|
|
|
|
public static final class ReportFileStaticClass {
|
|
|
|
|
/**
|
|
|
|
|
* 文件名称
|
|
|
|
|
*/
|
|
|
|
|
private String fileName;
|
|
|
|
|
/**
|
|
|
|
|
* 文件相对地址
|
|
|
|
|
*/
|
|
|
|
|
private String fileUrl;
|
|
|
|
|
}
|
|
|
|
|
}
|