You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

48 lines
1.3 KiB

package com.epmet.dao;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.dto.UserDTO;
import com.epmet.dto.UserWechatDTO;
import com.epmet.dto.form.WxLoginUserInfoFormDTO;
import com.epmet.entity.UserWechatEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @Description 用户-微信关系DAO
* @IntefaceName UserWechatDao
* @Author wangc
* @date 2020.03.28 14:45
*/
@Mapper
public interface UserWechatDao extends BaseDao<UserWechatEntity>{
/**
* @Description 根据userId更新 用户-微信关系表里的属性
* @Param userWechatDTO
* @return int
* @Author wangc
* @Date 2020.03.28 16:25
**/
int updateByUserId(UserWechatDTO userWechatDTO);
/**
* @return com.epmet.dto.UserDTO
* @param formDTO
* @Author yinzuomei
* @Description 根据app、openId查询用户是否存在
* @Date 2020/3/30 13:06
**/
UserDTO selectUserDTOByOpenId(WxLoginUserInfoFormDTO formDTO);
/**
* @Description 根据userId查询用户微信登录时的信息
* @Param userId
* @return List<UserWechatEntity>
* @Author wangc
* @Date 2020.03.30 17:25
**/
List<UserWechatEntity> selectByUserId(@Param("userId")String userId);
}