123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- package com.caimei365.user.mapper;
- import com.caimei365.user.model.po.OperationPo;
- import com.caimei365.user.model.vo.ServiceProviderVo;
- import com.caimei365.user.model.vo.UserLoginVo;
- import org.apache.ibatis.annotations.Mapper;
- import org.apache.ibatis.annotations.Param;
- /**
- * Description
- *
- * @author : Charles
- * @date : 2021/3/5
- */
- @Mapper
- public interface LoginMapper {
- /**
- * 根据用户id获取用户
- *
- * @param userId 手机号
- * @return baseuser
- */
- UserLoginVo getLoginUserByUserId(@Param("userId") Integer userId);
- /**
- * 根据手机号或邮箱获取用户
- *
- * @param mobileOrEmail 手机号/邮箱
- * @return BaseUser
- */
- UserLoginVo getLoginUserByMobileOrEmail(@Param("mobileOrEmail") String mobileOrEmail);
- /**
- * 根据手机号获取用户
- *
- * @param mobile 手机号/邮箱
- * @return BaseUser
- */
- UserLoginVo getLoginUserByMobile(@Param("mobile") String mobile);
- /**
- * 根据手机号获取运营人员
- *
- * @param mobile 手机号
- * @return BaseUser
- */
- OperationPo getOperationByMobile(@Param("mobile") String mobile);
- /**
- * 根据openId获取协销
- * @param openId openId
- * @return BaseUser
- */
- UserLoginVo getServiceProviderUserByOpenId(@Param("openId") String openId);
- /**
- * 根据用户ID更新协销unionId
- * @param userId
- * @param unionId
- */
- void updateServiceProviderUnionId(@Param("userId") Integer userId, @Param("unionId") String unionId);
- /**
- * 根据userId获取协销
- * @param userId
- * @return
- */
- ServiceProviderVo getServiceProviderByUserId(Integer userId);
- /**
- * 根据unionId获取运营人员
- * @param unionId unionId
- * @param source
- * @return BaseUser
- */
- UserLoginVo getLoginUserByUnionId(@Param("unionId") String unionId, @Param("source") String source);
- /**
- * 根据openId获取运营人员
- * @param openId
- * @param source
- * @return
- */
- UserLoginVo getLoginUserByOpenId(@Param("openId") String openId, @Param("source") String source);
- /**
- * 根据邀请码获取运营人员
- * @param invitationCode
- * @return
- */
- UserLoginVo getOperationUserByInvitationCode(String invitationCode);
- /**
- * 根据Id获取运营人员用户信息(关联user)
- * @param operationId 用户Id
- * @return
- */
- UserLoginVo getOperationUserByOperationId(Integer operationId);
- /**
- * 根据用户ID更新运营人员openId
- * @param userId
- * @param openId
- */
- void updateOperationOpenId(@Param("userId") Integer userId, @Param("openId") String openId);
- /**
- * 根据用户ID更新运营人员unionId
- * @param userId
- * @param unionId
- */
- void updateOperationUnionId(@Param("userId") Integer userId, @Param("unionId") String unionId);
- /**
- * 根据openId获取用户Id
- * @param openId
- * @param source
- * @return
- */
- Integer getUserIdByOpenId(@Param("openId") String openId, @Param("source") String source);
- /**
- * 邀请码登录更新运营人员信息
- * @param operationPo 运营人员信息
- */
- void updateOperationByInvitation(OperationPo operationPo);
- /**
- * 解绑更新运营人员信息
- * @param operation 运营人员信息
- */
- void updateOperationByUnbind(OperationPo operation);
- /**
- * 根据机构名称获取机构数量
- *
- * @param clubName 机构名称
- * @return Integer
- */
- Integer getClubCountByClubName(String clubName);
- /**
- * 获取最大的用户Id
- * @return
- */
- Integer getMaxClubId();
- /**
- * 获取最大的机构Id
- * @return
- */
- Integer getMaxUserId();
- }
|