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

net.wicp.tams.cas.dao.SysTenantMapper 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.SysTenant;
import net.wicp.tams.cas.bean.models.SysTenantExample;
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 SysTenantMapper {

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

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant
	 * 
	 */
	@Insert({ "insert into sys_tenant (id, code, ", "name, create_name, ", "status, status_time, ", "operate_reason)",
			"values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, ",
			"#{name,jdbcType=VARCHAR}, #{createName,jdbcType=VARCHAR}, ",
			"#{status,jdbcType=VARCHAR}, #{statusTime,jdbcType=TIMESTAMP}, ", "#{operateReason,jdbcType=VARCHAR})" })
	int insert(SysTenant record);

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant
	 * 
	 */
	@Select({ "select", "id, code, name, create_name, status, status_time, operate_reason", "from sys_tenant",
			"where id = #{id,jdbcType=BIGINT}" })
	@ResultMap("net.wicp.tams.cas.dao.SysTenantMapper.BaseResultMap")
	SysTenant selectByPrimaryKey(Long id);

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

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant
	 * 
	 */
	@Update({ "update sys_tenant", "set code = #{code,jdbcType=VARCHAR},", "name = #{name,jdbcType=VARCHAR},",
			"create_name = #{createName,jdbcType=VARCHAR},", "status = #{status,jdbcType=VARCHAR},",
			"status_time = #{statusTime,jdbcType=TIMESTAMP},", "operate_reason = #{operateReason,jdbcType=VARCHAR}",
			"where id = #{id,jdbcType=BIGINT}" })
	int updateByPrimaryKey(SysTenant record);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy