CommonDao.java 803 B

1234567891011121314151617181920212223242526272829303132333435
  1. package com.caimei.www.mapper;
  2. import com.caimei.www.pojo.order.ActivityPrice;
  3. import com.caimei.www.pojo.order.LadderPrice;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.util.List;
  7. /**
  8. * Description
  9. *
  10. * @author : Charles
  11. * @date : 2020/7/28
  12. */
  13. @Mapper
  14. public interface CommonDao {
  15. /**
  16. * 根据商品ID查询活动价
  17. * @return
  18. */
  19. ActivityPrice getActivityPriceByProductId(Integer productId);
  20. /**
  21. * 根据商品ID查询阶梯价
  22. * @return
  23. */
  24. List<LadderPrice> getladderPricesByProductId(Integer productId);
  25. /**
  26. * 根据商品ID和用户ID 查询复购价
  27. * @return
  28. */
  29. Double getRepurchasePrice(@Param("productId") Integer productId, @Param("userId") Integer userId);
  30. }