@Query(value="select * from one_click_data where user_id=?1 and credit_status = ?2 and loan_status=?3 order by id desc limit 1",nativeQuery=true)
@Query(value="select * from one_click_data where user_id= ?1 and credit_status = ?2 and loan_status= ?3 and channel_code= ?4 order by id desc limit 1",nativeQuery=true)
// @Bean(initMethod = "init", name = "zookeeperRegistryCenter")
// public ZookeeperRegistryCenter regCenter(@Value("${elaticjob.zookeeper.server-lists}") final String serverList, @Value("${elaticjob.zookeeper.namespace}") final String namespace) {
// return new ZookeeperRegistryCenter(new ZookeeperConfiguration(serverList, namespace));
@Query(value="SELECT * FROM xyqb.repayment_plan t WHERE t.loan_application_history_id = ?1 AND t.repayment_status in (0,2) order by t.term_no asc",nativeQuery=true)
@@ -15,4 +16,6 @@ public interface LoanApplicationHistoryRepository extends CrudRepository<LoanApp
...
@@ -15,4 +16,6 @@ public interface LoanApplicationHistoryRepository extends CrudRepository<LoanApp
LoanApplicationHistoryfindById(Longid);
LoanApplicationHistoryfindById(Longid);
@Query(value="select * from loan_application_history where user_id= ?1 and business_type= ?2 and is_active= 1 order by id desc limit 1",nativeQuery=true)
@Query(value="select * from quota_credit where user_id = ?1 and is_active = 1 and credit_status=1 order by id desc limit 1",nativeQuery=true)
@Query(value="select * from quota_credit where user_id = ?1 and channel = ?2 and is_active = 1 and credit_status = 1 order by id desc limit 1",nativeQuery=true)
@@ -27,6 +30,33 @@ public interface WaitingFundingCorpOperatePeopleRepository extends CrudRepositor
...
@@ -27,6 +30,33 @@ public interface WaitingFundingCorpOperatePeopleRepository extends CrudRepositor
@Query(value="select sum(fund_amount) ,count(*) from xyqb.waiting_funding_corp_operate_people where funding_corp_progress=0 and funding_corp_id= ?1",nativeQuery=true)
@Query(value="select sum(fund_amount) ,count(*) from xyqb.waiting_funding_corp_operate_people where funding_corp_progress=0 and funding_corp_id= ?1",nativeQuery=true)
MapqueryLendingRecordCount(LongfundId);
MapqueryLendingRecordCount(LongfundId);
/**
* 查询待放款金额总数
*
* @param fundId
* @return
*/
@Query(value="select sum(fund_amount) from xyqb.waiting_funding_corp_operate_people where funding_corp_progress=0 and funding_corp_id= ?1",nativeQuery=true)