记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
68b937e0
Commit
68b937e0
authored
Nov 11, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_20111115' into dev_20111115
parents
b50166b5
4a0f7355
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
form.html
...urces/templates/zhengzai/sweet/integralActivity/form.html
+1
-1
RedisDataController.java
...rvice/sweet/controller/syncRedis/RedisDataController.java
+7
-0
RedisDataServiceImpl.java
...ce/sweet/service/impl/syncRedis/RedisDataServiceImpl.java
+27
-0
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/sweet/integralActivity/form.html
View file @
68b937e0
...
...
@@ -200,7 +200,7 @@
<script
th:src=
"@{/js/jquery.tmpl.js}"
></script>
<th:block
th:include=
"include :: bootstrap-fileinput-js"
/>
<script
type=
"text/javascript"
>
var
platformUrl
=
[[
$
{
platformUrl
}]]
+
''
;
var
platformUrl
=
[[
$
{
platformUrl
}]];
var
prefix
=
ctx
+
"sweet/sweetIntegralActivity"
;
let
showIndex
=
null
;
// 初始化数据, 可以由后台传过来
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/syncRedis/RedisDataController.java
View file @
68b937e0
...
...
@@ -93,6 +93,13 @@ public class RedisDataController {
return
ResponseDto
.
success
(
result
);
}
@PostMapping
(
"sweet/cityVote"
)
@ApiOperation
(
"sweet-cityVote数据迁移"
)
public
ResponseDto
<
Boolean
>
cityVote
()
{
Boolean
result
=
redisDataService
.
cityVote
();
return
ResponseDto
.
success
(
result
);
}
/*kylin:order:ExpressStatus:id:138291855523471362201224 // 无数据暂时 一条是测试
// 下面会自动降级mongo
kylin:order:refund:orderId:1000651
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/syncRedis/RedisDataServiceImpl.java
View file @
68b937e0
...
...
@@ -213,4 +213,31 @@ public class RedisDataServiceImpl {
return
false
;
}
}
public
Boolean
cityVote
()
{
try
{
// RedisTemplate<String, Object> redis = redisUtil.getRedisTemplateByDb(15);
Jedis
redis
=
getRedis
();
String
redisKey
=
"sweet:cityVote3:cityCode*"
;
Set
<
String
>
keys
=
redis
.
keys
(
redisKey
);
for
(
String
key
:
keys
)
{
String
value
=
redis
.
get
(
key
);
redisUtil
.
set
(
key
,
value
);
}
String
redisKey2
=
"sweet:cityVote3:user*"
;
Set
<
String
>
keys2
=
redis
.
keys
(
redisKey2
);
for
(
String
key
:
keys2
)
{
String
value
=
redis
.
get
(
key
);
redisUtil
.
set
(
key
,
value
);
}
return
true
;
}
catch
(
Exception
e
)
{
log
.
error
(
"sweetUnionIdStrError"
,
e
);
return
false
;
}
}
}
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