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
f41204fd
Commit
f41204fd
authored
Jun 02, 2020
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
百行助贷-非联合贷实时,还款、逾期查询原始表,不查询bak临时表
parent
7dcb7b7d
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
226 additions
and
20 deletions
+226
-20
XyqbHistoryDataSourceConfig.java
...onfig/datasource/history/XyqbHistoryDataSourceConfig.java
+6
-9
XyqbHistoryDataSourcePreperties.java
...g/datasource/history/XyqbHistoryDataSourcePreperties.java
+11
-9
QuantGroupZhuDaiReportToBaiHang.java
...uantgroup/report/job/QuantGroupZhuDaiReportToBaiHang.java
+3
-2
RepaymentLoanInfoMapper.xml
...ntgroup/report/mapper/baihang/RepaymentLoanInfoMapper.xml
+206
-0
No files found.
src/main/java/cn/quantgroup/report/config/datasource/history/XyqbHistoryDataSourceConfig.java
View file @
f41204fd
...
@@ -4,9 +4,6 @@ package cn.quantgroup.report.config.datasource.history;
...
@@ -4,9 +4,6 @@ package cn.quantgroup.report.config.datasource.history;
import
com.zaxxer.hikari.HikariConfig
;
import
com.zaxxer.hikari.HikariConfig
;
import
com.zaxxer.hikari.HikariDataSource
;
import
com.zaxxer.hikari.HikariDataSource
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.ibatis.session.SqlSessionFactory
;
import
org.mybatis.spring.SqlSessionFactoryBean
;
import
org.mybatis.spring.SqlSessionTemplate
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
...
@@ -14,8 +11,6 @@ import org.springframework.beans.factory.annotation.Value;
...
@@ -14,8 +11,6 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Import
;
import
org.springframework.context.annotation.Import
;
import
org.springframework.context.annotation.Primary
;
import
org.springframework.core.io.support.PathMatchingResourcePatternResolver
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.jdbc.datasource.DataSourceTransactionManager
;
import
org.springframework.jdbc.datasource.DataSourceTransactionManager
;
...
@@ -30,11 +25,13 @@ public class XyqbHistoryDataSourceConfig {
...
@@ -30,11 +25,13 @@ public class XyqbHistoryDataSourceConfig {
static
final
String
PACKAGE
=
"cn.quantgroup.report.mapper.history"
;
static
final
String
PACKAGE
=
"cn.quantgroup.report.mapper.history"
;
//@Value("${baihang.mapper-locations}")
@Value
(
"${baihang.mapper-locations2}"
)
private
String
mapperLocations
=
"classpath:cn/quantgroup/report/mapper/history/*.xml"
;
private
String
mapperLocations
;
//private String mapperLocations = "classpath:cn/quantgroup/report/mapper/history/*.xml";
//@Value("${baihang.type-aliases-package}")
@Value
(
"${baihang.type-aliases-package2}"
)
private
String
typeAliasesPackage
=
"cn.quantgroup.report.mapper.history"
;
private
String
typeAliasesPackage
;
//private String typeAliasesPackage = "cn.quantgroup.report.mapper.history";
@Value
(
"${config-location}"
)
@Value
(
"${config-location}"
)
private
String
configLocation
;
private
String
configLocation
;
...
...
src/main/java/cn/quantgroup/report/config/datasource/history/XyqbHistoryDataSourcePreperties.java
View file @
f41204fd
...
@@ -12,19 +12,21 @@ public class XyqbHistoryDataSourcePreperties {
...
@@ -12,19 +12,21 @@ public class XyqbHistoryDataSourcePreperties {
@Value
(
"${db.driver}"
)
@Value
(
"${db.driver}"
)
private
String
driverClass
;
private
String
driverClass
;
@Value
(
"${baihang.db.minPoolSize}"
)
@Value
(
"${baihang.db.minPoolSize
2
}"
)
private
int
minPoolSize
;
private
int
minPoolSize
;
@Value
(
"${baihang.db.maxPoolSize}"
)
@Value
(
"${baihang.db.maxPoolSize
2
}"
)
private
int
maxPoolSize
;
private
int
maxPoolSize
;
//@Value("${data.source.baihang.jdbcUrl
}")
@Value
(
"${data.source.baihang.jdbcUrl2
}"
)
//private String jdbcUrl="jdbc:mysql://172.20.6.29:4010/rc_real_time_data_pool?useUnicode=true&characterEncoding=UTF8&useSSL=false"
;
private
String
jdbcUrl
;
private
String
jdbcUrl
=
"jdbc:mysql://172.20.6.21:4010/rc_real_time_data_pool?useUnicode=true&characterEncoding=UTF8&useSSL=false"
;
//
private String jdbcUrl = "jdbc:mysql://172.20.6.21:4010/rc_real_time_data_pool?useUnicode=true&characterEncoding=UTF8&useSSL=false";
//@Value("${data.source.baihang.username}")
@Value
(
"${data.source.baihang.username2}"
)
private
String
username
=
"xyqb_history_w"
;
private
String
username
;
//private String username="xyqb_history_w";
//@Value("${data.source.baihang.password}")
@Value
(
"${data.source.baihang.password2}"
)
private
String
password
=
"KDb18asPu6iEz5lg"
;
private
String
password
;
//private String password="KDb18asPu6iEz5lg";
}
}
src/main/java/cn/quantgroup/report/job/QuantGroupZhuDaiReportToBaiHang.java
View file @
f41204fd
...
@@ -46,14 +46,15 @@ public class QuantGroupZhuDaiReportToBaiHang {
...
@@ -46,14 +46,15 @@ public class QuantGroupZhuDaiReportToBaiHang {
private
DingTalk
dingTalk
;
private
DingTalk
dingTalk
;
@Async
@Async
//
@Scheduled(cron = "0 0 05 * * ?")
@Scheduled
(
cron
=
"0 0 05 * * ?"
)
public
void
startZhuDaiReport
(){
public
void
startZhuDaiReport
(){
if
(
increment
()){
if
(
increment
()){
redisTemplate
.
expire
(
Constant
.
QG_ZHU_DAI_REPORT_LOCK_KEY
,
10
,
TimeUnit
.
SECONDS
);
redisTemplate
.
expire
(
Constant
.
QG_ZHU_DAI_REPORT_LOCK_KEY
,
10
,
TimeUnit
.
SECONDS
);
Stopwatch
stopwatch
=
Stopwatch
.
createStarted
();
Stopwatch
stopwatch
=
Stopwatch
.
createStarted
();
boolean
tableIsSyn
=
synLoanInfoHistoryTask
.
syn_historyAndplan_by_id
();
//boolean tableIsSyn = synLoanInfoHistoryTask.syn_historyAndplan_by_id();
boolean
tableIsSyn
=
true
;
if
(
tableIsSyn
){
if
(
tableIsSyn
){
try
{
try
{
...
...
src/main/resources/cn/quantgroup/report/mapper/baihang/RepaymentLoanInfoMapper.xml
View file @
f41204fd
This diff is collapsed.
Click to expand it.
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