package org.linlinjava.jz.db.dao;

import org.apache.ibatis.annotations.Param;
import org.linlinjava.jz.db.domain.CustomerOrder;
import org.linlinjava.jz.db.domain.CustomerOrderExample;

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

public interface CustomerOrderMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    long countByExample(CustomerOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    int deleteByExample(CustomerOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    int insert(CustomerOrder record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    int insertSelective(CustomerOrder record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    CustomerOrder selectOneByExample(CustomerOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    CustomerOrder selectOneByExampleSelective(@Param("example") CustomerOrderExample example, @Param("selective") CustomerOrder.Column... selective);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    List<CustomerOrder> selectByExampleSelective(@Param("example") CustomerOrderExample example, @Param("selective") CustomerOrder.Column... selective);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    List<CustomerOrder> selectByExample(CustomerOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    CustomerOrder selectByPrimaryKeySelective(@Param("id") Long id, @Param("selective") CustomerOrder.Column... selective);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    CustomerOrder selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") CustomerOrder record, @Param("example") CustomerOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") CustomerOrder record, @Param("example") CustomerOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(CustomerOrder record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table customer_order
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(CustomerOrder record);

    List<Map<String, Object>> selectOrderList(CustomerOrder customerOrder);
}