GroupRelationClearService.java 969 B

1234567891011121314151617181920212223242526272829303132
  1. package com.cyksj.service.relation;
  2. import com.cyksj.model.entity.GroupsRelation;
  3. import com.cyksj.model.entity.OrderDonTicketRecord;
  4. import com.cyksj.model.entity.UserTicketClearedRecord;
  5. /*
  6. *项目名: netflix
  7. *文件名: GroupRelationClearService
  8. *创建者: JavaZou
  9. *创建时间:2023/2/23 15:31
  10. */
  11. public interface GroupRelationClearService {
  12. /**
  13. * 清除车票
  14. */
  15. void clearTicket(GroupsRelation relation, UserTicketClearedRecord.Source source);
  16. /**
  17. * Clears one ticket as part of a frozen multi-quantity whole-order refund.
  18. * The caller supplies the already locked slot so ownership is checked once
  19. * without issuing a duplicate FOR UPDATE query. This method must be called
  20. * inside the same transaction that acquired that slot lock.
  21. */
  22. void clearRefundTicket(GroupsRelation relation, OrderDonTicketRecord refundingTicket);
  23. /**
  24. * 续费换车票,清理之前的车票
  25. */
  26. void clearRenewGroupRelation(GroupsRelation relation);
  27. }