Browse Source

fix 题库详情类型

he2802 4 years ago
parent
commit
2e79e921e6

+ 3 - 3
zhongzheng-system/src/main/java/com/zhongzheng/modules/bank/bo/QuestionDetailAddBo.java

@@ -37,11 +37,11 @@ public class QuestionDetailAddBo {
     @ApiModelProperty("父ID")
     private Long pid;
     /** 类型 1单选 2多选 3判断题 4问答题 */
-    @ApiModelProperty("类型 1单选 2多选 3判断题 4问答题")
-    private String type;
+    @ApiModelProperty("类型 0无类型 1单选 2多选 3判断题 4问答题")
+    private Integer type;
     /** 判断题答案 1正确 0错误 */
     @ApiModelProperty("判断题答案 1正确 0错误")
-    private String itemAnswerQuestion;
+    private Integer itemAnswerQuestion;
     /**  状态 1正常 0关闭 */
     @ApiModelProperty(" 状态 1正常 0关闭")
     private Integer status;

+ 4 - 4
zhongzheng-system/src/main/java/com/zhongzheng/modules/bank/bo/QuestionDetailEditBo.java

@@ -46,13 +46,13 @@ public class QuestionDetailEditBo {
     @ApiModelProperty("父ID")
     private Long pid;
 
-    /** 类型 1单选 2多选 3判断题 4问答题 */
-    @ApiModelProperty("类型 1单选 2多选 3判断题 4问答题")
-    private String type;
+    /** 类型  0无类型 1单选 2多选 3判断题 4问答题 */
+    @ApiModelProperty("类型 0无类型 1单选 2多选 3判断题 4问答题")
+    private Integer type;
 
     /** 判断题答案 1正确 0错误 */
     @ApiModelProperty("判断题答案 1正确 0错误")
-    private String itemAnswerQuestion;
+    private Integer itemAnswerQuestion;
 
     /**  状态 1正常 0关闭 */
     @ApiModelProperty(" 状态 1正常 0关闭")

+ 4 - 4
zhongzheng-system/src/main/java/com/zhongzheng/modules/bank/bo/QuestionDetailQueryBo.java

@@ -54,12 +54,12 @@ public class QuestionDetailQueryBo extends BaseEntity {
 	/** 父ID */
 	@ApiModelProperty("父ID")
 	private Long pid;
-	/** 类型 1单选 2多选 3判断题 4问答题 */
-	@ApiModelProperty("类型 1单选 2多选 3判断题 4问答题")
-	private String type;
+	/** 类型  0无类型1单选 2多选 3判断题 4问答题 */
+	@ApiModelProperty("类型 0无类型 1单选 2多选 3判断题 4问答题")
+	private Integer type;
 	/** 判断题答案 1正确 0错误 */
 	@ApiModelProperty("判断题答案 1正确 0错误")
-	private String itemAnswerQuestion;
+	private Integer itemAnswerQuestion;
 	/**  状态 1正常 0关闭 */
 	@ApiModelProperty(" 状态 1正常 0关闭")
 	private Integer status;

+ 3 - 3
zhongzheng-system/src/main/java/com/zhongzheng/modules/bank/domain/QuestionDetail.java

@@ -46,11 +46,11 @@ private static final long serialVersionUID=1L;
     /** 父ID */
     private Long pid;
 
-    /** 类型 1单选 2多选 3判断题 4问答题 */
-    private String type;
+    /** 类型 0无类型 1单选 2多选 3判断题 4问答题 */
+    private Integer type;
 
     /** 判断题答案 1正确 0错误 */
-    private String itemAnswerQuestion;
+    private Integer itemAnswerQuestion;
 
     /**  状态 1正常 0关闭 */
     private Integer status;

+ 2 - 2
zhongzheng-system/src/main/java/com/zhongzheng/modules/bank/service/impl/QuestionDetailServiceImpl.java

@@ -45,8 +45,8 @@ public class QuestionDetailServiceImpl extends ServiceImpl<QuestionDetailMapper,
         lqw.eq(bo.getOptionAnswer() != null, QuestionDetail::getOptionAnswer, bo.getOptionAnswer());
         lqw.eq(StrUtil.isNotBlank(bo.getAnalysisContent()), QuestionDetail::getAnalysisContent, bo.getAnalysisContent());
         lqw.eq(bo.getPid() != null, QuestionDetail::getPid, bo.getPid());
-        lqw.eq(StrUtil.isNotBlank(bo.getType()), QuestionDetail::getType, bo.getType());
-        lqw.eq(StrUtil.isNotBlank(bo.getItemAnswerQuestion()), QuestionDetail::getItemAnswerQuestion, bo.getItemAnswerQuestion());
+        lqw.eq(bo.getType()!= null, QuestionDetail::getType, bo.getType());
+        lqw.eq(bo.getItemAnswerQuestion()!= null, QuestionDetail::getItemAnswerQuestion, bo.getItemAnswerQuestion());
         lqw.eq(bo.getStatus() != null, QuestionDetail::getStatus, bo.getStatus());
         return entity2Vo(this.list(lqw));
     }

+ 3 - 3
zhongzheng-system/src/main/java/com/zhongzheng/modules/bank/vo/QuestionDetailVo.java

@@ -50,12 +50,12 @@ public class QuestionDetailVo {
 	private Long pid;
 	/** 类型 1单选 2多选 3判断题 4问答题 */
 	@Excel(name = "类型 1单选 2多选 3判断题 4问答题")
-	@ApiModelProperty("类型 1单选 2多选 3判断题 4问答题")
-	private String type;
+	@ApiModelProperty("类型 0无类型 1单选 2多选 3判断题 4问答题")
+	private Integer type;
 	/** 判断题答案 1正确 0错误 */
 	@Excel(name = "判断题答案 1正确 0错误")
 	@ApiModelProperty("判断题答案 1正确 0错误")
-	private String itemAnswerQuestion;
+	private Integer itemAnswerQuestion;
 	/**  状态 1正常 0关闭 */
 	@Excel(name = " 状态 1正常 0关闭")
 	@ApiModelProperty(" 状态 1正常 0关闭")