IInvoiceService.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package com.fdkankan.ucenter.service;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.fdkankan.ucenter.common.PageInfo;
  4. import com.fdkankan.ucenter.common.Result;
  5. import com.fdkankan.ucenter.entity.Invoice;
  6. import com.baomidou.mybatisplus.extension.service.IService;
  7. import com.fdkankan.ucenter.vo.request.InvoiceParam;
  8. import com.fdkankan.ucenter.vo.request.PlaceOrderParam;
  9. import java.math.BigDecimal;
  10. /**
  11. * <p>
  12. * 发票表 服务类
  13. * </p>
  14. *
  15. * @author
  16. * @since 2022-07-13
  17. */
  18. public interface IInvoiceService extends IService<Invoice> {
  19. Invoice getByOrderId(Long orderId);
  20. Invoice getByIncrementOrderId(Long incrementOrderId);
  21. Invoice getByDownId(Long downId);
  22. void saveByOrder(Long userId, PlaceOrderParam param);
  23. Invoice openInvoice(InvoiceParam param, String token);
  24. void checkInvoice(Long orderId, Integer consumeType);
  25. BigDecimal getMoney(Long orderId, Integer consumeType);
  26. JSONObject getMaxInvoice(InvoiceParam param);
  27. PageInfo getInvoices(String token, InvoiceParam param);
  28. Invoice getMyInvoiceInfo(String token, InvoiceParam param);
  29. void saveInvoice(String token, InvoiceParam param);
  30. void addInvoice(String token, InvoiceParam param);
  31. void updateInvoice(String token, InvoiceParam param);
  32. }