All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.wicp.tams.cas.dao.SysRoleResMapper Maven / Gradle / Ivy

There is a newer version: 1.3.2
Show newest version
package net.wicp.tams.cas.dao;

import java.util.List;
import net.wicp.tams.cas.bean.models.SysRoleRes;
import net.wicp.tams.cas.bean.models.SysRoleResExample;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface SysRoleResMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_role_res
	 * 
	 */
	long countByExample(SysRoleResExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_role_res
	 * 
	 */
	int deleteByExample(SysRoleResExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_role_res
	 * 
	 */
	@Delete({ "delete from sys_role_res", "where id = #{id,jdbcType=BIGINT}" })
	int deleteByPrimaryKey(Long id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_role_res
	 * 
	 */
	@Insert({ "insert into sys_role_res (id, role_id, ", "res_id, auth_code, tenant_id)",
			"values (#{id,jdbcType=BIGINT}, #{roleId,jdbcType=BIGINT}, ",
			"#{resId,jdbcType=BIGINT}, #{authCode,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT})" })
	int insert(SysRoleRes record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_role_res
	 * 
	 */
	int insertSelective(SysRoleRes record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_role_res
	 * 
	 */
	List selectByExample(SysRoleResExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_role_res
	 * 
	 */
	@Select({ "select", "id, role_id, res_id, auth_code, tenant_id", "from sys_role_res",
			"where id = #{id,jdbcType=BIGINT}" })
	@ResultMap("net.wicp.tams.cas.dao.SysRoleResMapper.BaseResultMap")
	SysRoleRes selectByPrimaryKey(Long id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_role_res
	 * 
	 */
	int updateByExampleSelective(@Param("record") SysRoleRes record, @Param("example") SysRoleResExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_role_res
	 * 
	 */
	int updateByExample(@Param("record") SysRoleRes record, @Param("example") SysRoleResExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_role_res
	 * 
	 */
	int updateByPrimaryKeySelective(SysRoleRes record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_role_res
	 * 
	 */
	@Update({ "update sys_role_res", "set role_id = #{roleId,jdbcType=BIGINT},", "res_id = #{resId,jdbcType=BIGINT},",
			"auth_code = #{authCode,jdbcType=BIGINT},", "tenant_id = #{tenantId,jdbcType=BIGINT}",
			"where id = #{id,jdbcType=BIGINT}" })
	int updateByPrimaryKey(SysRoleRes record);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy