记得上下班打卡 | 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
58a46d74
Commit
58a46d74
authored
Aug 23, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log e
parent
e08fd2eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
22 deletions
+23
-22
JxlDataController.java
...service/sweet/controller/syncRedis/JxlDataController.java
+13
-13
JxlDataImpl.java
...net/service/sweet/service/impl/syncRedis/JxlDataImpl.java
+10
-9
No files found.
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/controller/syncRedis/JxlDataController.java
View file @
58a46d74
...
...
@@ -23,19 +23,30 @@ public class JxlDataController {
* @return
*/
@PostMapping
(
"basicServices/versions"
)
@ApiOperation
(
"basicServices版本控制数据迁移"
)
@ApiOperation
(
"basicServices版本控制数据迁移
-可以通过后台编辑
"
)
public
ResponseDto
<
Boolean
>
basicServicesVersions
()
{
Boolean
result
=
jxlData
.
basicServicesVersions
();
return
ResponseDto
.
success
(
result
);
}
@PostMapping
(
"basicServices/upush"
)
@ApiOperation
(
"basicServices推送数据迁移
-可不迁暂时无数据
"
)
@ApiOperation
(
"basicServices推送数据迁移"
)
public
ResponseDto
<
Boolean
>
basicServicesUpush
()
{
Boolean
result
=
jxlData
.
basicServicesUpush
();
return
ResponseDto
.
success
(
result
);
}
/**
* kylin
* @return
*/
@PostMapping
(
"kylin/banner"
)
@ApiOperation
(
"kylin-banner数据迁移-可以通过后台编辑"
)
public
ResponseDto
<
Boolean
>
kylinBanner
()
{
Boolean
result
=
jxlData
.
kylinBanner
();
return
ResponseDto
.
success
(
result
);
}
/**
* sweet
* @return
...
...
@@ -75,17 +86,6 @@ public class JxlDataController {
return
ResponseDto
.
success
(
result
);
}
/**
* kylin
* @return
*/
@PostMapping
(
"kylin/banner"
)
@ApiOperation
(
"kylin-banner数据迁移"
)
public
ResponseDto
<
Boolean
>
kylinBanner
()
{
Boolean
result
=
jxlData
.
kylinBanner
();
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/JxlDataImpl.java
View file @
58a46d74
...
...
@@ -38,7 +38,7 @@ public class JxlDataImpl {
// r-2ze7002ckw5u75fgukpd.redis.rds.aliyuncs.com test
// 39.106.122.201 dev
// zhengzai.redis.rds.aliyuncs.com 线上
jedisPool
=
new
JedisPool
(
"
r-2ze7002ckw5u75fgukpd
.redis.rds.aliyuncs.com"
,
6380
);
jedisPool
=
new
JedisPool
(
"
zhengzai
.redis.rds.aliyuncs.com"
,
6380
);
toObjMapper
=
new
ObjectMapper
();
toObjMapper
.
setVisibility
(
PropertyAccessor
.
ALL
,
JsonAutoDetect
.
Visibility
.
ANY
);
...
...
@@ -49,7 +49,8 @@ public class JxlDataImpl {
private
Jedis
getRedis
()
{
Jedis
resource
=
jedisPool
.
getResource
();
resource
.
auth
(
"NBs$%6hW"
);
resource
.
auth
(
"NBs$%6hW"
);
// 线上
// resource.auth("PO@B!Iud32"); // test
resource
.
select
(
15
);
return
resource
;
}
...
...
@@ -75,7 +76,7 @@ public class JxlDataImpl {
return
true
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
"basicServicesVersionsError"
,
e
);
return
false
;
}
}
...
...
@@ -99,7 +100,7 @@ public class JxlDataImpl {
return
true
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
"basicServicesUpushError"
,
e
);
return
false
;
}
}
...
...
@@ -125,7 +126,7 @@ public class JxlDataImpl {
return
true
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
"sweetAnswerError"
,
e
);
return
false
;
}
}
...
...
@@ -145,7 +146,7 @@ public class JxlDataImpl {
return
true
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
"sweetOpenIdError"
,
e
);
return
false
;
}
}
...
...
@@ -169,7 +170,7 @@ public class JxlDataImpl {
return
true
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
"sweetUnionIdError"
,
e
);
return
false
;
}
}
...
...
@@ -189,7 +190,7 @@ public class JxlDataImpl {
return
true
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
"sweetUnionIdStrError"
,
e
);
return
false
;
}
}
...
...
@@ -208,7 +209,7 @@ public class JxlDataImpl {
return
true
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
(
);
log
.
error
(
"kylinBannerError"
,
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