|
@@ -22,10 +22,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="issuemp3" column="issuemp3" />
|
|
|
<result property="answermp3" column="answermp3" />
|
|
|
<result property="explainjsmp3" column="explainjsmp3" />
|
|
|
- <result property="subject1" column="subject_1" />
|
|
|
- <result property="subject2" column="subject_2" />
|
|
|
- <result property="subject3" column="subject_3" />
|
|
|
- <result property="subject4" column="subject_4" />
|
|
|
<result property="liceCar" column="lice_car" />
|
|
|
<result property="liceBus" column="lice_bus" />
|
|
|
<result property="liceTruck" column="lice_truck" />
|
|
@@ -42,6 +38,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="classIssueName" column="class_issue_name" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
+ <result property="subject" column="subject" />
|
|
|
+ <result property="classSort" column="class_sort" />
|
|
|
+ <result property="excellSort" column="excell_sort" />
|
|
|
+ <result property="sequeSort" column="seque_sort" />
|
|
|
+ <result property="placeSort" column="place_sort" />
|
|
|
+
|
|
|
+
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectQuestionInfoVo">
|
|
@@ -67,10 +70,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="issuemp3 != null and issuemp3 != ''"> and issuemp3 = #{issuemp3}</if>
|
|
|
<if test="answermp3 != null and answermp3 != ''"> and answermp3 = #{answermp3}</if>
|
|
|
<if test="explainjsmp3 != null and explainjsmp3 != ''"> and explainjsmp3 = #{explainjsmp3}</if>
|
|
|
- <if test="subject1 != null and subject1 != ''"> and subject_1 = #{subject1}</if>
|
|
|
- <if test="subject2 != null and subject2 != ''"> and subject_2 = #{subject2}</if>
|
|
|
- <if test="subject3 != null and subject3 != ''"> and subject_3 = #{subject3}</if>
|
|
|
- <if test="subject4 != null and subject4 != ''"> and subject_4 = #{subject4}</if>
|
|
|
<if test="liceCar != null and liceCar != ''"> and lice_car = #{liceCar}</if>
|
|
|
<if test="liceBus != null and liceBus != ''"> and lice_bus = #{liceBus}</if>
|
|
|
<if test="liceTruck != null and liceTruck != ''"> and lice_truck = #{liceTruck}</if>
|
|
@@ -85,10 +84,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="placeIssueName != null and placeIssueName != ''"> and place_issue_name like concat('%', #{placeIssueName}, '%')</if>
|
|
|
<if test="excellIssueName != null and excellIssueName != ''"> and excell_issue_name like concat('%', #{excellIssueName}, '%')</if>
|
|
|
<if test="questionType != null "> and question_type = #{questionType}</if>
|
|
|
+ <if test="subject != null and subject != ''"> and subject = #{subject}</if>
|
|
|
</where>
|
|
|
|
|
|
<if test="isRand!=null and isRand!=''"> order by rand() </if>
|
|
|
-
|
|
|
+ <if test="isRand==null or isRand==''"> order by ${sort} </if>
|
|
|
</select>
|
|
|
|
|
|
|
|
@@ -111,10 +111,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="issuemp3 != null and issuemp3 != ''"> and issuemp3 = #{issuemp3}</if>
|
|
|
<if test="answermp3 != null and answermp3 != ''"> and answermp3 = #{answermp3}</if>
|
|
|
<if test="explainjsmp3 != null and explainjsmp3 != ''"> and explainjsmp3 = #{explainjsmp3}</if>
|
|
|
- <if test="subject1 != null and subject1 != ''"> and subject_1 = #{subject1}</if>
|
|
|
- <if test="subject2 != null and subject2 != ''"> and subject_2 = #{subject2}</if>
|
|
|
- <if test="subject3 != null and subject3 != ''"> and subject_3 = #{subject3}</if>
|
|
|
- <if test="subject4 != null and subject4 != ''"> and subject_4 = #{subject4}</if>
|
|
|
<if test="liceCar != null and liceCar != ''"> and lice_car = #{liceCar}</if>
|
|
|
<if test="liceBus != null and liceBus != ''"> and lice_bus = #{liceBus}</if>
|
|
|
<if test="liceTruck != null and liceTruck != ''"> and lice_truck = #{liceTruck}</if>
|
|
@@ -131,7 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="classIssueName != null and classIssueName != ''"> and class_issue_name like concat('%', #{classIssueName}, '%')</if>
|
|
|
<if test="questionType != null "> and question_type = #{questionType}</if>
|
|
|
</where>
|
|
|
- limit 0,5
|
|
|
+ limit 0,50
|
|
|
</select>
|
|
|
|
|
|
|
|
@@ -154,10 +150,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
excell_issue
|
|
|
FROM question_info
|
|
|
<where>
|
|
|
- <if test="subject1 != null and subject1 != ''"> and subject_1 = #{subject1}</if>
|
|
|
- <if test="subject2 != null and subject2 != ''"> and subject_2 = #{subject2}</if>
|
|
|
- <if test="subject3 != null and subject3 != ''"> and subject_3 = #{subject3}</if>
|
|
|
- <if test="subject4 != null and subject4 != ''"> and subject_4 = #{subject4}</if>
|
|
|
+ <if test="subject != null and subject != ''"> and subject = #{subject}</if>
|
|
|
<if test="liceCar != null and liceCar != ''"> and lice_car = #{liceCar} </if>
|
|
|
<if test="liceBus != null and liceBus != ''"> and lice_bus = #{liceBus}</if>
|
|
|
<if test="liceTruck != null and liceTruck != ''"> and lice_truck = #{liceTruck}</if>
|
|
@@ -175,10 +168,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
place_issue
|
|
|
FROM question_info
|
|
|
<where>
|
|
|
- <if test="subject1 != null and subject1 != ''"> and subject_1 = #{subject1}</if>
|
|
|
- <if test="subject2 != null and subject2 != ''"> and subject_2 = #{subject2}</if>
|
|
|
- <if test="subject3 != null and subject3 != ''"> and subject_3 = #{subject3}</if>
|
|
|
- <if test="subject4 != null and subject4 != ''"> and subject_4 = #{subject4}</if>
|
|
|
+ <if test="subject != null and subject != ''"> and subject = #{subject}</if>
|
|
|
<if test="liceCar != null and liceCar != ''"> and lice_car = #{liceCar} </if>
|
|
|
<if test="liceBus != null and liceBus != ''"> and lice_bus = #{liceBus}</if>
|
|
|
<if test="liceTruck != null and liceTruck != ''"> and lice_truck = #{liceTruck}</if>
|
|
@@ -196,10 +186,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
class_issue
|
|
|
FROM question_info
|
|
|
<where>
|
|
|
- <if test="subject1 != null and subject1 != ''"> and subject_1 = #{subject1}</if>
|
|
|
- <if test="subject2 != null and subject2 != ''"> and subject_2 = #{subject2}</if>
|
|
|
- <if test="subject3 != null and subject3 != ''"> and subject_3 = #{subject3}</if>
|
|
|
- <if test="subject4 != null and subject4 != ''"> and subject_4 = #{subject4}</if>
|
|
|
+ <if test="subject != null and subject != ''"> and subject = #{subject}</if>
|
|
|
<if test="liceCar != null and liceCar != ''"> and lice_car = #{liceCar} </if>
|
|
|
<if test="liceBus != null and liceBus != ''"> and lice_bus = #{liceBus}</if>
|
|
|
<if test="liceTruck != null and liceTruck != ''"> and lice_truck = #{liceTruck}</if>
|
|
@@ -217,10 +204,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
seque_issue
|
|
|
FROM question_info
|
|
|
<where>
|
|
|
- <if test="subject1 != null and subject1 != ''"> and subject_1 = #{subject1}</if>
|
|
|
- <if test="subject2 != null and subject2 != ''"> and subject_2 = #{subject2}</if>
|
|
|
- <if test="subject3 != null and subject3 != ''"> and subject_3 = #{subject3}</if>
|
|
|
- <if test="subject4 != null and subject4 != ''"> and subject_4 = #{subject4}</if>
|
|
|
+ <if test="subject != null and subject != ''"> and subject = #{subject}</if>
|
|
|
<if test="liceCar != null and liceCar != ''"> and lice_car = #{liceCar} </if>
|
|
|
<if test="liceBus != null and liceBus != ''"> and lice_bus = #{liceBus}</if>
|
|
|
<if test="liceTruck != null and liceTruck != ''"> and lice_truck = #{liceTruck}</if>
|