UserOpenIdMapper.java 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package com.zd.message.mapper;
  2. import com.zd.message.domain.UserOpenId;
  3. import java.util.List;
  4. /**
  5. * 用户和微信openID对应表Mapper接口
  6. *
  7. * @author hanson
  8. */
  9. public interface UserOpenIdMapper
  10. {
  11. /**
  12. * 查询用户和微信openID对应表
  13. *
  14. * @param id 用户和微信openID对应表主键
  15. * @return 用户和微信openID对应表
  16. */
  17. UserOpenId selectUserOpenIdById(Long id);
  18. /**
  19. * 查询用户和微信openID对应表列表
  20. *
  21. * @param userOpenId 用户和微信openID对应表
  22. * @return 用户和微信openID对应表集合
  23. */
  24. List<UserOpenId> selectUserOpenIdList(UserOpenId userOpenId);
  25. /**
  26. * 根据主键集合查询用户和微信openID对应表列表
  27. *
  28. * @param ids 主键集合
  29. * @return 用户和微信openID对应表集合
  30. */
  31. List<UserOpenId> getListByIds(List<Long> ids);
  32. /**
  33. * 新增用户和微信openID对应表
  34. *
  35. * @param userOpenId 用户和微信openID对应表
  36. * @return 结果
  37. */
  38. int insertUserOpenId(UserOpenId userOpenId);
  39. /**
  40. * 修改用户和微信openID对应表
  41. *
  42. * @param userOpenId 用户和微信openID对应表
  43. * @return 结果
  44. */
  45. int updateUserOpenId(UserOpenId userOpenId);
  46. /**
  47. * 删除用户和微信openID对应表
  48. *
  49. * @param id 用户和微信openID对应表主键
  50. * @return 结果
  51. */
  52. int deleteUserOpenIdById(Long id);
  53. /**
  54. * 批量删除用户和微信openID对应表
  55. *
  56. * @param ids 需要删除的数据主键集合
  57. * @return 结果
  58. */
  59. int deleteUserOpenIdByIds(Long[] ids);
  60. /**
  61. * 根据用户ID查询openID
  62. * @param userId 用户ID
  63. * @return UserOpenId
  64. */
  65. UserOpenId getByUserId(Long userId);
  66. }