package cn.pluss.platform.mapper;

import cn.pluss.platform.vo.MerchantOrderVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 只做查询
 * @author djh
 * @see cn.pluss.platform.mapper.MerchantOrderMapper
 */
@Mapper
public interface MerchantOrderVOMapper extends BaseMapper<MerchantOrderVO> {

    /**
     * 查询线上店订单所有的优惠减免信息
     * @param orderNumber   订单号
     * @return
     */
    List<Map<String, Object>> getOnlineCouponList(@Param("orderNumber") String orderNumber);


    /**
     * 查询线下订单所有的优惠减免信息
     * @param orderNumber   订单号
     * @return
     */
    List<Map<String, Object>> getOfflineCouponList(@Param("orderNumber") String orderNumber);
}