diff --git a/src/main/java/com/zhgd/xmgl/modules/exam/controller/ExamQuestionBankController.java b/src/main/java/com/zhgd/xmgl/modules/exam/controller/ExamQuestionBankController.java index 6a3ca6651..e69d80767 100644 --- a/src/main/java/com/zhgd/xmgl/modules/exam/controller/ExamQuestionBankController.java +++ b/src/main/java/com/zhgd/xmgl/modules/exam/controller/ExamQuestionBankController.java @@ -363,6 +363,7 @@ public class ExamQuestionBankController { * @param response * @return */ + @OperLog(operModul = "题目管理", operType = "导入", operDesc = "通过excel导入题目管理信息") @ApiOperation(value = "通过excel导入题目管理信息", notes = "通过excel导入题目管理信息", httpMethod = "POST") @RequestMapping(value = "/importExcel", method = RequestMethod.POST) public Result importExcel(HttpServletRequest request, HttpServletResponse response) { @@ -371,6 +372,7 @@ public class ExamQuestionBankController { List subList = examSubjectService.list(); UserInfo user = SecurityUtils.getUser(); SystemUser systemUser = systemUserService.getById(user.getUserId()); + String projectSn = request.getParameter("projectSn"); for (Map.Entry entity : fileMap.entrySet()) { MultipartFile file = entity.getValue();// 获取上传文件对象 try { @@ -408,7 +410,7 @@ public class ExamQuestionBankController { } catch (Exception e) { throw new CustomException("分数格式错误,请填写正确的分数", HttpStatus.INTERNAL_SERVER_ERROR); } - examQuestionBank.setProjectSn(systemUser.getSn()); + examQuestionBank.setProjectSn(projectSn); examQuestionBank.setCreateBy(systemUser.getUserId().toString()); examQuestionBank.setCreateTime(new Date()); examQuestionBank.setUpdateBy(systemUser.getUserId().toString());