| | |
| | | map.put("templatePath", columnEntity.getPath()); |
| | | map.put("companyId", companyId); |
| | | |
| | | executor.execute(() -> { |
| | | cmsCoreService.columnProcess(map, columnEntity.getListTemplate()); |
| | | releaseIndex(companyId); |
| | | }); |
| | | |
| | | if (type != 1) { |
| | | executor.execute(() -> { |
| | | if (columnEntity.getParentId() == 0L) { |
| | | List<ColumnEntity> columns = columnMapper.selectColumnByParentId(columnEntity.getParentId(), companyId, 2); |
| | | List<ColumnEntity> columns = columnMapper.selectColumnByParentId(columnEntity.getId(), companyId, 2); |
| | | if (CollUtil.isNotEmpty(columns)) { |
| | | for (ColumnEntity column : columns) { |
| | | map.put("id", column.getId()); |
| | |
| | | List<Long> ids = articleMapper.selectArticleIdsByColumnId(columnEntity.getId(), companyId, type); |
| | | cmsCoreService.articlesProcess(map, ids, columnEntity.getArticleTemplate(), columnEntity.getPath()); |
| | | |
| | | releaseIndex(companyId); |
| | | }); |
| | | |
| | | executor.execute(() -> { |
| | | cmsCoreService.columnProcess(map, columnEntity.getListTemplate()); |
| | | releaseIndex(companyId); |
| | | }); |
| | | } |