package cn.pluss.platform.mapper;

import cn.pluss.platform.entity.MercOrderNew;
import cn.pluss.platform.vo.MercOrderNewVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 新的订单表 Mapper 接口
 * </p>
 *
 * @author Djh
 * @since 2022-03-17
 */
public interface MercOrderNewMapper extends BaseMapper<MercOrderNew> {

    /**
     * 设备订单分页查询
     * @param condition
     * @return
     */
    Page<MercOrderNewVO> pageInfo(Page<MercOrderNewVO> page, @Param("condition")MercOrderNewVO condition);

    @Select("SELECT * FROM tb_pluss_merc_order_new WHERE orderNo = #{orderNumber}")
    MercOrderNew getOrderByNo(String orderNumber);
}
