package com.caimei.www.mapper; import com.caimei.www.pojo.order.ActivityPrice; import com.caimei.www.pojo.order.LadderPrice; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * Description * * @author : Charles * @date : 2020/7/28 */ @Mapper public interface CommonDao { /** * 根据商品ID查询活动价 * @return */ ActivityPrice getActivityPriceByProductId(Integer productId); /** * 根据商品ID查询阶梯价 * @return */ List getladderPricesByProductId(Integer productId); /** * 根据商品ID和用户ID 查询复购价 * @return */ Double getRepurchasePrice(@Param("productId") Integer productId, @Param("userId") Integer userId); }