From fa3513f531fe1c54f01165b64875d87b86a80964 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期五, 16 四月 2021 17:04:59 +0800
Subject: [PATCH] bug修复

---
 springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/VillageApi.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/VillageApi.java b/springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/VillageApi.java
index 6480eb1..fba53b4 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/VillageApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/VillageApi.java
@@ -34,7 +34,9 @@
 @RestController
 @RequestMapping("/villagemanager/")
 public class VillageApi extends BaseController {
-    private String excelConvenientUrl = "http://panzhihua.nhys.cdnhxx.com/web/实有房屋导入模板.xlsx";
+//    private String excelConvenientUrl = "http://panzhihua.nhys.cdnhxx.com/web/实有房屋导入模板.xlsx";
+    @Value("${excel.excelConvenientUrl}")
+    private String excelConvenientUrl;
     @Resource
     private CommunityService communityService;
 
@@ -73,8 +75,8 @@
 
     @ApiOperation(value = "下载模板-实有房屋")
     @GetMapping(value = "/serve/download/template")
-    public R downloadTemplate(HttpServletResponse response) throws IOException, SftpException {
-        return R.ok(excelConvenientUrl);
+    public R downloadTemplate(HttpServletResponse response){
+        return R.ok(excelConvenientUrl + "实有房屋导入模板.xlsx");
     }
 
     @ApiOperation(value = "excel导入实有房屋")

--
Gitblit v1.7.1