Commit bb86104b authored by 陈宏杰's avatar 陈宏杰

loan_status有误

parent 5692ea41
......@@ -1055,8 +1055,8 @@
,f.yqze overdueAmount
,i.dkye remainingAmount
,case when f.yqze>0 then '2'
when i.dkye=0 and if(DATEDIFF(a.next_deadline,a.repaid_at)>1,a.term_no,h.max_term) < f.max_term_no then '2'
when i.dkye=0 and if(DATEDIFF(a.next_deadline,a.repaid_at)>1,a.term_no,h.max_term)= f.max_term_no then '3'
when i.dkye=0 and if(DATEDIFF(a.next_deadline,a.repaid_at)>=1,a.term_no,h.max_term) < f.max_term_no then '2'
when i.dkye=0 and if(DATEDIFF(a.next_deadline,a.repaid_at)>=1,a.term_no,h.max_term)= f.max_term_no then '3'
when f.yqze=0 and i.dkye>0 then '1'
end as loanStatus
,if(f.yqze>0,'overdue','normal') termStatus
......
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