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.

64 lines
1.6 KiB

10 months ago
9 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
  1. package com.example.demo.mapper.coin;
  2. import com.example.demo.domain.entity.User;
  3. import com.example.demo.domain.vo.coin.Gold;
  4. import com.example.demo.domain.vo.coin.GoldUser;
  5. import org.apache.ibatis.annotations.Mapper;
  6. import org.apache.ibatis.annotations.Param;
  7. import java.util.Date;
  8. import java.util.List;
  9. /**
  10. * @program: gold-java
  11. * @ClassName UserMapper
  12. * @description:
  13. * @author: Double
  14. * @create: 202506-25 10:40
  15. * @Version 1.0
  16. **/
  17. @Mapper
  18. public interface UserMapper {
  19. //获取用户金币信息
  20. GoldUser selectUser(String jwcode);
  21. // 检查用户是否存在
  22. int checkUserExists(String jwcode);
  23. // 获取用户市场信息
  24. String getUserMarket(String jwcode);
  25. //获取用户金币信息
  26. GoldUser selectUserCard(@Param("jwcode")String jwcode,@Param("markets")List<String> markets);
  27. //获取金币数
  28. GoldUser selectGold(String jwcode);
  29. //更新金币数
  30. void updateGold(User user);
  31. //查找用户全部信息
  32. User selectAllUser(String jwcode);
  33. User selectUserMarket(String jwcode);
  34. //查找用户的首充日期
  35. Date getFirstRecharge(String jwcode);
  36. //获取用户表全部jwcode
  37. List<Integer> getAllJwcode();
  38. //获取某用户最早的充值订单
  39. Date getEarliestRecharge(Integer jwcode);
  40. //更新用户首充日期
  41. void updateFirstRecharge(@Param("jwcode") Integer jwcode,
  42. @Param("firstRecharge") Date firstRecharge);
  43. void updateAllGold(User user);
  44. void addUser(User user);
  45. //根据精网号查询用户
  46. User selectUserByJwcode(Integer jwcode);
  47. }