| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- 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更新unionId
- * @author : 洪旭东
- * @date : 2024-02-20 14:12
- */
- int updateWxUnionid(@Param("userId") String userId, @Param("unionId") String unionId, @Param("publicOpenId") String publicOpenId);
- /**
- * @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 : 离职时候更新 用户的openid current_cp , "joined_cps" 缩减相应的cpid
- * @author : 姜永辉
- * @date : 2024-02-20 14:12
- */
- int updateClearOpenidFeign(@Param("userId") String userId, @Param("currentCp") Integer currentCp,@Param("joinedCps") List<Integer> joinedCps);
- /**
- * @desc : 选择公司更新微信用户的所在当前的公司
- * @author : 姜永辉
- * @date : 2024-02-20 14:12
- */
- int updateCurrentCpByWxid(@Param("userWxid") String userWxid, @Param("currentCp") Integer currentCp);
- /**
- * @desc : 通过ID查询
- * @author : 洪旭东
- * @date : 2024-02-18 15:21
- */
- UserLogin selectById(@Param("id") Integer id);
- /**
- * @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);
- /**
- * @desc : 通过商户号注销当前负责人
- * @author : 刘尧
- * @date : 2024/6/21 10:21
- */
- boolean updateFlgInit(Map<String, Object> company);
- /**
- * @desc : 通过用户id更新负责人
- * @author : 刘尧
- * @date : 2024/6/21 10:43
- */
- boolean updateFlgInitById(@Param("userId")String newHeadId);
- }
|