package cn.pluss.platform.mapper;

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

public interface MercOrderExpressMapper extends BaseMapper<MercOrderExpress> {

    @Select("SELECT * FROM tb_pluss_merc_order_express WHERE orderNo = #{orderNo} ")
    MercOrderExpressVO getByOrderNo(String orderNo);

    @Select("SELECT * FROM tb_pluss_merc_order_express WHERE logistNo = #{logistNo} ")
    MercOrderExpress getByLogistNo(String logistNo);

    @Select("SELECT * FROM tb_pluss_merc_order_express WHERE expressNo = #{expressNo} ")
    MercOrderExpressVO getByExpressNo(String expressNo);
}
