提交 93edd4e1 编写于 作者: misaka's avatar misaka

sass 标准结构4

上级 f040eaa4
......@@ -17,7 +17,7 @@ import org.springframework.context.annotation.Configuration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Properties;
<#if sys.getSaaSMode()==2>
<#if sys.getSaaSMode()==4>
import com.baomidou.mybatisplus.core.parser.ISqlParserFilter;
import com.baomidou.mybatisplus.core.parser.SqlParserHelper;
import com.baomidou.mybatisplus.extension.plugins.tenant.TenantSqlParser;
......@@ -33,7 +33,7 @@ import java.util.List;
@Configuration
@MapperScan(value="${pub.getPKGCodeName()}.core.*.mapper",nameGenerator = UniqueNameGenerator.class)
public class MybatisConfiguration {
<#if sys.getSaaSMode()==2>
<#if sys.getSaaSMode()==4>
@Autowired
private ${pub.getPKGCodeName()}.core.util.config.SaaSTenantProperties saaSTenantProperties;
......@@ -60,13 +60,13 @@ public class MybatisConfiguration {
* @return
*/
@Bean
public PaginationInterceptor paginationInterceptor(<#if sys.getSaaSMode()==2>SaaSTenantHandler saaSTenantHandler</#if>) {
public PaginationInterceptor paginationInterceptor(<#if sys.getSaaSMode()==4>SaaSTenantHandler saaSTenantHandler</#if>) {
PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
// 设置请求的页面大于最大页后操作, true调回到首页,false 继续请求 默认false
// paginationInterceptor.setOverflow(false);
// 设置最大单页限制数量,默认 500 条,-1 不受限制
paginationInterceptor.setLimit(-1);
<#if sys.getSaaSMode()==2>
<#if sys.getSaaSMode()==4>
// 创建SQL解析器集合
List<ISqlParser> sqlParserList = new ArrayList<>();
......@@ -86,7 +86,7 @@ public class MybatisConfiguration {
return paginationInterceptor;
}
<#if sys.getSaaSMode()==2>
<#if sys.getSaaSMode()==4>
@Bean
public ISqlParserFilter ignoreParserFilter() {
return metaObject -> {
......
<#ibiztemplate>
TARGET=PSSYSTEM
</#ibiztemplate>
<#if sys.getSaaSMode()==2>
<#if sys.getSaaSMode()==4>
package ${pub.getPKGCodeName()}.core.util.config;
import ${pub.getPKGCodeName()}.util.security.AuthenticationUser;
......
<#ibiztemplate>
TARGET=PSSYSTEM
</#ibiztemplate>
<#if sys.getSaaSMode()==2>
<#if sys.getSaaSMode()==4>
package ${pub.getPKGCodeName()}.core.util.config;
import lombok.Getter;
......
......@@ -296,7 +296,7 @@ ibiz:
</#if>
enablePermissionValid: ${enableDataAcc}
cacheLevel: L1 #(L1)一级本地caffeine缓存;(L2)caffeine缓存+Redis缓存
<#if sys.getSaaSMode()==2>
<#if sys.getSaaSMode()==4>
saas:
column: SRFDCID
sys-tables: databasechangelog,databasechangeloglock<#list sys.getAllPSDataEntities() as entity><#if entity.getSaaSMode()==0>,${entity.getTableName()}</#if></#list>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册