提交 00e9da87 authored 作者: jiashixiong's avatar jiashixiong

前台公共资源接口添加查询专家

上级 4992e97f
...@@ -134,7 +134,7 @@ public class ExamPaperLibraryController { ...@@ -134,7 +134,7 @@ public class ExamPaperLibraryController {
for (DiyType dt : list){ for (DiyType dt : list){
ExampaperQuestionLibraryDiyType type = new ExampaperQuestionLibraryDiyType(); ExampaperQuestionLibraryDiyType type = new ExampaperQuestionLibraryDiyType();
type.setCode(dt.getCode()); type.setCode(dt.getCode());
type.setElid(info.getExampaperId()); type.setElid(info.getExampaperid());
type.setDtId(dt.getId()); type.setDtId(dt.getId());
type.setQlid(info.getId()); type.setQlid(info.getId());
exampaperQuestionLibraryDiyTypeManage.insertSelective(type); exampaperQuestionLibraryDiyTypeManage.insertSelective(type);
...@@ -142,6 +142,7 @@ public class ExamPaperLibraryController { ...@@ -142,6 +142,7 @@ public class ExamPaperLibraryController {
} }
examPaperInfoManage.updateByPrimaryKeySelective(ex); examPaperInfoManage.updateByPrimaryKeySelective(ex);
}else{ }else{
BeanUtils.copyProperties(info, ex);
ex.setScore(2); ex.setScore(2);
ex.setCreatetime(new Date()); ex.setCreatetime(new Date());
examPaperInfoManage.insert(ex); examPaperInfoManage.insert(ex);
...@@ -150,7 +151,7 @@ public class ExamPaperLibraryController { ...@@ -150,7 +151,7 @@ public class ExamPaperLibraryController {
for (DiyType dt : list){ for (DiyType dt : list){
ExampaperQuestionLibraryDiyType type = new ExampaperQuestionLibraryDiyType(); ExampaperQuestionLibraryDiyType type = new ExampaperQuestionLibraryDiyType();
type.setCode(dt.getCode()); type.setCode(dt.getCode());
type.setElid(info.getExampaperId()); type.setElid(info.getExampaperid());
type.setDtId(dt.getId()); type.setDtId(dt.getId());
type.setQlid(ex.getId()); type.setQlid(ex.getId());
exampaperQuestionLibraryDiyTypeManage.insertSelective(type); exampaperQuestionLibraryDiyTypeManage.insertSelective(type);
......
...@@ -20,7 +20,7 @@ public class SaveUpdateQuestionForm { ...@@ -20,7 +20,7 @@ public class SaveUpdateQuestionForm {
public Integer id; public Integer id;
@ApiModelProperty("试卷id") @ApiModelProperty("试卷id")
public Integer exampaperId; public Integer exampaperid;
@ApiModelProperty("试题类型 1单选2多选3判断4填空5简答") @ApiModelProperty("试题类型 1单选2多选3判断4填空5简答")
public Integer questionType; public Integer questionType;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论