| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- package com.dk.oauth.mapper;
- import com.baomidou.mybatisplus.core.mapper.BaseMapper;
- import com.dk.oauth.entity.Company;
- import com.dk.oauth.entity.UserLogin;
- import com.dk.oauth.entity.UserWxLogin;
- import org.apache.ibatis.annotations.Param;
- import java.util.List;
- import java.util.Map;
- /**
- * @author : 洪旭东
- * @desc : UserMapper
- * @date : 2024-02-18 13:24
- */
- public interface UserMapper extends BaseMapper<UserLogin> {
- /**
- * @desc : 通过手机号查询
- * @author : 洪旭东
- * @date : 2024-02-18 15:21
- */
- UserLogin getByPhone(@Param("userPhone") String userPhone);
- /**
- * @desc : 通过微信ID查询
- * @author : 洪旭东
- * @date : 2024-02-20 10:39
- */
- UserLogin getByWxid(@Param("userWxid") String userWxid);
- /**
- * @desc : 注册用户
- * // TODO: 洪旭东 2024-02-20 密码暂时默认123
- * @author : 洪旭东
- * @date : 2024-02-20 13:19
- */
- int insert(UserWxLogin userWxLogin);
- /**
- * @desc : 通过手机号清空手机号
- * @author : 洪旭东
- * @date : 2024-02-20 14:12
- */
- int cleanPhone(@Param("userPhone") String userPhone);
- /**
- * @desc : 通过id更新微信号
- * @author : 洪旭东
- * @date : 2024-02-20 14:12
- */
- int updateWxid(@Param("userId") String userId, @Param("userWxid") String userWxid);
- /**
- * @desc : 通过id更新手机号
- * @author : 洪旭东
- * @date : 2024-02-20 14:12
- */
- int updatePhone(@Param("userId") String userId, @Param("userPhone") String userPhone);
- /**
- * @desc : 更新微信用的公司
- * @author : 姜永辉
- * @date : 2024-02-20 14:12
- */
- int updateCpid(@Param("userId") String userId, @Param("currentCp") Integer currentCp,@Param("joinedCps") List<Integer> joinedCps);
- /**
- * @desc : 通过ID查询
- * @author : 洪旭东
- * @date : 2024-02-18 15:21
- */
- UserLogin selectById(@Param("cpId") Integer cpId);
- /**
- * @desc : 插入用户状态
- * @author : 周兴
- * @date : 2024-03-14 14:12
- */
- int insertOrUpdateUserLogin(UserLogin userLogin);
- /**
- * @desc : 获取用户状态
- * @author : 周兴
- * @date : 2023/2/7 14:45
- */
- Map<String, Object> selectUserLogin(@Param("userId") String userId,String appCode);
- }
|