LotMapper.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. package cn.hobbystocks.auc.mapper;
  2. import cn.hobbystocks.auc.domain.Lot;
  3. import cn.hobbystocks.auc.domain.LotGroup;
  4. import cn.hobbystocks.auc.vo.LotVO;
  5. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  6. import com.baomidou.mybatisplus.core.metadata.IPage;
  7. import org.apache.ibatis.annotations.Param;
  8. import java.util.List;
  9. public interface LotMapper extends BaseMapper<Lot> {
  10. Lot selectLotById(Long id);
  11. List<Lot> selectLotByAucId(Long id);
  12. List<Lot> selectLotList(IPage<Lot> page,@Param("lot") Lot lot);
  13. List<Lot> selectLotByGroupIds(@Param("lotGroupIds") Long[] lotGroupIds);
  14. int insertLot(Lot lot);
  15. int updateLot(Lot lot);
  16. int deleteLotById(Long id);
  17. int deleteLotByIds(Long[] ids);
  18. int updateLotEx(Lot lot);
  19. List<Lot> selectBidding();
  20. List<Lot> selectByLiveIdAndInStatus(@Param("liveId") Long liveId, @Param("statusList") List<String> statusList);
  21. List<Lot> selectCancel();
  22. int updateLotView(Lot lot);
  23. List<Lot> dynamicLot();
  24. int insertLotClone(Lot update);
  25. List<Lot> selectLotFinishOrWin(@Param("win") Integer win, @Param("userId") String userId);
  26. List<Lot> selectLotByGroupId(Long groupId);
  27. void updatePay(@Param("lotId") Long lotId, @Param("paid") Integer paid);
  28. /**
  29. * 查询拍卖会下未结束的拍卖
  30. * @param auctionId
  31. * @return
  32. */
  33. List<Lot> selectNotEndLotList(Long auctionId);
  34. List<Lot> selectBiddingLotList();
  35. List<Lot> queryLotListByCategory(Lot lot);
  36. }