| | |
| | | |
| | | if (columnEntity.getBeforeParentId() != -1) { |
| | | ColumnEntity parent = columnMapper.selectById(columnEntity.getBeforeParentId()); |
| | | String path = cmsProperties.getOutputPath() + parent.getPath() + "/" + columnEntity.getColumnCode(); |
| | | String path = FileUtils.path(cmsProperties.getOutputPath(), company.getCode()) + parent.getPath() + "/" + columnEntity.getColumnCode(); |
| | | log.info("删除路径为:{}", path); |
| | | FileUtil.del(path); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | column.setBeforeColumnCode("-1"); |
| | | column.setParentId(-1L); |
| | | columnMapper.updateById(column); |
| | | Map<String, Object> data = buildColumnData(column); |
| | | cmsCoreService.columnProcess(data, column.getListTemplate()); |
| | | } |