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.
98 lines
2.8 KiB
98 lines
2.8 KiB
package com.epmet.dao;
|
|
|
|
import com.epmet.commons.mybatis.dao.BaseDao;
|
|
import com.epmet.dto.UserDTO;
|
|
import com.epmet.dto.UserHeadPhotoDTO;
|
|
import com.epmet.dto.UserWechatDTO;
|
|
import com.epmet.dto.form.UserInfoFormDTO;
|
|
import com.epmet.dto.form.WxLoginUserInfoFormDTO;
|
|
import com.epmet.dto.result.CertifiedResultDTO;
|
|
import com.epmet.dto.result.CustomerUser4PointResultDTO;
|
|
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);
|
|
|
|
/**
|
|
*
|
|
* @Description 根据userId查询头像
|
|
* @Author zxc
|
|
* @CreatedTime 2020/4/26 18:53
|
|
*/
|
|
List<UserHeadPhotoDTO> selectUserHeadPhotoByUserId(List<CertifiedResultDTO> certifiedResultDTOS);
|
|
|
|
/**
|
|
* @return com.epmet.entity.UserWechatEntity
|
|
* @param
|
|
* @author yinzuomei
|
|
* @description 查询已经授权的微信用户信息
|
|
* @Date 2020/7/22 10:46
|
|
**/
|
|
List<UserWechatDTO> selectAll();
|
|
|
|
/**
|
|
* @Description 查询人员信息,排序,包括陌生人与注册居民,没有注册居民则只有微信昵称
|
|
* @param userIds
|
|
* @return
|
|
* @author wangc
|
|
* @date 2020.07.27 00:58
|
|
**/
|
|
List<CustomerUser4PointResultDTO> selectResiAndStrangerInfo(@Param("userIds") List<String> userIds, @Param("realName")String realName);
|
|
|
|
//临时用下in
|
|
List<UserWechatDTO> selectNotInUserBaseInfoTemp();
|
|
|
|
/**
|
|
* @Description 根据app、uid查询用户是否存在
|
|
* @Param uid
|
|
* @Param app
|
|
* @author zxc
|
|
* @date 2021/1/19 上午10:42
|
|
*/
|
|
UserDTO selectUserDTOByUid(@Param("uid")String uid,@Param("app")String app);
|
|
|
|
/**
|
|
* @Description 修改user_weChat信息
|
|
* @Param formDTO
|
|
* @author zxc
|
|
* @date 2021/1/19 上午11:04
|
|
*/
|
|
int editByUserId(UserInfoFormDTO formDTO);
|
|
}
|
|
|