题库修改

pull/4/head
zcxee 2023-08-19 13:49:56 +08:00
parent 5b16e363a0
commit bd259281af
3 changed files with 59 additions and 2 deletions

View File

@ -174,4 +174,28 @@ public class TdQuestion implements Serializable {
@TableField("EXAM_KEYS") @TableField("EXAM_KEYS")
private String examKeys; private String examKeys;
/**
* 500
*/
@TableField("IS_VIP")
private Integer isVip;
/**
* 600
*/
@TableField("IS_VIP2")
private Integer isVip2;
/**
* 1
*/
@TableField("IS_EXAM1")
private Integer isExam1;
/**
* 2
*/
@TableField("IS_EXAM2")
private Integer isExam2;
} }

View File

@ -171,4 +171,22 @@ public class QusetionVo {
*/ */
@ApiModelProperty("考点") @ApiModelProperty("考点")
private String examKeys; private String examKeys;
/**
* 600
*/
@ApiModelProperty("精讯600题")
private Integer isVip2;
/**
* 1
*/
@ApiModelProperty("是否密卷1")
private Integer isExam1;
/**
* 2
*/
@ApiModelProperty("是否密卷2")
private Integer isExam2;
} }

View File

@ -29,7 +29,10 @@
tq.IS_VIP, tq.IS_VIP,
tq.IS_ERROR, tq.IS_ERROR,
tq.IS_NEW, tq.IS_NEW,
tq.EXAM_KEYS tq.EXAM_KEYS,
tq.IS_EXAM1,
tq.IS_EXAM2,
tq.IS_VIP2
from td_question tq from td_question tq
left join td_point_question tpq on tq.QUESTION_ID = tpq.QUESTION_ID and tq.CAR_TYPE_ID = tpq.CAR_TYPE_ID and left join td_point_question tpq on tq.QUESTION_ID = tpq.QUESTION_ID and tq.CAR_TYPE_ID = tpq.CAR_TYPE_ID and
tpq.IS_ACTIVE = '0' tpq.IS_ACTIVE = '0'
@ -100,7 +103,10 @@
tq.IS_VIP, tq.IS_VIP,
tq.IS_ERROR, tq.IS_ERROR,
tq.IS_NEW, tq.IS_NEW,
tq.EXAM_KEYS tq.EXAM_KEYS,
tq.IS_EXAM1,
tq.IS_EXAM2,
tq.IS_VIP2
from td_question tq from td_question tq
<where> <where>
tq.IS_ACTIVE = '0' tq.IS_ACTIVE = '0'
@ -132,6 +138,15 @@
<if test="qusetionVo.examKeys !=null"> <if test="qusetionVo.examKeys !=null">
EXAM_KEYS = #{qusetionVo.examKeys}, EXAM_KEYS = #{qusetionVo.examKeys},
</if> </if>
<if test="qusetionVo.isVip2 !=null">
IS_VIP2 = #{qusetionVo.isVip2},
</if>
<if test="qusetionVo.isExam1 !=null">
IS_EXAM1 = #{qusetionVo.isExam1},
</if>
<if test="qusetionVo.isExam2 !=null">
IS_EXAM2 = #{qusetionVo.isExam2},
</if>
</trim> </trim>
where QUESTION_ID = #{qusetionVo.questionId} where QUESTION_ID = #{qusetionVo.questionId}
</update> </update>