package org.linlinjava.jz.db.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.jz.db.domain.JzDepartment;
import org.linlinjava.jz.db.domain.JzDepartmentExample;

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_department
     *
     * @mbg.generated
     */
    JzDepartment selectOneByExample(JzDepartmentExample example);

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_department
     *
     * @mbg.generated
     */
    JzDepartment selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_department
     *
     * @mbg.generated
     */
    JzDepartment selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_department
     *
     * @mbg.generated
     */
    int logicalDeleteByExample(@Param("example") JzDepartmentExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_department
     *
     * @mbg.generated
     */
    int logicalDeleteByPrimaryKey(Integer id);
}