|
@@ -2,7 +2,7 @@
|
|
|
<!DOCTYPE mapper
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
-<mapper namespace="com.miaxis.qustion.mapper.QuestionInfoMapper">
|
|
|
+<mapper namespace="com.miaxis.question.mapper.QuestionInfoMapper">
|
|
|
|
|
|
<resultMap type="QuestionInfo" id="QuestionInfoResult">
|
|
|
<result property="id" column="id" />
|
|
@@ -84,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sequeIssueName != null and sequeIssueName != ''"> and seque_issue_name like concat('%', #{sequeIssueName}, '%')</if>
|
|
|
<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="classIssueName != null and classIssueName != ''"> and class_issue_name like concat('%', #{classIssueName}, '%')</if>
|
|
|
+ <if test="questionType != null "> and question_type = #{questionType}</if>
|
|
|
</where>
|
|
|
|
|
|
<if test="isRand!=null and isRand!=''"> order by rand() </if>
|
|
@@ -129,6 +129,7 @@ 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="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
|
|
|
</select>
|
|
@@ -147,7 +148,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectJxQuestionInfo" resultType="com.miaxis.qustion.vo.QuestionInfoJxVO">
|
|
|
+ <select id="selectJxQuestionInfo" resultType="com.miaxis.question.vo.QuestionInfoJxVO">
|
|
|
SELECT
|
|
|
DISTINCT case WHEN excell_issue_name is null then '地方专题' else excell_issue_name end as "excell_issue_name",
|
|
|
excell_issue
|
|
@@ -167,7 +168,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <select id="selectDfQuestionInfo" resultType="com.miaxis.qustion.vo.QuestionInfoDfVO">
|
|
|
+ <select id="selectDfQuestionInfo" resultType="com.miaxis.question.vo.QuestionInfoDfVO">
|
|
|
SELECT
|
|
|
DISTINCT
|
|
|
case WHEN place_issue_name is null then '地方专题' else place_issue_name end as "place_issue_name",
|
|
@@ -188,7 +189,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <select id="selectFlQuestionInfo" resultType="com.miaxis.qustion.vo.QuestionInfoFlVO">
|
|
|
+ <select id="selectFlQuestionInfo" resultType="com.miaxis.question.vo.QuestionInfoFlVO">
|
|
|
SELECT
|
|
|
DISTINCT
|
|
|
case WHEN class_issue_name is null then '地方专题' else class_issue_name end as "class_issue_name",
|