Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
baihang-report
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
data-spider
baihang-report
Commits
4e653ae8
Commit
4e653ae8
authored
Nov 11, 2019
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
逾期和还款查询sql优化,增加xyqb_i_repayment_plan_bak和xyqb_i_loan_a_m_history_bak临时表
parent
204bab40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
XyqbHistoryDataSourceConfig.java
...onfig/datasource/history/XyqbHistoryDataSourceConfig.java
+9
-9
XyqbHistoryDataSourcePreperties.java
...g/datasource/history/XyqbHistoryDataSourcePreperties.java
+2
-2
No files found.
src/main/java/cn/quantgroup/report/config/datasource/history/XyqbHistoryDataSourceConfig.java
View file @
4e653ae8
...
...
@@ -28,13 +28,13 @@ import javax.sql.DataSource;
public
class
XyqbHistoryDataSourceConfig
{
static
final
String
PACKAGE
=
"cn.quantgroup.report.mapper.
baihang
"
;
static
final
String
PACKAGE
=
"cn.quantgroup.report.mapper.
history
"
;
@Value
(
"${baihang.mapper-locations}"
)
private
String
mapperLocations
;
//
@Value("${baihang.mapper-locations}")
private
String
mapperLocations
=
"classpath:cn/quantgroup/report/mapper/history/*.xml"
;
@Value
(
"${baihang.type-aliases-package}"
)
private
String
typeAliasesPackage
;
//
@Value("${baihang.type-aliases-package}")
private
String
typeAliasesPackage
=
"cn.quantgroup.report.mapper.history"
;
@Value
(
"${config-location}"
)
private
String
configLocation
;
...
...
@@ -62,7 +62,7 @@ public class XyqbHistoryDataSourceConfig {
return
new
DataSourceTransactionManager
(
xyqbHistoryDataSource
);
}
@Bean
(
name
=
"xyqbHistorySqlSessionFactory"
)
/*
@Bean(name = "xyqbHistorySqlSessionFactory")
public SqlSessionFactory xyqbHistorySqlSessionFactory(@Qualifier("xyqbHistoryDataSource") DataSource xyqbHistoryDataSource) throws Exception {
final SqlSessionFactoryBean sessionFactory = new SqlSessionFactoryBean();
sessionFactory.setDataSource(xyqbHistoryDataSource);
...
...
@@ -72,12 +72,12 @@ public class XyqbHistoryDataSourceConfig {
sessionFactory.setConfigLocation(new PathMatchingResourcePatternResolver()
.getResource(configLocation));
return sessionFactory.getObject();
}
}
*/
/*
@Bean(name = "xyqbHistorySqlSessionTemplate")
public SqlSessionTemplate xyqbHistorySqlSessionTemplate(@Qualifier("xyqbHistorySqlSessionFactory") SqlSessionFactory xyqbHistorySqlSessionFactory) throws Exception {
return new SqlSessionTemplate(xyqbHistorySqlSessionFactory);
}
}
*/
@Bean
(
name
=
"xyqbHistoryJdbcTemplate"
)
public
JdbcTemplate
primaryJdbcTemplate
(
@Qualifier
(
"xyqbHistoryDataSource"
)
DataSource
dataSource
)
{
...
...
src/main/java/cn/quantgroup/report/config/datasource/history/XyqbHistoryDataSourcePreperties.java
View file @
4e653ae8
...
...
@@ -17,8 +17,8 @@ public class XyqbHistoryDataSourcePreperties {
@Value
(
"${baihang.db.maxPoolSize}"
)
private
int
maxPoolSize
;
@Value
(
"${data.source.baihang.jdbcUrl}"
)
private
String
jdbcUrl
;
//
@Value("${data.source.baihang.jdbcUrl}")
private
String
jdbcUrl
=
"jdbc:mysql://172.20.6.29:4010/rc_real_time_data_pool?useUnicode=true&characterEncoding=UTF8&useSSL=false"
;
//@Value("${data.source.baihang.username}")
private
String
username
=
"xyqb_history_w"
;
...
...
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