package org.linlinjava.jz.db.dao;

import org.apache.ibatis.annotations.Param;
import org.linlinjava.jz.db.domain.ContractMaster;
import org.linlinjava.jz.db.domain.ContractMasterExample;

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table contract_master
     *
     * @mbg.generated
     */
    ContractMaster selectOneByExample(ContractMasterExample example);

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

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

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

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

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

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

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

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

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

    Map<String, Object> selectByOrderNo(@Param("orderNo") String orderNo);
}