package com.jsh.erp.datasource.mappers;

import com.jsh.erp.datasource.entities.InOutItem;
import com.jsh.erp.datasource.entities.InOutItemExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface InOutItemMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jsh_inoutitem
     *
     * @mbggenerated
     */
    int countByExample(InOutItemExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jsh_inoutitem
     *
     * @mbggenerated
     */
    int deleteByExample(InOutItemExample example);

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jsh_inoutitem
     *
     * @mbggenerated
     */
    int insert(InOutItem record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jsh_inoutitem
     *
     * @mbggenerated
     */
    int insertSelective(InOutItem record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jsh_inoutitem
     *
     * @mbggenerated
     */
    List<InOutItem> selectByExample(InOutItemExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jsh_inoutitem
     *
     * @mbggenerated
     */
    InOutItem selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jsh_inoutitem
     *
     * @mbggenerated
     */
    int updateByExampleSelective(@Param("record") InOutItem record, @Param("example") InOutItemExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jsh_inoutitem
     *
     * @mbggenerated
     */
    int updateByExample(@Param("record") InOutItem record, @Param("example") InOutItemExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jsh_inoutitem
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(InOutItem record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jsh_inoutitem
     *
     * @mbggenerated
     */
    int updateByPrimaryKey(InOutItem record);

    List<InOutItem> selectByConditionInOutItem(
            @Param("name") String name,
            @Param("type") String type,
            @Param("remark") String remark,
            @Param("offset") Integer offset,
            @Param("rows") Integer rows);

    int countsByInOutItem(
            @Param("name") String name,
            @Param("type") String type,
            @Param("remark") String remark);
}