beetlsql3-dev
Mlxa0324 2 years ago
parent 2c5720253b
commit 4b2ab9adba

@ -52,9 +52,10 @@ public class TeacherOpenCourseMergeResourcesQuestion extends BaseEntity {
private Long teacherOpenCourseMergeCourseInfoId ; private Long teacherOpenCourseMergeCourseInfoId ;
//题型(1单选 2多选 3判断 4填空 5分析) //题型(1单选 2多选 3判断 4填空 5分析)
@ExcelSelector(fixedSelector = {"单选"+ID_SEPARATOR+"1", "多选"+ID_SEPARATOR+"2", "判断"+ID_SEPARATOR+"3", "填空"+ID_SEPARATOR+"4", "分析"+ID_SEPARATOR+"5" }) @ExcelSelector(fixedSelector = {"单选"+ID_SEPARATOR+"1", "多选"+ID_SEPARATOR+"2", "判断"+ID_SEPARATOR+"3" })
@ExcelProperty(value = "题型", index = 2) // @ExcelSelector(fixedSelector = {"单选"+ID_SEPARATOR+"1", "多选"+ID_SEPARATOR+"2", "判断"+ID_SEPARATOR+"3", "填空"+ID_SEPARATOR+"4", "分析"+ID_SEPARATOR+"5" })
@ExcelProperty(value = "题型", index = 2)
private Integer questionType ; private Integer questionType ;
//分值 //分值

@ -509,10 +509,8 @@ public class TeacherOpenCourseMergeResourcesQuestionController extends BaseContr
*/ */
@SneakyThrows @SneakyThrows
@PostMapping(API + "/importBatchTemplate.do") @PostMapping(API + "/importBatchTemplate.do")
public JsonResult importBatchTemplate(MultipartFile file) { public JsonResult importBatchTemplate(MultipartFile file, @SCoreUser CoreUser coreUser) {
CoreUser user = getUser();
Assert.notNull(user, "请登录后再操作");
Assert.isNull(getStudent(), "学生无法访问该接口"); Assert.isNull(getStudent(), "学生无法访问该接口");
// 输出 Excel // 输出 Excel
@ -526,7 +524,7 @@ public class TeacherOpenCourseMergeResourcesQuestionController extends BaseContr
.map(TeacherOpenCourseMergeResourcesQuestionImport::pojo).collect(Collectors.toList()); .map(TeacherOpenCourseMergeResourcesQuestionImport::pojo).collect(Collectors.toList());
// 只复制用户ID和组织ID // 只复制用户ID和组织ID
BeanUtil.beanPropertyCopyToList(user, options, MapUtil.of("id", "userId"), "userId", "orgId"); BeanUtil.beanPropertyCopyToList(coreUser, options, MapUtil.of("id", "userId"), "userId", "orgId");
teacherOpenCourseMergeResourcesQuestionService.insertBatch(options); teacherOpenCourseMergeResourcesQuestionService.insertBatch(options);

@ -241,7 +241,7 @@ queryByConditionQuery
and (t.is_error_favorite =#isErrorFavorite# or t.student_score != t.question_score) and (t.is_error_favorite =#isErrorFavorite# or t.student_score != t.question_score)
@} @}
@if(!isEmpty(questionLogAddType)){ @if(!isEmpty(questionLogAddType)){
and tc.teacher_open_course_question_setting_type =#questionLogAddType# and t.question_log_add_type = #questionLogAddType#
@} @}
@if(!isEmpty(orgId)){ @if(!isEmpty(orgId)){
and t.org_id =#orgId# and t.org_id =#orgId#

Loading…
Cancel
Save