|
@@ -100,14 +100,16 @@
|
|
|
|
|
|
|
|
|
<select id="getList" resultType="com.diagbot.dto.QuestionPageDTO">
|
|
|
- SELECT a.* FROM `icss_question_info` a WHERE
|
|
|
- a.is_deleted = 'N'
|
|
|
- <if test="type != null and type != ''">
|
|
|
+ SELECT a.* FROM `icss_question_info` a WHERE a.is_deleted = 'N'
|
|
|
+ <if test="type != null">
|
|
|
AND a.type = #{type}
|
|
|
</if>
|
|
|
<if test="tagName != null and tagName != ''">
|
|
|
AND a.name like concat ('%', #{tagName}, '%')
|
|
|
</if>
|
|
|
+ <if test="tagType != null and tagType != ''">
|
|
|
+ AND a.tag_type = #{tagType}
|
|
|
+ </if>
|
|
|
order by a.gmt_create desc
|
|
|
|
|
|
</select>
|