|  |  |  | 
|---|
|  |  |  | import com.matrix.core.pojo.PaginationVO; | 
|---|
|  |  |  | import com.matrix.system.app.dto.ArticleListDto; | 
|---|
|  |  |  | import com.matrix.system.hive.action.BaseController; | 
|---|
|  |  |  | import com.matrix.system.hive.action.util.QueryUtil; | 
|---|
|  |  |  | import com.matrix.system.hive.bean.Article; | 
|---|
|  |  |  | import com.matrix.system.hive.bean.ArticleType; | 
|---|
|  |  |  | import com.matrix.system.hive.bean.SysShopInfo; | 
|---|
|  |  |  | import com.matrix.system.hive.dao.ArticleDao; | 
|---|
|  |  |  | import com.matrix.system.hive.dao.SysShopInfoDao; | 
|---|
|  |  |  | import com.matrix.system.hive.service.ArticleService; | 
|---|
|  |  |  | import com.matrix.system.hive.service.ArticleTypeService; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ArticleTypeService articleTypeService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ArticleService articleService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @GetMapping(value = "/findKnowledgeType") | 
|---|
|  |  |  | public AjaxResult findKnowledgeType() { | 
|---|
|  |  |  | ArticleType type = new ArticleType(); | 
|---|
|  |  |  | type.setShopId(getMe().getShopId()); | 
|---|
|  |  |  | type.setParentId(0L); | 
|---|
|  |  |  | type.setCompanyId(getMe().getCompanyId()); | 
|---|
|  |  |  | return AjaxResult.buildSuccessInstance(articleTypeService.findByModel(type)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | pageVo.setLimit(articleListDto.getPageSize()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Article article = new Article(); | 
|---|
|  |  |  | QueryUtil.setQueryLimitCom(article); | 
|---|
|  |  |  | article.setTypeId(articleListDto.getTypeId()); | 
|---|
|  |  |  | return AjaxResult.buildSuccessInstance(articleService.findApiArticleListInPage(article, pageVo)); | 
|---|
|  |  |  | } | 
|---|