package com.goafanti.common.dao;

import com.goafanti.common.model.MemberOrder;
import com.goafanti.common.model.MemberOrderExample;


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

import org.apache.ibatis.annotations.Param;

public interface MemberOrderMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member_order
     *
     * @mbg.generated Fri Nov 10 19:10:10 CST 2017
     */
    long countByExample(MemberOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member_order
     *
     * @mbg.generated Fri Nov 10 19:10:10 CST 2017
     */
    int deleteByExample(MemberOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member_order
     *
     * @mbg.generated Fri Nov 10 19:10:10 CST 2017
     */
    int deleteByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member_order
     *
     * @mbg.generated Fri Nov 10 19:10:10 CST 2017
     */
    int insert(MemberOrder record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member_order
     *
     * @mbg.generated Fri Nov 10 19:10:10 CST 2017
     */
    int insertSelective(MemberOrder record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member_order
     *
     * @mbg.generated Fri Nov 10 19:10:10 CST 2017
     */
    List<MemberOrder> selectByExample(MemberOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member_order
     *
     * @mbg.generated Fri Nov 10 19:10:10 CST 2017
     */
    MemberOrder selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member_order
     *
     * @mbg.generated Fri Nov 10 19:10:10 CST 2017
     */
    int updateByExampleSelective(@Param("record") MemberOrder record, @Param("example") MemberOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member_order
     *
     * @mbg.generated Fri Nov 10 19:10:10 CST 2017
     */
    int updateByExample(@Param("record") MemberOrder record, @Param("example") MemberOrderExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member_order
     *
     * @mbg.generated Fri Nov 10 19:10:10 CST 2017
     */
    int updateByPrimaryKeySelective(MemberOrder record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table member_order
     *
     * @mbg.generated Fri Nov 10 19:10:10 CST 2017
     */
    int updateByPrimaryKey(MemberOrder record);
    
    int updateUserLvl(Map<String, Object> params);
    
    int updateBatchUserLvl(Map<String, Object> params);

	List<String> selectExpired();
}