package com.junmp.jyzb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.junmp.jyzb.api.bean.query.OrderMainReq;
import com.junmp.jyzb.entity.OrderMain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderMainMapper extends BaseMapper<OrderMain> {
    Long addOrder(OrderMain order);


    void updateOrder(OrderMain order);


    IPage<OrderMain> getOrderPage(Page<OrderMain> page1,@Param("req") OrderMainReq req,@Param("userId") Long userId);

}