Class TenantHandler

java.lang.Object
cn.sinozg.applet.common.handler.TenantHandler
All Implemented Interfaces:
com.baomidou.mybatisplus.extension.plugins.handler.TenantLineHandler

public class TenantHandler extends Object implements com.baomidou.mybatisplus.extension.plugins.handler.TenantLineHandler
多租户 配置
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.sf.jsqlparser.expression.Expression
     
    boolean
    ignoreTable(String tableName)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.baomidou.mybatisplus.extension.plugins.handler.TenantLineHandler

    getTenantIdColumn, ignoreInsert
  • Field Details

    • log

      private final org.slf4j.Logger log
  • Constructor Details

    • TenantHandler

      public TenantHandler()
  • Method Details

    • getTenantId

      public net.sf.jsqlparser.expression.Expression getTenantId()
      Specified by:
      getTenantId in interface com.baomidou.mybatisplus.extension.plugins.handler.TenantLineHandler
    • ignoreTable

      public boolean ignoreTable(String tableName)
      Specified by:
      ignoreTable in interface com.baomidou.mybatisplus.extension.plugins.handler.TenantLineHandler