|
@@ -45,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="placeSort" column="place_sort" />
|
|
|
<result property="chapterId" column="chapter_id" />
|
|
|
<result property="diffDegree" column="diff_degree" />
|
|
|
+ <result property="isNew" column="is_new" />
|
|
|
|
|
|
|
|
|
</resultMap>
|
|
@@ -87,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="subject != null and subject != ''"> and subject = #{subject}</if>
|
|
|
<if test="chapterId != null and chapterId != ''"> and chapter_id = #{chapterId}</if>
|
|
|
<if test="diffDegree != null and diffDegree != ''"> and diff_degree = #{diffDegree}</if>
|
|
|
+ <if test="isNew != null and isNew != ''"> and is_new = #{isNew}</if>
|
|
|
</where>
|
|
|
|
|
|
<if test="isRand!=null and isRand!=''"> order by rand() </if>
|
|
@@ -128,6 +130,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="questionType != null "> and question_type = #{questionType}</if>
|
|
|
<if test="chapterId != null and chapterId != ''"> and chapter_id = #{chapterId}</if>
|
|
|
<if test="diffDegree != null and diffDegree != ''"> and diff_degree = #{diffDegree}</if>
|
|
|
+ <if test="isNew != null and isNew != ''"> and is_new = #{isNew}</if>
|
|
|
+
|
|
|
</where>
|
|
|
limit 0,50
|
|
|
</select>
|