|
|
@ -2,6 +2,7 @@ package com.cloud.kicc.common.data.config; |
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler; |
|
|
|
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInterceptor; |
|
|
|
import com.cloud.kicc.common.core.factory.YamlPropertySourceFactory; |
|
|
|
import com.cloud.kicc.common.core.factory.YamlPropertySourceFactory; |
|
|
|
import com.cloud.kicc.common.data.handler.BaseMetaObjectHandler; |
|
|
|
import com.cloud.kicc.common.data.handler.BaseMetaObjectHandler; |
|
|
|
import com.cloud.kicc.common.data.handler.KiccTenantLineHandler; |
|
|
|
import com.cloud.kicc.common.data.handler.KiccTenantLineHandler; |
|
|
@ -43,6 +44,7 @@ public class MybatisConfiguration implements WebMvcConfigurer { |
|
|
|
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); |
|
|
|
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); |
|
|
|
interceptor.addInnerInterceptor(new KiccTenantLineInnerInterceptor(new KiccTenantLineHandler(tenantProperties))); |
|
|
|
interceptor.addInnerInterceptor(new KiccTenantLineInnerInterceptor(new KiccTenantLineHandler(tenantProperties))); |
|
|
|
interceptor.addInnerInterceptor(new KiccPaginationInnerInterceptor()); |
|
|
|
interceptor.addInnerInterceptor(new KiccPaginationInnerInterceptor()); |
|
|
|
|
|
|
|
interceptor.addInnerInterceptor(new OptimisticLockerInnerInterceptor()); |
|
|
|
return interceptor; |
|
|
|
return interceptor; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|