小么熊🐻 3 жил өмнө
parent
commit
675ffac8cc

+ 1 - 2
twzd-service/src/main/resources/mapper/score/ScoreInfoMapper.xml

@@ -77,8 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="areaName != null and areaName != ''"> and u.area_name like concat('%', #{areaName}, '%')</if>
             <if test="schoolName != null and schoolName != ''"> and u.school_name like concat('%', #{schoolName}, '%')</if>
             <if test="nickName != null and nickName != ''"> and u.nick_name like concat('%', #{nickName}, '%')</if>
-            <if test="nickName != null and nickName != ''"> and u.nick_name like concat('%', #{nickName}, '%')</if>
-            <if test="type != null and type != ''"> and u.type like concat('%', #{type}, '%')</if>
+            <if test="type != null and type != ''"> and u.type = #{type} </if>
         </where>
         order by user_id,create_time desc
     </select>