Browse Source

组合标签的类型搜索

zhoutg 6 years ago
parent
commit
22e6a5d548

+ 1 - 0
icssman-service/src/main/java/com/diagbot/vo/QuestionPageVO.java

@@ -15,4 +15,5 @@ public class QuestionPageVO extends Page {
 
     private String type;
     private String tagName;
+    private String tagType;
 }

+ 5 - 3
icssman-service/src/main/resources/mapper/QuestionInfoMapper.xml

@@ -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>