|
@@ -41,6 +41,7 @@
|
|
<result property="excellSort" column="excell_sort" />
|
|
<result property="excellSort" column="excell_sort" />
|
|
<result property="sequeSort" column="seque_sort" />
|
|
<result property="sequeSort" column="seque_sort" />
|
|
<result property="placeSort" column="place_sort" />
|
|
<result property="placeSort" column="place_sort" />
|
|
|
|
+ <result property="isNew" column="is_new" />
|
|
|
|
|
|
|
|
|
|
</resultMap>
|
|
</resultMap>
|
|
@@ -81,6 +82,7 @@
|
|
<if test="excellIssueName != null and excellIssueName != ''"> and excell_issue_name like concat('%', #{excellIssueName}, '%')</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="questionType != null "> and question_type = #{questionType}</if>
|
|
<if test="subject != null and subject != ''"> and subject = #{subject}</if>
|
|
<if test="subject != null and subject != ''"> and subject = #{subject}</if>
|
|
|
|
+ <if test="isNew != null "> and is_new = #{isNew}</if>
|
|
</where>
|
|
</where>
|
|
|
|
|
|
<if test="isRand!=null and isRand!=''"> order by rand() </if>
|
|
<if test="isRand!=null and isRand!=''"> order by rand() </if>
|
|
@@ -120,6 +122,7 @@
|
|
<if test="excellIssueName != null and excellIssueName != ''"> and excell_issue_name like concat('%', #{excellIssueName}, '%')</if>
|
|
<if test="excellIssueName != null and excellIssueName != ''"> and excell_issue_name like concat('%', #{excellIssueName}, '%')</if>
|
|
<if test="classIssueName != null and classIssueName != ''"> and class_issue_name like concat('%', #{classIssueName}, '%')</if>
|
|
<if test="classIssueName != null and classIssueName != ''"> and class_issue_name like concat('%', #{classIssueName}, '%')</if>
|
|
<if test="questionType != null "> and question_type = #{questionType}</if>
|
|
<if test="questionType != null "> and question_type = #{questionType}</if>
|
|
|
|
+ <if test="isNew != null "> and is_new = #{isNew}</if>
|
|
</where>
|
|
</where>
|
|
limit 0,50
|
|
limit 0,50
|
|
</select>
|
|
</select>
|
|
@@ -150,6 +153,7 @@
|
|
<if test="liceBus != null and liceBus != ''"> and lice_bus = #{liceBus}</if>
|
|
<if test="liceBus != null and liceBus != ''"> and lice_bus = #{liceBus}</if>
|
|
<if test="liceTruck != null and liceTruck != ''"> and lice_truck = #{liceTruck}</if>
|
|
<if test="liceTruck != null and liceTruck != ''"> and lice_truck = #{liceTruck}</if>
|
|
<if test="liceMoto != null and liceMoto != ''"> and lice_moto = #{liceMoto}</if>
|
|
<if test="liceMoto != null and liceMoto != ''"> and lice_moto = #{liceMoto}</if>
|
|
|
|
+ <if test="isNew != null "> and is_new = #{isNew}</if>
|
|
</where>
|
|
</where>
|
|
ORDER BY
|
|
ORDER BY
|
|
excell_issue + 0 ASC
|
|
excell_issue + 0 ASC
|
|
@@ -381,4 +385,27 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+ <select id="selectQuestionWrongList" resultType="com.miaxis.question.domain.QuestionInfo">
|
|
|
|
+
|
|
|
|
+ select q1.* from question_info q1 join question_wrong q2 on q1.id = q2.question_id
|
|
|
|
+ <where>
|
|
|
|
+ <if test="userId != null and userId !='' "> and q2.user_id = #{userId}</if>
|
|
|
|
+ <if test="questionId != null and questionId != '' "> and q2.question_id = #{questionId}</if>
|
|
|
|
+ <if test="km != null and km!='' "> and q2.km = #{km}</if>
|
|
|
|
+ <if test="carType != null and carType !='' "> and q2.car_type = #{carType}</if>
|
|
|
|
+ </where>
|
|
|
|
+ order by q2.create_time
|
|
|
|
+
|
|
|
|
+ </select>
|
|
|
|
+ <select id="selectMiQuestionInfoList" parameterType="QuestionInfoMiDTO" resultType="com.miaxis.question.domain.QuestionInfo">
|
|
|
|
+ select * from
|
|
|
|
+ (select * from question_info t2 join
|
|
|
|
+ (SELECT substring_index(group_concat(t.id order by t.id desc ),',',1) maxid FROM question_info t GROUP BY t.id_ydt) t1 on t2.id = t1.maxid) t3
|
|
|
|
+ JOIN t_app_question_category tt ON t3.id_ydt = tt.question_id where tt.gs = #{gs} AND tt.kemu = #{kemu} and tt.category = #{category}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|