From a8fb0a175ff61c82819e7da191030c2f5e90ae98 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Wed, 18 Aug 2021 17:10:22 +0800 Subject: [PATCH] 20210818 --- gc-user/src/main/resources/mapper/user/AccountMapper.xml | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/gc-user/src/main/resources/mapper/user/AccountMapper.xml b/gc-user/src/main/resources/mapper/user/AccountMapper.xml index 4e5c053..a417c05 100644 --- a/gc-user/src/main/resources/mapper/user/AccountMapper.xml +++ b/gc-user/src/main/resources/mapper/user/AccountMapper.xml @@ -549,9 +549,14 @@ <select id="selectAccountInfoByIds" resultType="com.xzx.gc.entity.AccountInfo"> select * from xzx_account_info - where id in + where account_id in <foreach collection="list" index="index" item="id" separator="," open="(" close=")"> #{id} </foreach> </select> + + <select id="selectAccountInfoByPhone" resultType="com.xzx.gc.entity.AccountInfo"> + select a.* from xzx_account_info a, xzx_user_info b + where a.user_id=b.user_id and b.mobile_phone=#{phone} + </select> </mapper> -- Gitblit v1.9.1