ILotService.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. package cn.hobbystocks.auc.service;
  2. import cn.hobbystocks.auc.domain.Auction;
  3. import cn.hobbystocks.auc.domain.Lot;
  4. import cn.hobbystocks.auc.domain.LotFans;
  5. import cn.hobbystocks.auc.domain.LotGroup;
  6. import cn.hobbystocks.auc.dto.LotExportDTO;
  7. import cn.hobbystocks.auc.handle.context.Live;
  8. import cn.hobbystocks.auc.request.LotQueryRequest;
  9. import cn.hobbystocks.auc.request.LotRequest;
  10. import cn.hobbystocks.auc.response.LotFansResponse;
  11. import cn.hobbystocks.auc.vo.LiveVO;
  12. import cn.hobbystocks.auc.vo.LotVO;
  13. import cn.hobbystocks.auc.vo.SelfVO;
  14. import com.baomidou.mybatisplus.extension.service.IService;
  15. import java.util.List;
  16. public interface ILotService extends IService<Lot> {
  17. Lot selectLotById(Long id);
  18. List<Lot> selectLotList(Lot lot);
  19. List<Lot> selectBiddingLotByAucId(Long aucId);
  20. /**
  21. * 根据拍品组id数组查询拍品列表
  22. * @param groupIds 拍品组id数组
  23. * @return 拍品列表
  24. */
  25. List<Lot> selectLotByGroupIds(Long[] groupIds);
  26. int insertLot(Lot lot);
  27. int updateLot(Lot lot);
  28. int updateLotView(Lot lot);
  29. int deleteLotByIds(String ids);
  30. int deleteLotById(Long id);
  31. void pubLots(Auction auction);
  32. void insertLotAndPub(Lot lot);
  33. void pubLot(Lot lot);
  34. void updateLotAndPub(Lot lot);
  35. void removeLot(Lot lot);
  36. void cancelLot(Lot lot);
  37. void live(Live live);
  38. List<Lot> live(Long auctionId);
  39. List<LiveVO> selfLive(SelfVO selfVO);
  40. List<LotVO> selfFinish(SelfVO selfVO);
  41. List<LotVO> selfWin(SelfVO selfVO);
  42. int updateLotEx(Lot lot);
  43. List<Lot> selectBidding();
  44. List<Lot> selectCancel();
  45. /**
  46. * 执行自动续期逻辑
  47. * @param id
  48. */
  49. void handleDelay(Long id);
  50. void dynamicTasks();
  51. void dynamicTask(Lot lot);
  52. int insertLotGroup(LotGroup lotGroup);
  53. LotGroup selectLotGroupById(Long id);
  54. List<LotGroup> selectLotGroupList(LotGroup lotGroup);
  55. int updateLotGroup(LotGroup lotGroup);
  56. int updateLotGroup0(LotGroup lotGroup);
  57. void cancelLotGroup(Long id);
  58. List<Lot> selectLotByGroupId(Long id);
  59. List<LotGroup> findPubbedLotGroupByIds(Long[] lotGroupIds,Long merchantId);
  60. Long party(LotGroup lotGroup);
  61. List<LotGroup> findStartingGroupByLotIds(Long[] lotIds);
  62. void handleEndLotGroup(LotGroup lotGroup, String status);
  63. List<LotGroup> canCreateLive(Long merchantId);
  64. void updateExpire(LotFans fans);
  65. void updateSoldAndPaid(LotFans fans, Long groupId);
  66. List<Lot> selectLotListByAucId(Long aucId);
  67. /**
  68. * 计算并更新拍品热度
  69. */
  70. void calculatorAndUpdateLotHot();
  71. List<Lot> selectBiddingLotList();
  72. /**
  73. * 资产-珍品搜索查询-根据分类查询拍品
  74. * @param request
  75. * @return
  76. */
  77. List<LotFansResponse> queryLotByCategory(LotQueryRequest request);
  78. /**
  79. * 导出拍品列表信息
  80. * @param request
  81. */
  82. List<LotExportDTO> exportLotList(LotRequest request);
  83. /**
  84. * 根据拍品id数组查询拍品列表
  85. * @param lotIds 拍品id数组
  86. * @return 拍品列表
  87. */
  88. List<Lot> selectLotListByLotIds(List<Long> lotIds);
  89. }