|
@@ -7,11 +7,10 @@ import com.sunxung.factoring.entity.smb.SmbIndustry;
|
|
import com.sunxung.factoring.entity.smb.SmbRefinancingInfo;
|
|
import com.sunxung.factoring.entity.smb.SmbRefinancingInfo;
|
|
import com.sunxung.factoring.entity.smb.vo.FinancingAdvancePaymentVo;
|
|
import com.sunxung.factoring.entity.smb.vo.FinancingAdvancePaymentVo;
|
|
import com.sunxung.factoring.service.smb.IFinancingAdvancePaymentInfoService;
|
|
import com.sunxung.factoring.service.smb.IFinancingAdvancePaymentInfoService;
|
|
|
|
+import com.sunxung.factoring.service.smbApi.api.SMBApiService;
|
|
|
|
+import com.sunxung.factoring.service.smbApi.resp.RepayPlanResp;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
@@ -26,6 +25,9 @@ public class SmbApiController {
|
|
@Autowired
|
|
@Autowired
|
|
private IFinancingAdvancePaymentInfoService financingAdvancePaymentInfoService;
|
|
private IFinancingAdvancePaymentInfoService financingAdvancePaymentInfoService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private SMBApiService smbApiService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 还款计划查询
|
|
* 还款计划查询
|
|
*
|
|
*
|
|
@@ -57,6 +59,15 @@ public class SmbApiController {
|
|
return new ResponseJson(financingAdvancePaymentInfoService.repayPlanQuery(advancePaymentInfo));
|
|
return new ResponseJson(financingAdvancePaymentInfoService.repayPlanQuery(advancePaymentInfo));
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 还款计划查询
|
|
|
|
+ *
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/repayPlanQuery")
|
|
|
|
+ public ResponseJson repayPlanQuery(String openId, String duebillNo) {
|
|
|
|
+ RepayPlanResp repayPlanResp = smbApiService.repayPlanQuery(openId, duebillNo);
|
|
|
|
+ return new ResponseJson(repayPlanResp);
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|