Browse Source

添加类型过滤

zhoutg 6 years ago
parent
commit
8364870c80

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

@@ -18,4 +18,5 @@ public class QuestionPageVO extends Page {
     private String type;
     private String tagName;
     private List<Integer> tagTypeList;
+    private List<Integer> controlTypeList;
 }

+ 6 - 0
icssman-service/src/main/resources/mapper/QuestionInfoMapper.xml

@@ -174,6 +174,12 @@
                 #{tagType}
             </foreach>
         </if>
+        <if test="controlTypeList != null and controlTypeList.size() > 0 ">
+            and a.control_type in
+            <foreach  collection="controlTypeList" item="controlType" open="("  separator=","  close=")">
+                #{controlType}
+            </foreach>
+        </if>
         order by a.gmt_modified desc
 
     </select>