Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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);
}