package cn.pluss.platform.mapper;

import cn.pluss.platform.entity.MercOrderExpressDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 商户订单物流详情 Mapper 接口
 * </p>
 *
 * @author crystal
 * @since 2022-03-24
 */
public interface MercOrderExpressDetailMapper extends BaseMapper<MercOrderExpressDetail> {

    @Select("SELECT * FROM tb_pluss_merc_order_express_detail where orderNo = #{orderNo} order by id desc ")
    List<MercOrderExpressDetail> getByOrderNo(String orderNo);

    @Select("SELECT * FROM tb_pluss_merc_order_express_detail where expressNo = #{expressNo} order by id desc ")
    List<MercOrderExpressDetail> getByExpressNo(String expressNo);

}
