package com.slodon.b2b2c.dao.write.system;

import java.util.List;

import com.slodon.b2b2c.system.example.SysMediaExample;
import com.slodon.b2b2c.system.pojo.SysMedia;
import org.apache.ibatis.annotations.Param;

public interface SysMediaWriteMapper {

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_media
     *
     * @mbg.generated Thu Oct 13 14:15:00 CST 2022
     */
    int deleteByExample(SysMediaExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_media
     *
     * @mbg.generated Thu Oct 13 14:15:00 CST 2022
     */
    int deleteByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_media
     *
     * @mbg.generated Thu Oct 13 14:15:00 CST 2022
     */
    int insert(SysMedia row);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_media
     *
     * @mbg.generated Thu Oct 13 14:15:00 CST 2022
     */
    int insertSelective(SysMedia row);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_media
     *
     * @mbg.generated Thu Oct 13 14:15:00 CST 2022
     */
    int updateByExampleSelective(@Param("row") SysMedia row, @Param("example") SysMediaExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_media
     *
     * @mbg.generated Thu Oct 13 14:15:00 CST 2022
     */
    int updateByExample(@Param("row") SysMedia row, @Param("example") SysMediaExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_media
     *
     * @mbg.generated Thu Oct 13 14:15:00 CST 2022
     */
    int updateByPrimaryKeySelective(SysMedia row);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_media
     *
     * @mbg.generated Thu Oct 13 14:15:00 CST 2022
     */
    int updateByPrimaryKey(SysMedia row);

    /**
     * 删除
     * @param mediaArry 需要删除的id字符串数组
     * @return
     */
    int deleteMediaByIds(@Param("array") String[] mediaArry,@Param("status")int status);
}