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.

49 lines
1.6 KiB

3 months ago
3 months ago
3 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.GoldDetail;
  5. import com.example.demo.domain.vo.coin.Result;
  6. import com.example.demo.domain.vo.coin.Total;
  7. import lombok.Data;
  8. import org.apache.ibatis.annotations.Mapper;
  9. import org.apache.ibatis.annotations.Param;
  10. import java.util.List;
  11. /**
  12. * @program: GOLD
  13. * @ClassName GoldDetailMapper
  14. * @description:
  15. * @author: huangqizhen
  16. * @create: 202506-23 13:47
  17. * @Version 1.0
  18. **/
  19. @Mapper
  20. public interface GoldDetailMapper {
  21. List<GoldDetail> getGoldDetail(GoldDetail goldDetail);
  22. List<GoldDetail> getGoldDetail1(@Param("pageNum") Integer pageNum,
  23. @Param("pageSize") Integer pageSize,
  24. @Param("goldDetail") GoldDetail goldDetail);
  25. Total getTotal(GoldDetail goldDetail);
  26. List<User> getGold(User user);
  27. Total GoldTotal(User user);
  28. //获取金币明细合计数
  29. Gold sumGold(@Param("goldDetail") GoldDetail goldDetail);
  30. //更新用户消费次数
  31. Result updateConsumeNum();
  32. @Data
  33. public static class ExportRecordIdHolder{
  34. private Long id;
  35. }
  36. void insertExportRecord(
  37. @Param("recordId") ExportRecordIdHolder recordId, // 用于接收主键
  38. @Param("account") Integer account,
  39. @Param("type") Integer type,
  40. @Param("state") Integer state,
  41. @Param("url") String url,
  42. @Param("fileName") String fileName,
  43. @Param("dataNum") Integer dataNum
  44. );
  45. }