记得上下班打卡 | 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
035257aa
Commit
035257aa
authored
Dec 02, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_20211205' into dev_20211205
parents
a98d28c3
af4d4646
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
StoneServerImpl.java
.../service/platform/service/impl/stone/StoneServerImpl.java
+5
-9
No files found.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/stone/StoneServerImpl.java
View file @
035257aa
...
...
@@ -51,10 +51,6 @@ public class StoneServerImpl {
@Autowired
private
MongoTemplate
mongoTemplate
;
@Autowired
AdamUserMapper
userMapper
;
@Autowired
KylinOrderTicketsMapper
orderTicketsMapper
;
@Autowired
StoneScoreUserMapper
stoneScoreUserMapper
;
@Autowired
...
...
@@ -63,18 +59,16 @@ public class StoneServerImpl {
FeignStoneIntegralClient
stoneIntegralClient
;
private
static
final
String
SQL_URL
=
"jdbc:mysql://zhengzai.mysql.polardb.rds.aliyuncs.com:3306/ln_scene"
;
private
static
final
String
SQL_USER
=
"
java
"
;
private
static
final
String
SQL_PWD
=
"
pOOs9Y3wj#2^
"
;
private
static
final
String
SQL_USER
=
"
zhengzai
"
;
private
static
final
String
SQL_PWD
=
"
GDDHBJOEcJw!
"
;
public
boolean
initScore
(
String
uid
)
{
try
{
String
sql
=
"select * from temp_score where uid =
+uid"
;
String
sql
=
"select * from temp_score where uid =
"
+
uid
;
Connection
connection
=
DriverManager
.
getConnection
(
SQL_URL
,
SQL_USER
,
SQL_PWD
);
//查询数据
PreparedStatement
preparedStatement
=
connection
.
prepareStatement
(
sql
);
ResultSetImpl
row
=
(
ResultSetImpl
)
preparedStatement
.
executeQuery
();
row
.
close
();
preparedStatement
.
close
();
//数据迁移
while
(
row
.
next
())
{
int
score
=
row
.
getInt
(
"price_cost"
);
...
...
@@ -99,6 +93,8 @@ public class StoneServerImpl {
}
stoneIntegralClient
.
in2111
(
uid
,
score
,
"历史积分"
);
}
row
.
close
();
preparedStatement
.
close
();
}
catch
(
Exception
e
)
{
log
.
info
(
"异常 : {} "
,
e
);
e
.
printStackTrace
();
...
...
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