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

net.wicp.tams.cas.dao.SysTenantRelaMapper Maven / Gradle / Ivy

package net.wicp.tams.cas.dao;

import java.util.List;
import net.wicp.tams.cas.bean.models.SysTenantRela;
import net.wicp.tams.cas.bean.models.SysTenantRelaExample;
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 SysTenantRelaMapper {

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant_rela
	 * 
	 */
	@Delete({ "delete from sys_tenant_rela", "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_rela
	 * 
	 */
	@Insert({ "insert into sys_tenant_rela (id, tenant_main, ", "tenant_rela, rela_type, ", "status, status_time, ",
			"operate_reason)", "values (#{id,jdbcType=BIGINT}, #{tenantMain,jdbcType=BIGINT}, ",
			"#{tenantRela,jdbcType=BIGINT}, #{relaType,jdbcType=VARCHAR}, ",
			"#{status,jdbcType=VARCHAR}, #{statusTime,jdbcType=TIMESTAMP}, ", "#{operateReason,jdbcType=VARCHAR})" })
	int insert(SysTenantRela record);

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant_rela
	 * 
	 */
	@Select({ "select", "id, tenant_main, tenant_rela, rela_type, status, status_time, operate_reason",
			"from sys_tenant_rela", "where id = #{id,jdbcType=BIGINT}" })
	@ResultMap("net.wicp.tams.cas.dao.SysTenantRelaMapper.BaseResultMap")
	SysTenantRela selectByPrimaryKey(Long id);

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

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_tenant_rela
	 * 
	 */
	@Update({ "update sys_tenant_rela", "set tenant_main = #{tenantMain,jdbcType=BIGINT},",
			"tenant_rela = #{tenantRela,jdbcType=BIGINT},", "rela_type = #{relaType,jdbcType=VARCHAR},",
			"status = #{status,jdbcType=VARCHAR},", "status_time = #{statusTime,jdbcType=TIMESTAMP},",
			"operate_reason = #{operateReason,jdbcType=VARCHAR}", "where id = #{id,jdbcType=BIGINT}" })
	int updateByPrimaryKey(SysTenantRela record);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy