From 8b09fbc19a96b57bf1d0e4d7c79b51a76aeca554 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期五, 28 三月 2025 19:57:56 +0800 Subject: [PATCH] 修改bug --- UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserInfoMapper.xml | 116 ++++++++++++---------------------------------------------- 1 files changed, 24 insertions(+), 92 deletions(-) diff --git a/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserInfoMapper.xml b/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserInfoMapper.xml index 9fa6a83..9b33913 100644 --- a/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserInfoMapper.xml +++ b/UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/UserInfoMapper.xml @@ -9,6 +9,7 @@ <result column="registIp" property="registIp"/> <result column="registAreaCode" property="registAreaCode"/> <result column="phone" property="phone"/> + <result column="email" property="email"/> <result column="nickName" property="nickName"/> <result column="avatar" property="avatar"/> <result column="birthday" property="birthday"/> @@ -16,7 +17,8 @@ <result column="emergencyContact" property="emergencyContact"/> <result column="emergencyContactNumber" property="emergencyContactNumber"/> <result column="isAuth" property="isAuth"/> - <result column="name" property="name"/> + <result column="lastName" property="lastName"/> + <result column="firstName" property="firstName"/> <result column="idCard" property="idCard"/> <result column="idCardFront" property="idCardFront"/> <result column="idCardReverse" property="idCardReverse"/> @@ -24,6 +26,7 @@ <result column="balance" property="balance"/> <result column="integral" property="integral"/> <result column="passWord" property="passWord"/> + <result column="faceBookId" property="faceBookId"/> <result column="openId" property="openId"/> <result column="appletsOpenId" property="appletsOpenId"/> <result column="unionid" property="unionid"/> @@ -36,6 +39,7 @@ <result column="updateUser" property="updateUser"/> <result column="uid" property="uid"/> <result column="uType" property="uType"/> + <result column="language" property="language"/> </resultMap> <select id="queryFreeMOney" resultType="Double"> @@ -43,70 +47,20 @@ </select> <select id="queryByPhone" resultType="UserInfo"> - select - id as id, - registIp as registIp, - registAreaCode as registAreaCode, - phone as phone, - nickName as nickName, - avatar as avatar, - birthday as birthday, - sex as sex, - emergencyContact as emergencyContact, - emergencyContactNumber as emergencyContactNumber, - isAuth as isAuth, - name as name, - idCard as idCard, - idCardFront as idCardFront, - idCardReverse as idCardReverse, - consumption as consumption, - balance as balance, - integral as integral, - passWord as passWord, - openId as openId, - appletsOpenId as appletsOpenId, - unionid as unionid, - state as state, - flag as flag, - insertTime as insertTime, - insertUser as insertUser, - updateTime as updateTime, - updateUser as updateUser + select * from t_user where flag != 3 and phone = #{phone} + </select> + + + <select id="queryByEmail" resultType="UserInfo"> + select * + from t_user where flag != 3 and email = #{email} </select> <select id="queryByOpenid" resultType="UserInfo"> - select - id as id, - registIp as registIp, - registAreaCode as registAreaCode, - phone as phone, - nickName as nickName, - avatar as avatar, - birthday as birthday, - sex as sex, - emergencyContact as emergencyContact, - emergencyContactNumber as emergencyContactNumber, - isAuth as isAuth, - name as name, - idCard as idCard, - idCardFront as idCardFront, - idCardReverse as idCardReverse, - consumption as consumption, - balance as balance, - integral as integral, - passWord as passWord, - openId as openId, - appletsOpenId as appletsOpenId, - unionid as unionid, - state as state, - flag as flag, - insertTime as insertTime, - insertUser as insertUser, - updateTime as updateTime, - updateUser as updateUser + select * from t_user where flag != 3 <if test="null != openid"> and openId = #{openid} @@ -115,35 +69,7 @@ <select id="queryByOpenid2" resultType="UserInfo"> - select - id as id, - registIp as registIp, - registAreaCode as registAreaCode, - phone as phone, - nickName as nickName, - avatar as avatar, - birthday as birthday, - sex as sex, - emergencyContact as emergencyContact, - emergencyContactNumber as emergencyContactNumber, - isAuth as isAuth, - name as name, - idCard as idCard, - idCardFront as idCardFront, - idCardReverse as idCardReverse, - consumption as consumption, - balance as balance, - integral as integral, - passWord as passWord, - openId as openId, - appletsOpenId as appletsOpenId, - unionid as unionid, - state as state, - flag as flag, - insertTime as insertTime, - insertUser as insertUser, - updateTime as updateTime, - updateUser as updateUser + select * from t_user where flag != 3 <if test="null != openid"> and appletsOpenId = #{openid} @@ -154,18 +80,22 @@ <select id="queryUserInfo" resultType="map"> select a.id as id, + a.phoneOperator as phoneOperator, a.phone as phone, + a.email as email, + a.lastName as lastName, + a.firstName as firstName, a.nickName as nickName, a.avatar as avatar, DATE_FORMAT(a.birthday, '%Y-%m-%d') as birthday, a.sex as sex, a.isAuth as isAuth, (select state from t_verified where userId = a.id order by insertTime desc limit 0,1) as verified, - a.name as name, a.integral as integral, a.emergencyContact as emergencyContact, a.emergencyContactNumber as emergencyContactNumber, - a.balance as balance + a.balance as balance, + a.language from t_user a where 1 = 1 <if test="null != uid"> and a.id = #{uid} @@ -185,7 +115,8 @@ select id as id, userId as userId, - name as name, + lastName as lastName, + firstName as firstName, idcode as idcode, img1 as img1, img2 as img2, @@ -196,8 +127,9 @@ <select id="queryMyInviteUserList" resultType="map"> select id as id, + phoneOperator as phoneOperator, phone as phone, - IFNULL(name,nickName) as name, + IFNULL(lastName,nickName) as name, avatar as avatar, DATE_FORMAT(insertTime,'%Y/%m/%d %H:%i') as insertTime from t_user -- Gitblit v1.7.1