LIVE_YE 1 жил өмнө
parent
commit
1b7b5684b9

+ 10 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/loan/LoanApplicationController.java

@@ -123,4 +123,14 @@ public class LoanApplicationController extends BaseController {
     public AjaxResult sh(@RequestBody ReviewComments reviewComments) {
         return loanApplicationService.sh(reviewComments);
     }
+
+    /**
+     * 导出模板附件
+     */
+    @PreAuthorize("@ss.hasPermi('system:export:mb')")
+    @Log(title = "导出模板附件", businessType = BusinessType.DELETE)
+    @GetMapping("/export/mb")
+    public AjaxResult exportMb(String type,LoanApplication loanApplication) {
+        return loanApplicationService.exportMb(type,loanApplication);
+    }
 }

+ 0 - 9
ruoyi-admin/src/main/java/com/ruoyi/web/controller/loan/ShareholderFjController.java

@@ -97,13 +97,4 @@ public class ShareholderFjController extends BaseController {
         return toAjax(shareholderFjService.deleteShareholderFjByShareholderFjIds(shareholderFjIds));
     }
 
-    /**
-     * 导出模板附件
-     */
-    @PreAuthorize("@ss.hasPermi('system:export:mb')")
-    @Log(title = "导出模板附件", businessType = BusinessType.DELETE)
-    @GetMapping("/export/mb")
-    public AjaxResult exportMb(String type) {
-        return shareholderFjService.exportMb(type);
-    }
 }

+ 2 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/loan/ILoanApplicationService.java

@@ -75,4 +75,6 @@ public interface ILoanApplicationService
      * @return
      */
     public AjaxResult sh(ReviewComments reviewComments);
+
+    AjaxResult exportMb(String type,LoanApplication loanApplication);
 }

+ 0 - 1
ruoyi-system/src/main/java/com/ruoyi/system/service/loan/IShareholderFjService.java

@@ -62,5 +62,4 @@ public interface IShareholderFjService
      */
     public int deleteShareholderFjByShareholderFjId(Long shareholderFjId);
 
-    AjaxResult exportMb(String type);
 }

+ 9 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/loan/impl/LoanApplicationServiceImpl.java

@@ -271,4 +271,13 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
     public AjaxResult sh(ReviewComments reviewComments) {
         return null;
     }
+
+    @Override
+    public AjaxResult exportMb(String type, LoanApplication loanApplication) {
+        String path="/profile/mb/";
+        if("1".equals(type)){
+            path = path + "委托担保申请书.doc";
+        }
+        return AjaxResult.success(path);
+    }
 }

+ 0 - 8
ruoyi-system/src/main/java/com/ruoyi/system/service/loan/impl/ShareholderFjServiceImpl.java

@@ -97,12 +97,4 @@ public class ShareholderFjServiceImpl implements IShareholderFjService
         return shareholderFjMapper.deleteShareholderFjByShareholderFjId(shareholderFjId);
     }
 
-    @Override
-    public AjaxResult exportMb(String type) {
-        String path="/profile/mb/";
-        if("1".equals(type)){
-            path = path + "委托担保申请书.doc";
-        }
-        return AjaxResult.success(path);
-    }
 }