模板导出

beetlsql3-dev
Mlxa0324 2 years ago
parent 32dacef919
commit a1c6dd569d

@ -1,6 +1,7 @@
package com.ibeetl.jlw.entity;
import cn.jlw.util.excel.ExcelSelector;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;
@ -20,6 +21,7 @@ public class TeacherOpenCourseMergeResourcesQuestion extends BaseEntity{
@NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
// @SeqID(name = ORACLE_CORE_SEQ_NAME)
@AssignID(value = "maskAutoID",param = "com.ibeetl.jlw.entity.TeacherOpenCourseMergeResourcesQuestion")
@ExcelIgnore
private Long teacherOpenCourseMergeResourcesQuestionId ;
@ -92,14 +94,17 @@ public class TeacherOpenCourseMergeResourcesQuestion extends BaseEntity{
//题目状态 1上架 2下架
@Dict(type="up_status")
@ExcelIgnore
private Integer questionStatus ;
//后台用户ID
@ExcelIgnore
private Long userId ;
//组织机构ID
@ExcelIgnore
private Long orgId ;

@ -289,7 +289,7 @@ public class GeneralQuestionLogController{
List<Map<String, Object>> maps = BeanCopyUtil.baseEntity2MapWithParallel(datas);
String filename = StrUtil.format("做题记录-导出 {}.xlsx", cn.hutool.core.date.DateUtil.formatDate(DateUtil.date()));
String filename = StrUtil.format("做题记录-导出 {}.xlsx", DateUtil.now());
write(resp, filename,"Sheet1", header.values(), convertData(header.keySet(), maps));
}

@ -159,7 +159,7 @@ public class ResourcesQuestionSnapshotController extends BaseController {
List<Map<String, Object>> maps = baseEntity2MapWithParallel(data.getList());
String filename = StrUtil.format("考试成绩导出 {}.xlsx", DateUtil.formatDate(DateUtil.date()));
String filename = StrUtil.format("考试成绩导出 {}.xlsx", DateUtil.now());
write(response, filename,"Sheet1", header.values(), convertData(header.keySet(), maps));
}

@ -483,7 +483,7 @@ public class TeacherOpenCourseMergeResourcesQuestionController extends BaseContr
Assert.notNull(getUser(), "请登录后再操作");
Assert.isNull(getStudent(), "学生无法访问该接口");
String filename = StrUtil.format("批量题目导入模板 {}", DateUtil.formatDate(DateUtil.date()));
String filename = StrUtil.format("批量题目导入模板 {}", DateUtil.now());
// 输出 Excel
ExcelUtil.writeExcel(response, filename, Collections.emptyList(), TeacherOpenCourseMergeResourcesQuestion.class);

@ -293,7 +293,7 @@ public class TeacherOpenCourseQuestionLogController {
List<Map<String, Object>> maps = BeanCopyUtil.baseEntity2MapWithParallel(datas);
String filename = StrUtil.format("做题记录-导出 {}.xlsx", DateUtil.formatDate(DateUtil.date()));
String filename = StrUtil.format("做题记录-导出 {}.xlsx", DateUtil.now());
write(resp, filename,"Sheet1", header.values(), convertData(header.keySet(), maps));
}

@ -178,7 +178,7 @@ public class TeacherOpenCourseStudentSigninLogController{
List<Map<String, Object>> maps = BeanCopyUtil.baseEntity2MapWithParallel(datas);
String filename = StrUtil.format("签到日志导出 {}.xlsx", DateUtil.formatDate(DateUtil.date()));
String filename = StrUtil.format("签到日志导出 {}.xlsx", DateUtil.now());
write(resp, filename,"Sheet1", header.values(), convertData(header.keySet(), maps));
}
}

@ -247,7 +247,7 @@ public class UniversitiesCollegesController{
List<Map<String, Object>> maps = BeanCopyUtil.baseEntity2MapWithParallel(datas);
String filename = StrUtil.format("院校导出 {}.xlsx", DateUtil.formatDate(DateUtil.date()));
String filename = StrUtil.format("院校导出 {}.xlsx", DateUtil.now());
write(resp, filename,"Sheet1", header.values(), convertData(header.keySet(), maps));
}
}

@ -191,7 +191,7 @@ public class UniversitiesCollegesJurisdictionExperimentalSystemController{
//
// List<Map<String, Object>> maps = BaseEntity2MapWithParallel(datas);
//
// String filename = StrUtil.format("院校权限导出-{}.xlsx", DateUtil.formatDate(DateUtil.date()));
// String filename = StrUtil.format("院校权限导出-{}.xlsx", DateUtil.now());
// write(resp, filename,"Sheet1", header.values(), convertData(header.keySet(), maps));
}
}

Loading…
Cancel
Save