Browse Source

fix 题库模块

he2802 4 years ago
parent
commit
a0a82ba9f6

+ 0 - 3
zhongzheng-admin/src/main/java/com/zhongzheng/controller/bank/QuestionController.java

@@ -58,9 +58,6 @@ public class QuestionController extends BaseController {
         startPage();
         List<QuestionVo> list = iQuestionService.selectList(bo);
         TableDataInfo<QuestionVo> result = getDataTable(list);
-        /*if(list.size()>0){
-            result.setTotal(list.get(0).getTotal());
-        }*/
         return result;
     }
 

+ 0 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/bank/vo/QuestionVo.java

@@ -96,5 +96,4 @@ public class QuestionVo {
 	@ApiModelProperty("知识点列表")
 	private List<ExamKnowledge> knowledgeList;
 
-	private Integer total;
 }

+ 6 - 0
zhongzheng-system/src/main/resources/mapper/modules/bank/QuestionMapper.xml

@@ -49,6 +49,7 @@
         <result property="projectName" column="project_name"/>
         <result property="businessName" column="business_name"/>
         <result property="subjectName" column="subject_name"/>
+        <result property="type" column="type"/>
     </resultMap>
 
     <resultMap type="com.zhongzheng.modules.exam.domain.ExamKnowledge" id="ExamKnowledge">
@@ -59,6 +60,11 @@
     <select id="selectList" parameterType="com.zhongzheng.modules.bank.bo.QuestionQueryBo" resultMap="QuestionResultVo">
         SELECT
         q.*,
+        qb.education_type_id,
+        qb.business_id,
+        qb.project_id,
+        qb.subject_id,
+        qb.type,
         cet.education_name,
         cpt.project_name,
         cb.business_name,