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
85398560
Commit
85398560
authored
Dec 15, 2021
by
陈宏杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不影响定时
parent
a64094de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
2 deletions
+62
-2
ApplyLoanInfoMapper.java
...quantgroup/report/mapper/baihang/ApplyLoanInfoMapper.java
+3
-0
BaiHangFileReportService.java
...roup/report/service/baihang/BaiHangFileReportService.java
+1
-1
ApplyLoanInfoMapper.xml
.../quantgroup/report/mapper/baihang/ApplyLoanInfoMapper.xml
+58
-1
No files found.
src/main/java/cn/quantgroup/report/mapper/baihang/ApplyLoanInfoMapper.java
View file @
85398560
...
@@ -63,4 +63,7 @@ public interface ApplyLoanInfoMapper {
...
@@ -63,4 +63,7 @@ public interface ApplyLoanInfoMapper {
List
<
ApplyLoanInfoZhuDai
>
findApplyInfoOfRefuse
(
BaiHangTimeRecord
timeRecord
);
List
<
ApplyLoanInfoZhuDai
>
findApplyInfoOfRefuse
(
BaiHangTimeRecord
timeRecord
);
List
<
ApplyLoanInfoZhuDai
>
findApplyLoanZhuDai
(
BaiHangTimeRecord
timeRecord
);
}
}
src/main/java/cn/quantgroup/report/service/baihang/BaiHangFileReportService.java
View file @
85398560
...
@@ -209,7 +209,7 @@ public class BaiHangFileReportService {
...
@@ -209,7 +209,7 @@ public class BaiHangFileReportService {
try
{
try
{
Stopwatch
queryWatch1
=
Stopwatch
.
createStarted
();
Stopwatch
queryWatch1
=
Stopwatch
.
createStarted
();
BaiHangTimeRecord
timeRecord
=
BaiHangTimeRecord
.
builder
().
startTime
(
starTime
).
endTime
(
endTime
).
build
();
BaiHangTimeRecord
timeRecord
=
BaiHangTimeRecord
.
builder
().
startTime
(
starTime
).
endTime
(
endTime
).
build
();
List
<
ApplyLoanInfoZhuDai
>
applyLoanInfos
=
applyLoanInfoMapper
.
find
RealTime
ApplyLoanZhuDai
(
timeRecord
);
List
<
ApplyLoanInfoZhuDai
>
applyLoanInfos
=
applyLoanInfoMapper
.
findApplyLoanZhuDai
(
timeRecord
);
log
.
info
(
"量化派助贷TO百行报送(A1)-非联合贷申请查询完成, 大小: {} , 耗时: {} "
,
(
applyLoanInfos
!=
null
?
applyLoanInfos
.
size
()
:
0
),
(
queryWatch1
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)
/
1000
)
+
".s"
);
log
.
info
(
"量化派助贷TO百行报送(A1)-非联合贷申请查询完成, 大小: {} , 耗时: {} "
,
(
applyLoanInfos
!=
null
?
applyLoanInfos
.
size
()
:
0
),
(
queryWatch1
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)
/
1000
)
+
".s"
);
if
(
applyLoanInfos
==
null
)
{
if
(
applyLoanInfos
==
null
)
{
applyLoanInfos
=
new
ArrayList
<
ApplyLoanInfoZhuDai
>();
applyLoanInfos
=
new
ArrayList
<
ApplyLoanInfoZhuDai
>();
...
...
src/main/resources/cn/quantgroup/report/mapper/baihang/ApplyLoanInfoMapper.xml
View file @
85398560
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
left join business_flow.apply_list i on d.order_no=i.apply_no
left join business_flow.apply_list i on d.order_no=i.apply_no
left join xyqb.loan_base_info j on a.loan_application_history_id=j.loan_id
left join xyqb.loan_base_info j on a.loan_application_history_id=j.loan_id
where a.funding_corp_id in (1080,100040)
where a.funding_corp_id in (1080,100040
,1030,100030
)
and a.contract_term not in (2,3)
and a.contract_term not in (2,3)
and a.transaction_status in (2,5)
and a.transaction_status in (2,5)
and case when i.created_at is null and h.created_at
<
=f.created_at then h.created_at
and case when i.created_at is null and h.created_at
<
=f.created_at then h.created_at
...
@@ -190,4 +190,61 @@
...
@@ -190,4 +190,61 @@
</select>
</select>
<select
id=
"findApplyLoanZhuDai"
parameterType=
"cn.quantgroup.report.domain.baihang.BaiHangTimeRecord"
resultType=
"cn.quantgroup.report.domain.baihang.ApplyLoanInfoZhuDai"
>
select
a.id reqID
,'A' opCode
,DATE_FORMAT(now(),'%Y-%m-%dT%H:%i:%S') uploadTs
,'1' isFinTechAgencyBusiness
,DATE_FORMAT(case when i.created_at is null and h.created_at
<
= f.created_at then h.created_at
when i.created_at is null and h.created_at>f.created_at then f.created_at
else i.created_at end,'%Y-%m-%dT%H:%i:%S') as applyDate
,if(d.order_no is null,a.loan_application_history_id,d.order_no) applyId
,'1' applyType
,b.name name
,'1' idType
,b.id_no pid
,b.phone_no mobile
,b.email emailAddress
,case when j.education=1 then '10'
when j.education=2 then '20'
when j.education=3 then '30'
when j.education in (4,6) then '40'
when j.education=5 then '50'
when j.education in (7,8) then '60'
else '70' end eduBackground
,'500' degree
,'1' guaranteeType
,'1' loanPurpose
,'99' customType
,'-1' applyAmount
,'8' livingCondition
,case when j.marry_status=1 then '10'
when j.marry_status=2 then '20'
when j.marry_status=4 then '30'
when j.marry_status=3 then '40'
else '90' end marriageStatus
from xyqb.loan_application_manifest_history a
left join xyqb_user.user_detail b on a.user_id=b.user_id
left join xyqb.loan_account_ext c on a.loan_application_history_id=c.loan_id
left join xyqb.apply_quota_record d on c.order_no=d.order_no
left join xyqb.loan_submit_info f on a.loan_application_history_id=f.loan_id
left join xyqb.loan_application_history h on a.loan_application_history_id=h.id
/* 2020.01.06表迁移 left join xyqb.quota_credit i on d.order_no=i.order_no */
left join business_flow.apply_list i on d.order_no=i.apply_no
left join xyqb.loan_base_info j on a.loan_application_history_id=j.loan_id
where a.funding_corp_id in (1080,100040)
and a.contract_term not in (2,3)
and a.transaction_status in (2,5)
and case when i.created_at is null and h.created_at
<
=f.created_at then h.created_at
when i.created_at is null and h.created_at>f.created_at then f.created_at
else i.created_at end >= #{startTime,jdbcType=VARCHAR}
and case when i.created_at is null and h.created_at
<
=f.created_at then h.created_at
when i.created_at is null and h.created_at>f.created_at then f.created_at
else i.created_at end
<
#{endTime,jdbcType=VARCHAR};
</select>
</mapper>
</mapper>
\ No newline at end of file
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