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

net.wicp.tams.cas.dao.SysUserMapper 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.SysUser;
import net.wicp.tams.cas.bean.models.SysUserExample;
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 SysUserMapper {

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_user
	 * 
	 */
	@Delete({ "delete from sys_user", "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
	 * 
	 */
	@Insert({ "insert into sys_user (id, user_name, ", "password, gender, ", "email, mobile, status, ",
			"org_id, remark, create_time, ", "update_time, minus_role, ", "duties, tenant_id)",
			"values (#{id,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, ",
			"#{password,jdbcType=VARCHAR}, #{gender,jdbcType=VARCHAR}, ",
			"#{email,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, ",
			"#{orgId,jdbcType=BIGINT}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ",
			"#{updateTime,jdbcType=TIMESTAMP}, #{minusRole,jdbcType=VARCHAR}, ",
			"#{duties,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT})" })
	int insert(SysUser record);

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_user
	 * 
	 */
	@Select({ "select", "id, user_name, password, gender, email, mobile, status, org_id, remark, create_time, ",
			"update_time, minus_role, duties, tenant_id", "from sys_user", "where id = #{id,jdbcType=BIGINT}" })
	@ResultMap("net.wicp.tams.cas.dao.SysUserMapper.BaseResultMap")
	SysUser selectByPrimaryKey(Long id);

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

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_user
	 * 
	 */
	@Update({ "update sys_user", "set user_name = #{userName,jdbcType=VARCHAR},",
			"password = #{password,jdbcType=VARCHAR},", "gender = #{gender,jdbcType=VARCHAR},",
			"email = #{email,jdbcType=VARCHAR},", "mobile = #{mobile,jdbcType=VARCHAR},",
			"status = #{status,jdbcType=VARCHAR},", "org_id = #{orgId,jdbcType=BIGINT},",
			"remark = #{remark,jdbcType=VARCHAR},", "create_time = #{createTime,jdbcType=TIMESTAMP},",
			"update_time = #{updateTime,jdbcType=TIMESTAMP},", "minus_role = #{minusRole,jdbcType=VARCHAR},",
			"duties = #{duties,jdbcType=VARCHAR},", "tenant_id = #{tenantId,jdbcType=BIGINT}",
			"where id = #{id,jdbcType=BIGINT}" })
	int updateByPrimaryKey(SysUser record);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy