From 2f737df6f8e482540a465445bdb003d98103db54 Mon Sep 17 00:00:00 2001 From: linzhijie <19970921lzj> Date: 星期一, 12 四月 2021 23:41:17 +0800 Subject: [PATCH] 第二次无注释的源码 --- src/main/resources/mybatis/exam/EntTestMemberMapper.xml | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mybatis/exam/EntTestMemberMapper.xml b/src/main/resources/mybatis/exam/EntTestMemberMapper.xml index 0a10334..bd7c75d 100644 --- a/src/main/resources/mybatis/exam/EntTestMemberMapper.xml +++ b/src/main/resources/mybatis/exam/EntTestMemberMapper.xml @@ -69,7 +69,11 @@ <if test="memberEmail != null and memberEmail != ''"> and m.member_email like concat('%', #{memberEmail}, '%')</if> <if test="memberPhone != null and memberPhone != ''"> and m.member_phone like concat('%', #{memberPhone}, '%')</if> <if test="testId != null "> and m.test_id = #{testId}</if> - <if test="status != null and status != ''"> and m.status = #{status}</if> + <if test="statusList != null "> and m.status in + <foreach item="status" collection="statusList" open="(" separator="," close=")"> + #{status} + </foreach> + </if> <if test="userId != null and userId != ''"> and u.user_id = #{userId}</if> </where> </select> -- Gitblit v1.9.1