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.

45 lines
1.1 KiB

4 months ago
3 months ago
3 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
  1. package com.example.demo.mapper.coin;
  2. import com.example.demo.domain.entity.UserGoldRecord;
  3. import com.example.demo.domain.vo.coin.ConsumeUser;
  4. import com.example.demo.domain.vo.coin.Gold;
  5. import com.example.demo.domain.vo.coin.RefundUser;
  6. import org.apache.ibatis.annotations.Mapper;
  7. import java.util.List;
  8. /**
  9. * @program: gold-java
  10. * @ClassName ConsumeMapper
  11. * @description:
  12. * @author: Double
  13. * @create: 202506-23 13:45
  14. * @Version 1.0
  15. **/
  16. @Mapper
  17. public interface ConsumeMapper {
  18. //查找全部订单
  19. List<ConsumeUser> selectAll(ConsumeUser consumeUser);
  20. //查找经过筛选后的订单
  21. List<ConsumeUser> selectBy(ConsumeUser consumeUser);
  22. //添加消费订单
  23. void add(UserGoldRecord userGoldRecord);
  24. //添加退款订单
  25. void addRefund(UserGoldRecord userGoldRecord);
  26. //更新退款状态
  27. void updateIsRefund(String orderCode);
  28. //获得订单号
  29. List<ConsumeUser> selectOrderCodeByJwcode(RefundUser refundUser);
  30. void updateUserGold(UserGoldRecord userGoldRecord);
  31. Gold sumGold(ConsumeUser consumeUser);
  32. }