Commit fdd777c6 authored by 黎博's avatar 黎博

新增vcc2环境

parent 0132ad4d
...@@ -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);
}
} }
} }
...@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment