zhoutg 6 gadi atpakaļ
vecāks
revīzija
75477aa83d

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

@@ -444,7 +444,6 @@ public class QuestionInfoFacade extends QuestionInfoServiceImpl {
      */
     public List<QuestionInfo> indexFac(QuestionIndexVO questionIndexVO) {
         Map<String, Object> paramMap = new HashMap<>();
-        paramMap.put("isDeleted", IsDeleteEnum.N.getKey());
         paramMap.put("age", questionIndexVO.getAge());
         paramMap.put("sexType", questionIndexVO.getSexType());
         paramMap.put("tagName", questionIndexVO.getTagName());

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

@@ -18,6 +18,6 @@ public class QuestionIndexVO {
     private Integer age;
     private Integer type;
     private Integer controlType;
-    private String tagType;
+    private List<String> tagType;
     private List<Long> notIds;
 }

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

@@ -63,8 +63,11 @@
         <if test="controlType != null and controlType != ''">
             and control_type = #{controlType}
         </if>
-        <if test="tagType != null and tagType != ''">
-            and tag_type = #{tagType}
+        <if test="tagType != null and tagType.size() > 0">
+            and tag_type in
+            <foreach  collection="tagType" item="tagType" open="("  separator=","  close=")">
+                #{tagType}
+            </foreach>
         </if>
         <if test="notIds != null and notIds.size() > 0 ">
             and id not in