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

net.wicp.tams.cas.dao.SysUserPositionMapper 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.SysUserPosition;
import net.wicp.tams.cas.bean.models.SysUserPositionExample;
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 SysUserPositionMapper {

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_user_position
	 * 
	 */
	@Delete({ "delete from sys_user_position", "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_position
	 * 
	 */
	@Insert({ "insert into sys_user_position (id, user_id, ", "position_id, tenant_id)",
			"values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, ",
			"#{positionId,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT})" })
	int insert(SysUserPosition record);

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy