Commit 4e653ae8 authored by 郝彦辉's avatar 郝彦辉

逾期和还款查询sql优化,增加xyqb_i_repayment_plan_bak和xyqb_i_loan_a_m_history_bak临时表

parent 204bab40
...@@ -28,13 +28,13 @@ import javax.sql.DataSource; ...@@ -28,13 +28,13 @@ import javax.sql.DataSource;
public class XyqbHistoryDataSourceConfig { 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}") //@Value("${baihang.mapper-locations}")
private String mapperLocations; private String mapperLocations = "classpath:cn/quantgroup/report/mapper/history/*.xml";
@Value("${baihang.type-aliases-package}") //@Value("${baihang.type-aliases-package}")
private String typeAliasesPackage; private String typeAliasesPackage = "cn.quantgroup.report.mapper.history";
@Value("${config-location}") @Value("${config-location}")
private String configLocation; private String configLocation;
...@@ -62,7 +62,7 @@ public class XyqbHistoryDataSourceConfig { ...@@ -62,7 +62,7 @@ public class XyqbHistoryDataSourceConfig {
return new DataSourceTransactionManager(xyqbHistoryDataSource); return new DataSourceTransactionManager(xyqbHistoryDataSource);
} }
@Bean(name = "xyqbHistorySqlSessionFactory") /* @Bean(name = "xyqbHistorySqlSessionFactory")
public SqlSessionFactory xyqbHistorySqlSessionFactory(@Qualifier("xyqbHistoryDataSource") DataSource xyqbHistoryDataSource) throws Exception { public SqlSessionFactory xyqbHistorySqlSessionFactory(@Qualifier("xyqbHistoryDataSource") DataSource xyqbHistoryDataSource) throws Exception {
final SqlSessionFactoryBean sessionFactory = new SqlSessionFactoryBean(); final SqlSessionFactoryBean sessionFactory = new SqlSessionFactoryBean();
sessionFactory.setDataSource(xyqbHistoryDataSource); sessionFactory.setDataSource(xyqbHistoryDataSource);
...@@ -72,12 +72,12 @@ public class XyqbHistoryDataSourceConfig { ...@@ -72,12 +72,12 @@ public class XyqbHistoryDataSourceConfig {
sessionFactory.setConfigLocation(new PathMatchingResourcePatternResolver() sessionFactory.setConfigLocation(new PathMatchingResourcePatternResolver()
.getResource(configLocation)); .getResource(configLocation));
return sessionFactory.getObject(); return sessionFactory.getObject();
} }*/
/*
@Bean(name = "xyqbHistorySqlSessionTemplate") @Bean(name = "xyqbHistorySqlSessionTemplate")
public SqlSessionTemplate xyqbHistorySqlSessionTemplate(@Qualifier("xyqbHistorySqlSessionFactory") SqlSessionFactory xyqbHistorySqlSessionFactory) throws Exception { public SqlSessionTemplate xyqbHistorySqlSessionTemplate(@Qualifier("xyqbHistorySqlSessionFactory") SqlSessionFactory xyqbHistorySqlSessionFactory) throws Exception {
return new SqlSessionTemplate(xyqbHistorySqlSessionFactory); return new SqlSessionTemplate(xyqbHistorySqlSessionFactory);
} }*/
@Bean(name = "xyqbHistoryJdbcTemplate") @Bean(name = "xyqbHistoryJdbcTemplate")
public JdbcTemplate primaryJdbcTemplate(@Qualifier("xyqbHistoryDataSource") DataSource dataSource) { public JdbcTemplate primaryJdbcTemplate(@Qualifier("xyqbHistoryDataSource") DataSource dataSource) {
......
...@@ -17,8 +17,8 @@ public class XyqbHistoryDataSourcePreperties { ...@@ -17,8 +17,8 @@ public class XyqbHistoryDataSourcePreperties {
@Value("${baihang.db.maxPoolSize}") @Value("${baihang.db.maxPoolSize}")
private int maxPoolSize; private int maxPoolSize;
@Value("${data.source.baihang.jdbcUrl}") //@Value("${data.source.baihang.jdbcUrl}")
private String 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}") //@Value("${data.source.baihang.username}")
private String username="xyqb_history_w"; private String username="xyqb_history_w";
......
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