fanli/src/main/java/com/yeshi/fanli/mapping/UserInfoMapper.xml
@@ -489,4 +489,12 @@ GROUP BY FROM_UNIXTIME(u.`createtime`/1000,'%Y-%m-%d') ORDER BY u.`createtime` </select> <select id="getInfoByPhoneOrInviteCode" resultMap="BaseResultMap"> SELECT * FROM yeshi_ec_user u LEFT JOIN yeshi_ec_user_info_extra uf ON uf.`uie_uid` = u.`id` WHERE uf.`uie_invite_code` IS NOT NULL AND (u.`phone` =#{phone} OR uf.`uie_invite_code` = #{inviteCode}) LIMIT 1 </select> </mapper>