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

net.wicp.tams.cas.dao.SysOrgMapper 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.SysOrg;
import net.wicp.tams.cas.bean.models.SysOrgExample;
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 SysOrgMapper {

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_org
	 * 
	 */
	@Delete({ "delete from sys_org", "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
	 * 
	 */
	@Insert({ "insert into sys_org (id, parent_id, ", "org_id_path, org_name, ", "org_code, unit_type, ",
			"address, tenant_id)", "values (#{id,jdbcType=BIGINT}, #{parentId,jdbcType=BIGINT}, ",
			"#{orgIdPath,jdbcType=VARCHAR}, #{orgName,jdbcType=VARCHAR}, ",
			"#{orgCode,jdbcType=VARCHAR}, #{unitType,jdbcType=VARCHAR}, ",
			"#{address,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT})" })
	int insert(SysOrg record);

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_org
	 * 
	 */
	@Select({ "select", "id, parent_id, org_id_path, org_name, org_code, unit_type, address, tenant_id", "from sys_org",
			"where id = #{id,jdbcType=BIGINT}" })
	@ResultMap("net.wicp.tams.cas.dao.SysOrgMapper.BaseResultMap")
	SysOrg selectByPrimaryKey(Long id);

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

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

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

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table sys_org
	 * 
	 */
	@Update({ "update sys_org", "set parent_id = #{parentId,jdbcType=BIGINT},",
			"org_id_path = #{orgIdPath,jdbcType=VARCHAR},", "org_name = #{orgName,jdbcType=VARCHAR},",
			"org_code = #{orgCode,jdbcType=VARCHAR},", "unit_type = #{unitType,jdbcType=VARCHAR},",
			"address = #{address,jdbcType=VARCHAR},", "tenant_id = #{tenantId,jdbcType=BIGINT}",
			"where id = #{id,jdbcType=BIGINT}" })
	int updateByPrimaryKey(SysOrg record);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy