|
|
|
@ -2,28 +2,20 @@ package com.ibeetl.jlw.web;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
|
|
import cn.hutool.core.lang.Assert;
|
|
|
|
|
import cn.hutool.core.map.MapUtil;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
|
|
import cn.jlw.Interceptor.GetFile;
|
|
|
|
|
import cn.jlw.Interceptor.RFile;
|
|
|
|
|
import cn.jlw.Interceptor.SCoreUser;
|
|
|
|
|
import cn.jlw.util.ToolUtils;
|
|
|
|
|
import cn.jlw.util.excel.ExcelUtil;
|
|
|
|
|
import cn.jlw.util.excel.listener.MyValidateExcelCellDataListener;
|
|
|
|
|
import cn.jlw.validate.ValidateConfig;
|
|
|
|
|
import com.ibeetl.admin.core.annotation.Function;
|
|
|
|
|
import com.ibeetl.admin.core.entity.CoreUser;
|
|
|
|
|
import com.ibeetl.admin.core.file.FileService;
|
|
|
|
|
import com.ibeetl.admin.core.util.BeanUtil;
|
|
|
|
|
import com.ibeetl.admin.core.util.TimeTool;
|
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
|
import com.ibeetl.jlw.entity.FileEntity;
|
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseMergeResourcesQuestion;
|
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseMergeResourcesQuestionImport;
|
|
|
|
|
import com.ibeetl.jlw.service.TeacherOpenCourseMergeResourcesQuestionService;
|
|
|
|
|
import com.ibeetl.jlw.web.query.TeacherOpenCourseMergeResourcesQuestionQuery;
|
|
|
|
|
import com.ibeetl.jlw.web.query.TeacherOpenCourseQuery;
|
|
|
|
|
import lombok.SneakyThrows;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.apache.commons.logging.Log;
|
|
|
|
@ -40,7 +32,6 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
@ -51,12 +42,13 @@ import javax.validation.constraints.NotNull;
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.io.FileInputStream;
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import static cn.jlw.util.CacheUserUtil.getStudent;
|
|
|
|
|
import static com.ibeetl.admin.core.util.user.CacheUserUtil.getUser;
|
|
|
|
|
import static com.ibeetl.admin.core.web.JsonReturnCode.DIY_ERROR;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 开课题目拉取 开课-题库管理-离线 接口
|
|
|
|
@ -218,14 +210,14 @@ public class TeacherOpenCourseMergeResourcesQuestionController extends BaseContr
|
|
|
|
|
return JsonResult.success(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping(MODEL + "/delete.json")
|
|
|
|
|
@Function("teacherOpenCourseMergeResourcesQuestion.delete")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public JsonResult delete(String ids) {
|
|
|
|
|
teacherOpenCourseMergeResourcesQuestionService.deleteTeacherOpenCourseMergeResourcesQuestion(ids);
|
|
|
|
|
return JsonResult.success();
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
// @PostMapping(MODEL + "/delete.json")
|
|
|
|
|
// @Function("teacherOpenCourseMergeResourcesQuestion.delete")
|
|
|
|
|
// @ResponseBody
|
|
|
|
|
// public JsonResult delete(String ids) {
|
|
|
|
|
// teacherOpenCourseMergeResourcesQuestionService.deleteTeacherOpenCourseMergeResourcesQuestion(ids);
|
|
|
|
|
// return JsonResult.success();
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|