package com.goafanti.common.dao;

import com.goafanti.common.model.RoleResources;
import com.goafanti.common.model.RoleResourcesExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoleResourcesMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role_resources
     *
     * @mbg.generated Mon Jun 11 10:45:21 CST 2018
     */
    long countByExample(RoleResourcesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role_resources
     *
     * @mbg.generated Mon Jun 11 10:45:21 CST 2018
     */
    int deleteByExample(RoleResourcesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role_resources
     *
     * @mbg.generated Mon Jun 11 10:45:21 CST 2018
     */
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role_resources
     *
     * @mbg.generated Mon Jun 11 10:45:21 CST 2018
     */
    int insert(RoleResources record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role_resources
     *
     * @mbg.generated Mon Jun 11 10:45:21 CST 2018
     */
    int insertSelective(RoleResources record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role_resources
     *
     * @mbg.generated Mon Jun 11 10:45:21 CST 2018
     */
    List<RoleResources> selectByExample(RoleResourcesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role_resources
     *
     * @mbg.generated Mon Jun 11 10:45:21 CST 2018
     */
    RoleResources selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role_resources
     *
     * @mbg.generated Mon Jun 11 10:45:21 CST 2018
     */
    int updateByExampleSelective(@Param("record") RoleResources record, @Param("example") RoleResourcesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role_resources
     *
     * @mbg.generated Mon Jun 11 10:45:21 CST 2018
     */
    int updateByExample(@Param("record") RoleResources record, @Param("example") RoleResourcesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role_resources
     *
     * @mbg.generated Mon Jun 11 10:45:21 CST 2018
     */
    int updateByPrimaryKeySelective(RoleResources record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table role_resources
     *
     * @mbg.generated Mon Jun 11 10:45:21 CST 2018
     */
    int updateByPrimaryKey(RoleResources record);

	int deleteResources(String rid);

	int checkRid(String rid);

	List<Integer> selectAdminRoleResources(String aid);

	int updateDimissionTransfer( @Param("type")Integer type,  @Param("aid")String aid,  @Param("transferId")String transferId);

	int updateLockRelease(@Param("type")String type,  @Param("aid")String aid,@Param("transferId")String transferId);

	List<RoleResources> selectByRid(@Param("rid")String rid);
}