zhoutg 6 роки тому
батько
коміт
11a0bfe37c

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

@@ -31,7 +31,7 @@
     <select id="getByParam" parameterType="java.util.Map" resultMap="BaseResultMap">
         select * from icss_question_info  where is_deleted = 'N'
         and id = #{id}
-        <if test="sexType != null and sexType != ''">
+        <if test="sexType != null and sexType != 3 and sexType != ''">
             and sex_type in (3, #{sexType})
         </if>
         <if test="age != null and age != ''">

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

@@ -240,7 +240,7 @@
     <select id="getByParam" parameterType="java.util.Map" resultMap="BaseResultMap">
         select * from icss_question_info  where is_deleted = 'N'
         and id = #{id}
-        <if test="sexType != null and sexType != ''">
+        <if test="sexType != null and sexType != 3 and sexType != ''">
             and sex_type in (3, #{sexType})
         </if>
         <if test="age != null and age != ''">