yujian
2019-01-22 2366d2ada9e67f915a06b51b3c5be08a00847f0c
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>