소스 검색

增加还款计划查询接口

liuj 1 개월 전
부모
커밋
6dcf047d15
1개의 변경된 파일16개의 추가작업 그리고 5개의 파일을 삭제
  1. 16 5
      src/main/java/com/sunxung/factoring/web/smb/SmbApiController.java

+ 16 - 5
src/main/java/com/sunxung/factoring/web/smb/SmbApiController.java

@@ -7,11 +7,10 @@ import com.sunxung.factoring.entity.smb.SmbIndustry;
 import com.sunxung.factoring.entity.smb.SmbRefinancingInfo;
 import com.sunxung.factoring.entity.smb.vo.FinancingAdvancePaymentVo;
 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.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;
 
@@ -26,6 +25,9 @@ public class SmbApiController {
     @Autowired
     private IFinancingAdvancePaymentInfoService financingAdvancePaymentInfoService;
 
+    @Autowired
+    private SMBApiService smbApiService;
+
     /**
      * 还款计划查询
      *
@@ -57,6 +59,15 @@ public class SmbApiController {
         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);
+    }
 
 }