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
51186a16
Commit
51186a16
authored
Aug 07, 2021
by
陈宏杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过滤未到还款日的数据
parent
e45b7adb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
RepaymentLoanInfoMapper.xml
...ntgroup/report/mapper/baihang/RepaymentLoanInfoMapper.xml
+4
-2
No files found.
src/main/resources/cn/quantgroup/report/mapper/baihang/RepaymentLoanInfoMapper.xml
View file @
51186a16
...
@@ -966,7 +966,7 @@
...
@@ -966,7 +966,7 @@
select
select
a.id reqID
a.id reqID
,'A' opCode
,'A' opCode
,DATE_FORMAT(
now()
,'%Y-%m-%dT%H:%i:%S') uploadTs
,DATE_FORMAT(
z.received_at
,'%Y-%m-%dT%H:%i:%S') uploadTs
,if(d.order_no is null,a.loan_application_history_id,d.order_no) loanId
,if(d.order_no is null,a.loan_application_history_id,d.order_no) loanId
,b.name name
,b.name name
,b.id_no pid
,b.id_no pid
...
@@ -994,7 +994,8 @@
...
@@ -994,7 +994,8 @@
where (a.repayment_status !=3 or (a.repayment_status =3 and a.repaid_at>=a.deadline))
where (a.repayment_status !=3 or (a.repayment_status =3 and a.repaid_at>=a.deadline))
and b.funding_corp_id in (1080,100040,1030,100030)
and b.funding_corp_id in (1080,100040,1030,100030)
and b.transaction_status in (2,5)
and b.transaction_status in (2,5)
and b.contract_term not in (2,3)) a
and b.contract_term not in (2,3)
and a.deadline
<
NOW()) a
left join xyqb_user.user_detail b on a.user_id=b.user_id
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.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.apply_quota_record d on c.order_no=d.order_no
...
@@ -1186,6 +1187,7 @@
...
@@ -1186,6 +1187,7 @@
and b.transaction_status in (2,5)
and b.transaction_status in (2,5)
and b.contract_term not in (2,3)
and b.contract_term not in (2,3)
and a.term_no=b.contract_term
and a.term_no=b.contract_term
and a.deadline
<
NOW()
group by a.loan_application_history_id
group by a.loan_application_history_id
</select>
</select>
...
...
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