| | |
| | | log.info("文章列表解析"); |
| | | Long companyId = (Long) node.getSystemDataValue("companyId"); |
| | | Articles param = (Articles) node.getParam(); |
| | | |
| | | 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<>(); |
| | |
| | | article.setColumnIds(colIds); |
| | | } |
| | | article.setCompanyId(companyId); |
| | | |
| | | if (StrUtil.isNotBlank(param.getType())) { |
| | | if ("hot".equals(param.getType())) { |
| | | article.setIsTop(1); |
| | | } |
| | | } |
| | | |
| | | IPage<ArticleEntity> listPage = articleMapper.selectArticleInPage(page, article); |
| | | |
| | | List<ArticleData> list = new ArrayList<>(); |