Browse Source

重复校验

zhoutg 6 years ago
parent
commit
8656524994

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

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

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

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

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

@@ -49,6 +49,9 @@
         <if test="tagName != null and tagName != ''">
             and tag_name like concat("%", #{tagName}, "%")
         </if>
+        <if test="existName != null and existName != ''">
+            and tag_name = #{existName}
+        </if>
         <if test="sexType != null and sexType != ''">
             and sex_type in (3, #{sexType})
         </if>