Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jobs
Project
Project
Details
Activity
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
曲欣亮
jobs
Commits
de9e9c31
Commit
de9e9c31
authored
Nov 12, 2018
by
zhangyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d1487b51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
JobServiceImpl.java
...main/java/com/egolm/jobs/service/impl/JobServiceImpl.java
+8
-5
No files found.
src/main/java/com/egolm/jobs/service/impl/JobServiceImpl.java
View file @
de9e9c31
...
...
@@ -57,16 +57,19 @@ public class JobServiceImpl implements JobService {
public
void
executeJob
(
JobCommon
jobCommon
)
{
String
data
=
jobCommon
.
getData
()+
""
;
if
(
data
.
equals
(
"redisInit"
))
{
String
sql
=
"SELECT * FROM tSystemCtrl WHERE sCode IN ('Client_Md5Key') AND nTag&1=0 "
;
redisTemplate
.
opsForHash
().
delete
(
"SystemCtl"
,
"Client_Md5Key"
);
if
(
data
.
equals
(
"redisInit"
))
{
///初始化前端签名用的 md5 key
String
sql
=
"SELECT * FROM tSystemCtrl WHERE sSysTypeID = 'RedisInit' AND nTag&1=0 "
;
List
<
Map
<
String
,
Object
>>
list
=
jdbcTemplate
.
queryForList
(
sql
);
if
(
list
!=
null
&&
list
.
size
()
>
0
)
{
for
(
Map
<
String
,
Object
>
map:
list
)
{
if
(
map
.
get
(
"sCode"
).
equals
(
"Client_Md5Key"
))
{
redisTemplate
.
opsForValue
().
set
(
"Client_Md5Key"
,
map
.
get
(
"sValue1"
));
}
String
scode
=
map
.
get
(
"sCode"
)+
""
;
redisTemplate
.
opsForHash
().
put
(
"SystemCtl"
,
scode
,
map
);
}
}
}
Map
<
String
,
Object
>
map
=
(
Map
<
String
,
Object
>)
redisTemplate
.
opsForHash
().
get
(
"SystemCtl"
,
"Client_Md5Key"
);
System
.
out
.
println
(
map
.
get
(
"sValue1"
));
}
}
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