| | |
| | | |
| | | @Override |
| | | public void dataParser(AttrNode node) { |
| | | log.info("文章列表解析"); |
| | | // log.info("文章列表解析"); |
| | | Long companyId = (Long) node.getSystemDataValue("companyId"); |
| | | String companyCode = (String) node.getSystemDataValue("companyCode"); |
| | | String baseUrl = (String) node.getSystemDataValue("baseUrl"); |
| | | Object pageNo = node.getSystemDataValue("page"); |
| | | |
| | | Articles param = (Articles) node.getParam(); |
| | | if (pageNo != null) { |
| | | param.setPage(pageNo.toString()); |
| | | } |
| | | |
| | | ArticleEntity article = new ArticleEntity(); |
| | | Page<ArticleEntity> page = new Page<>(Integer.parseInt(param.getPage()), Integer.parseInt(param.getLimit())); |
| | | if (StrUtil.isEmpty(param.getColId())) { |
| | |
| | | article.setColumnIds(colIds); |
| | | } |
| | | article.setCompanyId(companyId); |
| | | article.setDelStatus(ArticleEntity.DELETE_STATUS_NO); |
| | | article.setDraftState(2); |
| | | |
| | | if (StrUtil.isNotBlank(param.getType())) { |
| | | if ("hot".equals(param.getType())) { |