Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jz-dmp-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚本章
jz-dmp-service
Commits
ad3a98af
Commit
ad3a98af
authored
Jan 11, 2021
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
8e3f9c35
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
36 deletions
+49
-36
SessionUtils.java
src/main/java/com/jz/common/utils/web/SessionUtils.java
+17
-2
RealTimeSyncController.java
...es/controller/DataIntegration/RealTimeSyncController.java
+0
-3
DmpRealtimeSyncInfoServiceImpl.java
.../modules/service/impl/DmpRealtimeSyncInfoServiceImpl.java
+31
-30
DmpRealtimeSyncInfoMapper.xml
src/main/resources/mapper/dmp/DmpRealtimeSyncInfoMapper.xml
+1
-1
No files found.
src/main/java/com/jz/common/utils/web/SessionUtils.java
View file @
ad3a98af
package
com
.
jz
.
common
.
utils
.
web
;
package
com
.
jz
.
common
.
utils
.
web
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.security.core.Authentication
;
import
org.springframework.security.core.Authentication
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.security.core.context.SecurityContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.RequestContextHolder
;
...
@@ -105,8 +106,22 @@ public class SessionUtils {
...
@@ -105,8 +106,22 @@ public class SessionUtils {
}
}
return
(
DmpMember
)
principal
;
return
(
DmpMember
)
principal
;
}
}
/**
/**
* @Title: getSessionUserId
* @Description: 获取登录用户ID
* @return String 返回类型
*/
public
static
String
getCurrentUserId
(){
String
userId
=
""
;
DmpMember
user
=
getSecurityUser
();
if
(
user
!=
null
){
userId
=
String
.
valueOf
(
user
.
getUserId
());
}
return
userId
;
}
/**
* @Title: getAuthentication
* @Title: getAuthentication
* @Description: TODO(获取authentication)
* @Description: TODO(获取authentication)
* @param @return 参数
* @param @return 参数
...
...
src/main/java/com/jz/dmp/modules/controller/DataIntegration/RealTimeSyncController.java
View file @
ad3a98af
...
@@ -228,8 +228,6 @@ public class RealTimeSyncController {
...
@@ -228,8 +228,6 @@ public class RealTimeSyncController {
if
(
StringUtils
.
isEmpty
(
params
.
get
(
"targetDataSourceId"
).
toString
()))
{
if
(
StringUtils
.
isEmpty
(
params
.
get
(
"targetDataSourceId"
).
toString
()))
{
return
new
JsonResult
(
ResultCode
.
PARAMS_ERROR
,
"目标数据源id不能为空!"
);
return
new
JsonResult
(
ResultCode
.
PARAMS_ERROR
,
"目标数据源id不能为空!"
);
}
}
boolean
flag
=
false
;
//异步提交
//异步提交
Thread
thread
=
new
Thread
(
new
Runnable
()
{
Thread
thread
=
new
Thread
(
new
Runnable
()
{
@Override
@Override
...
@@ -242,7 +240,6 @@ public class RealTimeSyncController {
...
@@ -242,7 +240,6 @@ public class RealTimeSyncController {
}
}
});
});
thread
.
start
();
thread
.
start
();
return
new
JsonResult
();
return
new
JsonResult
();
}
}
...
...
src/main/java/com/jz/dmp/modules/service/impl/DmpRealtimeSyncInfoServiceImpl.java
View file @
ad3a98af
This diff is collapsed.
Click to expand it.
src/main/resources/mapper/dmp/DmpRealtimeSyncInfoMapper.xml
View file @
ad3a98af
...
@@ -375,7 +375,7 @@
...
@@ -375,7 +375,7 @@
ds.host,
ds.host,
ds.port,
ds.port,
ds.endpoint,
ds.endpoint,
ds
,
access_key as accessKey,
ds
.
access_key as accessKey,
ds.access_id as accessId,
ds.access_id as accessId,
dsdt.datasource_type as datasourceTypeName,
dsdt.datasource_type as datasourceTypeName,
dsdt.driver_class_name as driverName
dsdt.driver_class_name as driverName
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment