瀏覽代碼

检索添加参数notTagType

zhoutg 6 年之前
父節點
當前提交
f0409585a3

+ 1 - 0
icssman-service/src/main/java/com/diagbot/facade/QuestionFacade.java

@@ -488,6 +488,7 @@ public class QuestionFacade extends QuestionInfoServiceImpl {
         paramMap.put("notIds", questionIndexVO.getNotIds());
         paramMap.put("tagType", questionIndexVO.getTagType());
         paramMap.put("existName", questionIndexVO.getExistName());
+        paramMap.put("notTagType", questionIndexVO.getNotTagType());
         return this.index(paramMap);
     }
 

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

@@ -21,4 +21,5 @@ public class QuestionIndexVO {
     private List<Integer> tagType;
     private List<Long> notIds;
     private String existName; //是否重复
+    private List<Integer> notTagType;
 }

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

@@ -74,6 +74,12 @@
                 #{tagType}
             </foreach>
         </if>
+        <if test="notTagType != null and notTagType.size() > 0">
+            and tag_type not in
+            <foreach  collection="notTagType" item="notTagType" open="("  separator=","  close=")">
+                #{notTagType}
+            </foreach>
+        </if>
         <if test="notIds != null and notIds.size() > 0 ">
             and id not in
             <foreach  collection="notIds" item="id" open="("  separator=","  close=")">