Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qa-platform
Commits
fdd777c6
Commit
fdd777c6
authored
Oct 15, 2020
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增vcc2环境
parent
0132ad4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
SwitchDataSource.java
src/main/java/cn/qg/qaplatform/common/SwitchDataSource.java
+14
-0
QueryInProcessStatusServiceImpl.java
...latform/service/impl/QueryInProcessStatusServiceImpl.java
+0
-2
No files found.
src/main/java/cn/qg/qaplatform/common/SwitchDataSource.java
View file @
fdd777c6
...
@@ -140,5 +140,19 @@ public class SwitchDataSource {
...
@@ -140,5 +140,19 @@ public class SwitchDataSource {
DynamicDataSource
.
dataSourcesMap
.
put
(
dbKey
,
druidDataSource
);
DynamicDataSource
.
dataSourcesMap
.
put
(
dbKey
,
druidDataSource
);
DynamicDataSource
.
setDataSource
(
dbKey
);
DynamicDataSource
.
setDataSource
(
dbKey
);
}
}
/**
* vcc2环境
*/
if
(
namespace
.
equals
(
"vcc2"
))
{
DruidDataSource
druidDataSource
=
new
DruidDataSource
();
String
url
=
Namespace
.
VCC2
.
getUrl
()
+
database
+
SUFFIX
;
String
dbKey
=
Namespace
.
VCC2
.
getKey
();
druidDataSource
.
setUrl
(
url
);
druidDataSource
.
setUsername
(
Namespace
.
VCC2
.
getUsername
());
druidDataSource
.
setPassword
(
Namespace
.
VCC2
.
getPassword
());
DynamicDataSource
.
dataSourcesMap
.
put
(
dbKey
,
druidDataSource
);
DynamicDataSource
.
setDataSource
(
dbKey
);
}
}
}
}
}
src/main/java/cn/qg/qaplatform/service/impl/QueryInProcessStatusServiceImpl.java
View file @
fdd777c6
...
@@ -17,9 +17,7 @@ public class QueryInProcessStatusServiceImpl implements QueryInProcessStatusServ
...
@@ -17,9 +17,7 @@ public class QueryInProcessStatusServiceImpl implements QueryInProcessStatusServ
@Override
@Override
public
void
queryFundingAssignProgress
(
String
namespace
,
String
phoneNo
,
Integer
fundId
,
String
symbol
)
throws
InterruptedException
{
public
void
queryFundingAssignProgress
(
String
namespace
,
String
phoneNo
,
Integer
fundId
,
String
symbol
)
throws
InterruptedException
{
log
.
info
(
"查询资方分配情况的参数:namespace="
+
namespace
+
" ,phoneNo="
+
phoneNo
+
" ,symbol="
+
symbol
);
String
userId
=
queryBasicLoanStatusDataService
.
getUserInfoByPhoneNo
(
namespace
,
phoneNo
).
getUserId
();
String
userId
=
queryBasicLoanStatusDataService
.
getUserInfoByPhoneNo
(
namespace
,
phoneNo
).
getUserId
();
log
.
info
(
"查询到的userId="
+
userId
);
while
(
true
)
{
while
(
true
)
{
Integer
searchResult
=
queryBasicLoanStatusDataService
.
getAssignFundIdByUserId
(
namespace
,
userId
);
Integer
searchResult
=
queryBasicLoanStatusDataService
.
getAssignFundIdByUserId
(
namespace
,
userId
);
log
.
info
(
searchResult
.
toString
());
log
.
info
(
searchResult
.
toString
());
...
...
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