From a81e87aa02e922834f64afa7517711ef372fa97b Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 21 Jan 2021 18:07:25 +0800
Subject: [PATCH] modify

---
 zq-erp/src/main/java/com/matrix/system/app/action/ApiKnowledgeAction.java |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/zq-erp/src/main/java/com/matrix/system/app/action/ApiKnowledgeAction.java b/zq-erp/src/main/java/com/matrix/system/app/action/ApiKnowledgeAction.java
index ca4fc07..db24fd7 100644
--- a/zq-erp/src/main/java/com/matrix/system/app/action/ApiKnowledgeAction.java
+++ b/zq-erp/src/main/java/com/matrix/system/app/action/ApiKnowledgeAction.java
@@ -32,7 +32,7 @@
     @GetMapping(value = "/findKnowledgeType")
     public AjaxResult findKnowledgeType() {
         ArticleType type = new ArticleType();
-        type.setShopId(getMe().getShopId());
+        type.setShopId(getMe().getCompanyId());
         type.setParentId(0L);
         return AjaxResult.buildSuccessInstance(articleTypeService.findByModel(type));
     }
@@ -49,4 +49,13 @@
         return AjaxResult.buildSuccessInstance(articleService.findApiArticleListInPage(article, pageVo));
     }
 
+    @ApiOperation(value = "获取文章详情页", notes = "获取文章详情页")
+    @GetMapping(value = "/findArticleDetail/{id}")
+    public AjaxResult findArticleDetail(@PathVariable("id") Long id) {
+        Article article = articleService.findById(id);
+        AjaxResult ajaxResult = AjaxResult.buildSuccessInstance("获取成功");
+        ajaxResult.putInMap("article", article);
+        return ajaxResult;
+    }
+
 }

--
Gitblit v1.9.1