Commit 805cb120 authored by shangying's avatar shangying

返回的类型数据不对

parent b22b4240
...@@ -71,13 +71,20 @@ public class OneClickDataController { ...@@ -71,13 +71,20 @@ public class OneClickDataController {
@GetMapping("/v1/channelCode") @GetMapping("/v1/type")
public Result OneClickDataTypeList(){ public Result OneClickDataTypeList(){
List<OneClickTypeModel> oneClickTypeModelList= commMethod.getTypeList(); List<OneClickTypeModel> oneClickTypeModelList= commMethod.getTypeList();
return Result.buildSuccess(commMethod); return Result.buildSuccess(oneClickTypeModelList);
} }
@PostMapping("/v1/repayment")
public Result OneClickDataRepayment(@RequestParam (value = "queueMsg") String queueMsg){
log.info("打印一下queueMsg={}",queueMsg);
oneClickDataQueueOperateService.getCreditNotifyIsSucess(queueMsg);
return Result.buildSuccess("ok");
}
public Result OnekeyApply(OneClickModel oneClickModel) { public Result OnekeyApply(OneClickModel oneClickModel) {
return oneClickDataOperateService.OnekeyApply(oneClickModel); return oneClickDataOperateService.OnekeyApply(oneClickModel);
......
...@@ -55,7 +55,7 @@ public class OneClickDataQueueOperateServiceImpl implements OneClickDataQueueOpe ...@@ -55,7 +55,7 @@ public class OneClickDataQueueOperateServiceImpl implements OneClickDataQueueOpe
// 提现成功了,收到放款成功消息,修改oneClickData的放款状态 // 提现成功了,收到放款成功消息,修改oneClickData的放款状态
oneClickDataRespository.updateLoanStatusById(LoanStatusEnum.CHECK_REPAYMENT_PLAN.getCode(), oneClickData.getId()); oneClickDataRespository.updateLoanStatusById(LoanStatusEnum.CHECK_REPAYMENT_PLAN.getCode(), oneClickData.getId());
if(oneClickData.getType() == TypeEnum.LIQUIDATION.getCode()){ if(oneClickData.getType() == TypeEnum.LIQUIDATION.getCode()){
getApplyRepament(oneClickData);
} }
}else{ }else{
log.info("没有找到对应需要处理的订单"); log.info("没有找到对应需要处理的订单");
...@@ -65,6 +65,10 @@ public class OneClickDataQueueOperateServiceImpl implements OneClickDataQueueOpe ...@@ -65,6 +65,10 @@ public class OneClickDataQueueOperateServiceImpl implements OneClickDataQueueOpe
} }
public void getApplyRepament(OneClickData oneClickData){
repaymentPlatService.whetherHaveRepayment0rdersList(oneClickData);
}
public void authAmountAuditNotify(OneClickData oneClickData, QuotaCredit quotaCredit)throws Exception{ public void authAmountAuditNotify(OneClickData oneClickData, QuotaCredit quotaCredit)throws Exception{
if(oneClickData.getType() != TypeEnum.APPLY.getCode()) { if(oneClickData.getType() != TypeEnum.APPLY.getCode()) {
creditGrantingService.authAmountAuditNotifyMq(oneClickData, quotaCredit); creditGrantingService.authAmountAuditNotifyMq(oneClickData, quotaCredit);
......
...@@ -60,7 +60,7 @@ public class RepaymentPlatServiceImpl implements RepaymentPlatService { ...@@ -60,7 +60,7 @@ public class RepaymentPlatServiceImpl implements RepaymentPlatService {
} }
public List<RepaymentPlan> greRepaymentList(String loanId){ public List<RepaymentPlan> greRepaymentList(String loanId){
return iRepaymentPlanRepository.findByLoanIdAndRepaymentStatusAndCurrentRepayment(Long.parseLong(loanId)); return iRepaymentPlanRepository.findByLoanApplicationHistoryIdAndRepaymentStatusAndCurrentRepayment(Long.parseLong(loanId));
} }
@Override @Override
......
...@@ -26,7 +26,7 @@ public interface IRepaymentPlanRepository extends JpaRepository<RepaymentPlan, L ...@@ -26,7 +26,7 @@ public interface IRepaymentPlanRepository extends JpaRepository<RepaymentPlan, L
List<RepaymentPlan> findByUserId(long userid); List<RepaymentPlan> findByUserId(long userid);
@Query(value = "SELECT * FROM xyqb.repayment_plan t WHERE t.loan_application_history_id = ?1 AND t.repayment_status in (0,2) AND current_repayment=0.00 order by t.term_no asc", nativeQuery = true) @Query(value = "SELECT * FROM xyqb.repayment_plan t WHERE t.loan_application_history_id = ?1 AND t.repayment_status in (0,2) AND current_repayment=0.00 order by t.term_no asc", nativeQuery = true)
List<RepaymentPlan> findByLoanIdAndRepaymentStatusAndCurrentRepayment(Long loanId); List<RepaymentPlan> findByLoanApplicationHistoryIdAndRepaymentStatusAndCurrentRepayment(Long loanId);
List<RepaymentPlan> findByLoanApplicationHistoryIdAndTermNo(Long loanId, Integer termNo); List<RepaymentPlan> findByLoanApplicationHistoryIdAndTermNo(Long loanId, Integer termNo);
......
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