SysTenantRelaMapper.java 4.4 KB
Newer Older
偏锋书生's avatar
偏锋书生 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
package net.wicp.tams.app.duckula.controller.dao;

import java.util.List;
import net.wicp.tams.app.duckula.controller.bean.models.SysTenantRela;
import net.wicp.tams.app.duckula.controller.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
     *
     * @mbg.generated
     */
    long countByExample(SysTenantRelaExample example);

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_tenant_rela
     *
     * @mbg.generated
     */
    @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
     *
     * @mbg.generated
     */
    @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
     *
     * @mbg.generated
     */
    int insertSelective(SysTenantRela record);

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_tenant_rela
     *
     * @mbg.generated
     */
    @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.app.duckula.controller.dao.SysTenantRelaMapper.BaseResultMap")
    SysTenantRela selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_tenant_rela
     *
     * @mbg.generated
     */
    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
     *
     * @mbg.generated
     */
    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
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(SysTenantRela record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_tenant_rela
     *
     * @mbg.generated
     */
    @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);
}