Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zlt2000
microservices-platform
提交
233ab192
microservices-platform
项目概览
zlt2000
/
microservices-platform
8 个月 前同步成功
通知
16
Star
4
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
microservices-platform
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
233ab192
编写于
3月 04, 2023
作者:
zlt2000
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:修改注释,以及zlt-web的父级依赖
上级
337fda84
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
27 addition
and
51 deletion
+27
-51
pom.xml
pom.xml
+1
-1
zlt-commons/zlt-common-core/src/main/java/com/central/common/properties/DataScopeProperties.java
...va/com/central/common/properties/DataScopeProperties.java
+5
-5
zlt-commons/zlt-common-core/src/main/java/com/central/common/utils/LoginUserUtils.java
...rc/main/java/com/central/common/utils/LoginUserUtils.java
+12
-0
zlt-web/layui-web/pom.xml
zlt-web/layui-web/pom.xml
+1
-2
zlt-web/pom.xml
zlt-web/pom.xml
+5
-40
zlt-web/react-web/pom.xml
zlt-web/react-web/pom.xml
+3
-3
未找到文件。
pom.xml
浏览文件 @
233ab192
...
...
@@ -489,7 +489,7 @@
<!-- 业务 -->
<module>
zlt-business
</module>
<!-- 前端 -->
<
!--<module>zlt-web</module>--
>
<
module>
zlt-web
</module
>
<!-- 任务 -->
<module>
zlt-job
</module>
<!-- 监控 -->
...
...
zlt-commons/zlt-common-core/src/main/java/com/central/common/properties/DataScopeProperties.java
浏览文件 @
233ab192
...
...
@@ -32,26 +32,26 @@ public class DataScopeProperties {
*/
private
Boolean
enabledSqlDebug
=
Boolean
.
FALSE
;
/**
*
在includeTables的匹配符中过滤某几个表不需要权限的,仅enabled=true
*
配置那些表不执行权限控制
*/
private
Set
<
String
>
ignoreTables
=
Collections
.
emptySet
();
/**
* 指定
某几条sql不执行权限控制, 仅enabled=true生效
* 指定
那些sql不执行权限控制
*/
private
Set
<
String
>
ignoreSqls
=
INGORE_SQL_ID
;
/**
*
指定某几个表接受权限控制,仅enabled=true,默认当开启时全部表
*
配置那些表执行数据权限控制,默认是*则表示全部
*/
private
Set
<
String
>
includeTables
=
Collections
.
singleton
(
"*"
);
/**
* 指定
某几条sql执行权限控制,仅enabled=true生效
* 指定
那些sql执行数据权限控制
* 1. 为空时:所有sql都添加权限控制
* 2. 有值时:只有配置的sql添加权限控制
*/
private
Set
<
String
>
includeSqls
=
Collections
.
emptySet
();
/**
* 指定
需要
的字段名
* 指定
创建人id
的字段名
*/
private
String
creatorIdColumnName
=
"creator_id"
;
...
...
zlt-commons/zlt-common-core/src/main/java/com/central/common/utils/LoginUserUtils.java
浏览文件 @
233ab192
...
...
@@ -8,6 +8,8 @@ import com.central.common.model.SysUser;
import
org.springframework.security.authentication.AnonymousAuthenticationToken
;
import
org.springframework.security.core.Authentication
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.ArrayList
;
...
...
@@ -66,4 +68,14 @@ public class LoginUserUtils {
}
return
user
;
}
public
static
SysUser
getCurrentUser
(
boolean
isFull
)
{
// 从请求上下文里获取 Request 对象
ServletRequestAttributes
requestAttributes
=
(
ServletRequestAttributes
)
RequestContextHolder
.
getRequestAttributes
();
HttpServletRequest
contextRequest
=
requestAttributes
.
getRequest
();
if
(
contextRequest
!=
null
)
{
return
LoginUserUtils
.
getCurrentUser
(
contextRequest
,
isFull
);
}
return
null
;
}
}
zlt-web/layui-web/pom.xml
浏览文件 @
233ab192
...
...
@@ -6,7 +6,7 @@
<parent>
<groupId>
com.zlt
</groupId>
<artifactId>
zlt-web
</artifactId>
<version>
5.
4
.0
</version>
<version>
5.
5
.0
</version>
</parent>
<artifactId>
layui-web
</artifactId>
<description>
Layui开发的前端
</description>
...
...
@@ -14,7 +14,6 @@
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<version>
2.5.14
</version>
</dependency>
<!--<dependency>
...
...
zlt-web/pom.xml
浏览文件 @
233ab192
...
...
@@ -3,50 +3,15 @@
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.zlt
</groupId>
<parent>
<groupId>
com.zlt
</groupId>
<artifactId>
central-platform
</artifactId>
<version>
5.5.0
</version>
</parent>
<artifactId>
zlt-web
</artifactId>
<version>
5.4.0
</version>
<description>
前端
</description>
<packaging>
pom
</packaging>
<properties>
<maven.compiler.source>
1.8
</maven.compiler.source>
<maven.compiler.target>
1.8
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<java.version>
8
</java.version>
<spring-boot-dependencies.version>
2.5.14
</spring-boot-dependencies.version>
<docker-maven-plugin.version>
1.2.2
</docker-maven-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-dependencies
</artifactId>
<version>
${spring-boot-dependencies.version}
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<version>
${spring-boot-dependencies.version}
</version>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<version>
${docker-maven-plugin.version}
</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<modules>
<!-- Layui开发的前端 -->
<module>
layui-web
</module>
...
...
zlt-web/react-web/pom.xml
浏览文件 @
233ab192
...
...
@@ -5,7 +5,7 @@
<parent>
<artifactId>
zlt-web
</artifactId>
<groupId>
com.zlt
</groupId>
<version>
5.
4
.0
</version>
<version>
5.
5
.0
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
@@ -22,7 +22,7 @@
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
</dependencies>
<build>
<
!--<
build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
...
...
@@ -120,6 +120,6 @@
</plugins>
</build>
</profile>
</profiles>
</profiles>
-->
</project>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录