Kaynağa Gözat

性别过滤

zhoutg 6 yıl önce
ebeveyn
işleme
821b234182

+ 1 - 1
icss-service/src/main/resources/mapper/QuestionInfoMapper.xml

@@ -52,7 +52,7 @@
                 m.parent_question = #{myId}
             </foreach>
         </if>
-        <if test="sexType != null">
+        <if test="sexType != null and sexType != 3 and sexType != ''">
             and t.sex_type in (3, #{sexType})
         </if>
         <if test="age != null">

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

@@ -221,7 +221,7 @@
                 m.parent_question = #{myId}
             </foreach>
         </if>
-        <if test="sexType != null">
+        <if test="sexType != null and sexType != 3 and sexType != ''">
             and t.sex_type in (3, #{sexType})
         </if>
         <if test="age != null">