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

net.wicp.tams.cas.dao.SysPermissionsMapper 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.SysPermissions;
import net.wicp.tams.cas.bean.models.SysPermissionsExample;
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 SysPermissionsMapper {

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

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_permissions
	 * 
	 */
	@Insert({ "insert into sys_permissions (id, name, ", "opt_type, data_pattern, ", "data_value, url_pattern, ",
			"url_value, tenant_id)", "values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, ",
			"#{optType,jdbcType=VARCHAR}, #{dataPattern,jdbcType=VARCHAR}, ",
			"#{dataValue,jdbcType=VARCHAR}, #{urlPattern,jdbcType=VARCHAR}, ",
			"#{urlValue,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT})" })
	int insert(SysPermissions record);

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_permissions
	 * 
	 */
	@Select({ "select", "id, name, opt_type, data_pattern, data_value, url_pattern, url_value, tenant_id",
			"from sys_permissions", "where id = #{id,jdbcType=BIGINT}" })
	@ResultMap("net.wicp.tams.cas.dao.SysPermissionsMapper.BaseResultMap")
	SysPermissions selectByPrimaryKey(Long id);

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

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_permissions
	 * 
	 */
	@Update({ "update sys_permissions", "set name = #{name,jdbcType=VARCHAR},",
			"opt_type = #{optType,jdbcType=VARCHAR},", "data_pattern = #{dataPattern,jdbcType=VARCHAR},",
			"data_value = #{dataValue,jdbcType=VARCHAR},", "url_pattern = #{urlPattern,jdbcType=VARCHAR},",
			"url_value = #{urlValue,jdbcType=VARCHAR},", "tenant_id = #{tenantId,jdbcType=BIGINT}",
			"where id = #{id,jdbcType=BIGINT}" })
	int updateByPrimaryKey(SysPermissions record);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy