class SpecialServiceImpl extends ServiceImpl<SpecialMapper, Special> implements SpecialService {

    /**
     * 页面数据
     */
    @Autowired
    private PageDataService pageDataService;

    @Override
    @Transactional(rollbackFor = Exception.class)
    public Special addSpecial(Special special) {<FILL_FUNCTION_BODY>}

    @Override
    @Transactional(rollbackFor = Exception.class)
    public boolean removeSpecial(String id) {

        //删除页面内容
        Special special = this.getById(id);
        pageDataService.removeById(special.getPageDataId());

        //删除专题
        return this.removeById(id);
    }
}

        //新建页面
        PageData pageData = new PageData();
        pageDataService.save(pageData);

        //设置专题页面
        special.setPageDataId(pageData.getId());
        this.save(special);
        return special;
    
<no_super_class>