Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ADC-uniformity
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
凡昌松
ADC-uniformity
Commits
8fa9acee
Commit
8fa9acee
authored
Dec 17, 2021
by
qk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update:参数对比待解决问题无法导出全部
parent
5c1bd727
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
DynamicClcpZk.java
...s-check/src/main/java/com/adc/da/Timer/DynamicClcpZk.java
+2
-2
CheckCertificateMainInfoServiceImpl.java
...tem/service/impl/CheckCertificateMainInfoServiceImpl.java
+1
-1
UserUtil.java
adcbs-util/src/main/java/com/adc/da/util/utils/UserUtil.java
+10
-5
No files found.
adcbs-check/src/main/java/com/adc/da/Timer/DynamicClcpZk.java
View file @
8fa9acee
...
@@ -29,8 +29,8 @@ public class DynamicClcpZk {
...
@@ -29,8 +29,8 @@ public class DynamicClcpZk {
@SneakyThrows
@SneakyThrows
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
// @Scheduled(cron = "0/5 * * * * ?")
// @Scheduled(cron = "0/5 * * * * ?")
/5秒执行一次
// @Scheduled(cron = "0
*/10 * * * ?")
// @Scheduled(cron = "0
0/5 * * * ?") /5分钟执行一次
public
void
DynamicCertificateMainInfo
()
{
public
void
DynamicCertificateMainInfo
()
{
iCheckCertificateMainInfoService
.
insertCertificateMainInfo
();
iCheckCertificateMainInfoService
.
insertCertificateMainInfo
();
}
}
...
...
adcbs-check/src/main/java/com/adc/da/system/service/impl/CheckCertificateMainInfoServiceImpl.java
View file @
8fa9acee
...
@@ -3769,7 +3769,7 @@ public class CheckCertificateMainInfoServiceImpl
...
@@ -3769,7 +3769,7 @@ public class CheckCertificateMainInfoServiceImpl
certificate
.
setVersion
(
"1"
);
certificate
.
setVersion
(
"1"
);
}
}
}
}
this
.
saveBatch
(
clcpZk
);
this
.
save
OrUpdate
Batch
(
clcpZk
);
}
}
return
Result
.
success
(
"200"
,
"同步成功"
);
return
Result
.
success
(
"200"
,
"同步成功"
);
}
}
...
...
adcbs-util/src/main/java/com/adc/da/util/utils/UserUtil.java
View file @
8fa9acee
...
@@ -22,13 +22,18 @@ public class UserUtil {
...
@@ -22,13 +22,18 @@ public class UserUtil {
}
}
public
static
String
getCurrentUserId
()
{
public
static
String
getCurrentUserId
()
{
HttpServletRequest
request
=
((
ServletRequestAttributes
)
RequestContextHolder
.
getRequestAttributes
()).
getRequest
();
String
id
=
null
;
String
id
=
null
;
if
(
null
!=
request
)
{
try
{
Map
<
String
,
Object
>
usermap
=
(
Map
<
String
,
Object
>)
request
.
getSession
().
getAttribute
(
"usermap"
);
HttpServletRequest
request
=
((
ServletRequestAttributes
)
RequestContextHolder
.
getRequestAttributes
()).
getRequest
();
if
(
null
!=
usermap
)
{
id
=
usermap
.
get
(
"ID"
).
toString
();
if
(
null
!=
request
)
{
Map
<
String
,
Object
>
usermap
=
(
Map
<
String
,
Object
>)
request
.
getSession
().
getAttribute
(
"usermap"
);
if
(
null
!=
usermap
)
{
id
=
usermap
.
get
(
"ID"
).
toString
();
}
}
}
}
catch
(
Exception
e
){
}
}
return
id
;
return
id
;
}
}
...
...
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