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

存量D3报送

parent fe515d74
...@@ -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;
} }
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;
}
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);
} }
...@@ -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);
} }
...@@ -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
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