UserWalletMapper.java 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package com.ruoyi.system.mapper;
  2. import java.math.BigDecimal;
  3. import java.util.List;
  4. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  5. import com.ruoyi.system.domain.UserWallet;
  6. import org.apache.ibatis.annotations.Param;
  7. /**
  8. * 用户钱包 Mapper接口
  9. *
  10. * @author ruoyi
  11. * @date 2025-05-29
  12. */
  13. public interface UserWalletMapper extends BaseMapper<UserWallet>
  14. {
  15. /**
  16. * 查询【请填写功能名称】
  17. *
  18. * @param id 【请填写功能名称】主键
  19. * @return 【请填写功能名称】
  20. */
  21. public UserWallet selectUserWalletById(Long id);
  22. /**
  23. * 查询【请填写功能名称】列表
  24. *
  25. * @param userWallet 【请填写功能名称】
  26. * @return 【请填写功能名称】集合
  27. */
  28. public List<UserWallet> selectUserWalletList(UserWallet userWallet);
  29. /**
  30. * 新增【请填写功能名称】
  31. *
  32. * @param userWallet 【请填写功能名称】
  33. * @return 结果
  34. */
  35. public int insertUserWallet(UserWallet userWallet);
  36. /**
  37. * 修改【请填写功能名称】
  38. *
  39. * @param userWallet 【请填写功能名称】
  40. * @return 结果
  41. */
  42. public int updateUserWallet(UserWallet userWallet);
  43. public int updateUserWalletWithLock(@Param("id") Long id, @Param("version") int version, @Param("pointsWallet") BigDecimal pointsWallet, @Param("balanceWallet") BigDecimal balanceWallet);
  44. /**
  45. * 删除【请填写功能名称】
  46. *
  47. * @param id 【请填写功能名称】主键
  48. * @return 结果
  49. */
  50. public int deleteUserWalletById(Long id);
  51. /**
  52. * 批量删除【请填写功能名称】
  53. *
  54. * @param ids 需要删除的数据主键集合
  55. * @return 结果
  56. */
  57. public int deleteUserWalletByIds(Long[] ids);
  58. }