Helius
2022-07-07 2e6277a8cf7a1d78b5151ac42f1aa785205cc907
src/main/java/com/xcong/farmer/cms/core/handler/ArticlesDataParserHandler.java
@@ -35,11 +35,21 @@
        Long companyId = (Long) node.getSystemDataValue("companyId");
        Articles param = (Articles) node.getParam();
        if (StrUtil.isEmpty(param.getColId())) {
            Page<ArticleEntity> page = new Page<>(Integer.parseInt(param.getPage()), Integer.parseInt(param.getLimit()));
            ArticleEntity article = new ArticleEntity();
        Page<ArticleEntity> page = new Page<>(Integer.parseInt(param.getPage()), Integer.parseInt(param.getLimit()));
        if (StrUtil.isEmpty(param.getColId())) {
            article.setColumnCode(param.getCode());
        } else {
            List<String> colIdsStr = StrUtil.split(param.getColId(), ',');
            List<Long> colIds = new ArrayList<>();
            colIdsStr.forEach(item -> {
                colIds.add(Long.parseLong(item));
            });
            article.setColumnIds(colIds);
        }
            article.setCompanyId(companyId);
            IPage<ArticleEntity> listPage = articleMapper.selectArticleInPage(page, article);
@@ -50,9 +60,6 @@
            }
            node.setData(list);
        } else {
        }
    }
    public ArticleData entityToData(ArticleEntity article) {