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

net.wicp.tams.cas.dao.SysOrgRelaMapper 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.SysOrgRela;
import net.wicp.tams.cas.bean.models.SysOrgRelaExample;
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 SysOrgRelaMapper {

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_org_rela
	 * 
	 */
	@Delete({ "delete from sys_org_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_org_rela
	 * 
	 */
	@Insert({ "insert into sys_org_rela (id, org_id_main, ", "org_id_rela, rela_type, ", "tenant_id)",
			"values (#{id,jdbcType=BIGINT}, #{orgIdMain,jdbcType=BIGINT}, ",
			"#{orgIdRela,jdbcType=BIGINT}, #{relaType,jdbcType=VARCHAR}, ", "#{tenantId,jdbcType=BIGINT})" })
	int insert(SysOrgRela record);

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_org_rela
	 * 
	 */
	@Select({ "select", "id, org_id_main, org_id_rela, rela_type, tenant_id", "from sys_org_rela",
			"where id = #{id,jdbcType=BIGINT}" })
	@ResultMap("net.wicp.tams.cas.dao.SysOrgRelaMapper.BaseResultMap")
	SysOrgRela selectByPrimaryKey(Long id);

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

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_org_rela
	 * 
	 */
	@Update({ "update sys_org_rela", "set org_id_main = #{orgIdMain,jdbcType=BIGINT},",
			"org_id_rela = #{orgIdRela,jdbcType=BIGINT},", "rela_type = #{relaType,jdbcType=VARCHAR},",
			"tenant_id = #{tenantId,jdbcType=BIGINT}", "where id = #{id,jdbcType=BIGINT}" })
	int updateByPrimaryKey(SysOrgRela record);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy