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

net.wicp.tams.cas.dao.SysUserGroupMapper 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.SysUserGroup;
import net.wicp.tams.cas.bean.models.SysUserGroupExample;
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 SysUserGroupMapper {

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

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_user_group
	 * 
	 */
	@Insert({ "insert into sys_user_group (id, user_id, ", "group_id, tenant_id)",
			"values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, ",
			"#{groupId,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT})" })
	int insert(SysUserGroup record);

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_user_group
	 * 
	 */
	@Select({ "select", "id, user_id, group_id, tenant_id", "from sys_user_group", "where id = #{id,jdbcType=BIGINT}" })
	@ResultMap("net.wicp.tams.cas.dao.SysUserGroupMapper.BaseResultMap")
	SysUserGroup selectByPrimaryKey(Long id);

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

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_user_group
	 * 
	 */
	@Update({ "update sys_user_group", "set user_id = #{userId,jdbcType=BIGINT},",
			"group_id = #{groupId,jdbcType=BIGINT},", "tenant_id = #{tenantId,jdbcType=BIGINT}",
			"where id = #{id,jdbcType=BIGINT}" })
	int updateByPrimaryKey(SysUserGroup record);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy