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
c0329b15
Commit
c0329b15
authored
Aug 04, 2021
by
陈宏杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
存量D3报送
parent
fe515d74
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
466 additions
and
0 deletions
+466
-0
BaiHangTimeRecord.java
...n/quantgroup/report/domain/baihang/BaiHangTimeRecord.java
+2
-0
LoanApplicationHistoryIdInfo.java
...p/report/domain/baihang/LoanApplicationHistoryIdInfo.java
+17
-0
RepaymentLoanInfoMapper.java
...tgroup/report/mapper/baihang/RepaymentLoanInfoMapper.java
+19
-0
RepaymentLoanInfoDbMapper.java
...group/report/mapper/master/RepaymentLoanInfoDbMapper.java
+2
-0
BaiHangFileReportService.java
...roup/report/service/baihang/BaiHangFileReportService.java
+186
-0
RepaymentLoanInfoMapper.xml
...ntgroup/report/mapper/baihang/RepaymentLoanInfoMapper.xml
+228
-0
RepaymentLoanInfoDbMapper.xml
...tgroup/report/mapper/master/RepaymentLoanInfoDbMapper.xml
+12
-0
No files found.
src/main/java/cn/quantgroup/report/domain/baihang/BaiHangTimeRecord.java
View file @
c0329b15
...
@@ -17,4 +17,6 @@ public class BaiHangTimeRecord {
...
@@ -17,4 +17,6 @@ public class BaiHangTimeRecord {
//funding_corp_id 等于的条件
//funding_corp_id 等于的条件
private
Integer
eqFundingCorpId
;
private
Integer
eqFundingCorpId
;
private
String
loanApplicationHistoryId
;
}
}
src/main/java/cn/quantgroup/report/domain/baihang/LoanApplicationHistoryIdInfo.java
0 → 100644
View file @
c0329b15
package
cn
.
quantgroup
.
report
.
domain
.
baihang
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
@Data
public
class
LoanApplicationHistoryIdInfo
implements
Serializable
{
private
String
loanApplicationHistoryId
;
private
Date
repaymentReceivedAt
;
private
Date
deadline
;
}
src/main/java/cn/quantgroup/report/mapper/baihang/RepaymentLoanInfoMapper.java
View file @
c0329b15
package
cn
.
quantgroup
.
report
.
mapper
.
baihang
;
package
cn
.
quantgroup
.
report
.
mapper
.
baihang
;
import
cn.quantgroup.report.domain.baihang.BaiHangTimeRecord
;
import
cn.quantgroup.report.domain.baihang.BaiHangTimeRecord
;
import
cn.quantgroup.report.domain.baihang.LoanApplicationHistoryIdInfo
;
import
cn.quantgroup.report.domain.baihang.RepaymentInfoZhuDai
;
import
cn.quantgroup.report.domain.baihang.RepaymentInfoZhuDai
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
...
@@ -104,4 +105,22 @@ public interface RepaymentLoanInfoMapper {
...
@@ -104,4 +105,22 @@ public interface RepaymentLoanInfoMapper {
List
<
RepaymentInfoZhuDai
>
repairNormalLH
(
@Param
(
"planIds"
)
List
<
Long
>
planIds
);
List
<
RepaymentInfoZhuDai
>
repairNormalLH
(
@Param
(
"planIds"
)
List
<
Long
>
planIds
);
/**
* 查询D3逾期记录
*/
List
<
RepaymentInfoZhuDai
>
queryOverdueRecordOfD3
(
BaiHangTimeRecord
baiHangTimeRecord
);
/**
* 查询D3还款记录
*/
List
<
RepaymentInfoZhuDai
>
queryRepayMentRecordOfD3
(
BaiHangTimeRecord
baiHangTimeRecord
);
/**
* 查询D3逾期记录 每隔30日
*/
List
<
RepaymentInfoZhuDai
>
queryD3OverdueRecordOf30Day
(
BaiHangTimeRecord
baiHangTimeRecord
);
List
<
LoanApplicationHistoryIdInfo
>
queryLoanApplicationHistoryIdInfo
(
BaiHangTimeRecord
baiHangTimeRecord
);
}
}
src/main/java/cn/quantgroup/report/mapper/master/RepaymentLoanInfoDbMapper.java
View file @
c0329b15
...
@@ -37,4 +37,6 @@ public interface RepaymentLoanInfoDbMapper {
...
@@ -37,4 +37,6 @@ public interface RepaymentLoanInfoDbMapper {
*/
*/
List
<
RepaymentLoanInfoLog
>
findByD3RecordId
(
String
[]
recordIdArray
);
List
<
RepaymentLoanInfoLog
>
findByD3RecordId
(
String
[]
recordIdArray
);
void
batchSaveRepaymentLoanInfoLog
(
List
<
RepaymentInfoZhuDai
>
list
);
}
}
src/main/java/cn/quantgroup/report/service/baihang/BaiHangFileReportService.java
View file @
c0329b15
This diff is collapsed.
Click to expand it.
src/main/resources/cn/quantgroup/report/mapper/baihang/RepaymentLoanInfoMapper.xml
View file @
c0329b15
This diff is collapsed.
Click to expand it.
src/main/resources/cn/quantgroup/report/mapper/master/RepaymentLoanInfoDbMapper.xml
View file @
c0329b15
...
@@ -92,4 +92,16 @@
...
@@ -92,4 +92,16 @@
</foreach>
</foreach>
</select>
</select>
<insert
id=
"batchSaveRepaymentLoanInfoLog"
parameterType=
"java.util.List"
>
insert into repayment_loan_info_zhudai
(record_id,req_id ,name,pid ,mobile ,op_code ,upload_ts ,loan_id ,term_no ,term_status ,target_repayment_date ,real_repayment_date,planned_payment ,target_repayment,real_repayment ,overdue_amount,remaining_amount,overdue_status,loan_status,status_confirm_at)
values
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
(#{item.recordId, jdbcType=VARCHAR},#{item.reqID, jdbcType=VARCHAR},#{item.name, jdbcType=VARCHAR},#{item.pid, jdbcType=VARCHAR},#{item.mobile, jdbcType=VARCHAR},#{item.opCode, jdbcType=VARCHAR},
#{item.uploadTs, jdbcType=VARCHAR},#{item.loanId, jdbcType=VARCHAR},#{item.termNo, jdbcType=INTEGER},#{item.termStatus, jdbcType=INTEGER},#{item.targetRepaymentDate, jdbcType=VARCHAR},#{item.realRepaymentDate, jdbcType=VARCHAR},
#{item.plannedPayment, jdbcType=DECIMAL},#{item.targetRepayment, jdbcType=DECIMAL},#{item.realRepayment, jdbcType=DECIMAL},#{item.overdueAmount, jdbcType=DECIMAL},#{item.remainingAmount, jdbcType=DECIMAL},
#{item.overdueStatus, jdbcType=INTEGER},#{item.loanStatus, jdbcType=INTEGER},#{item.statusConfirmAt, jdbcType=VARCHAR})
</foreach>
</insert>
</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