class GeneratorColumnServiceImpl extends ServiceImpl<GeneratorColumnMapper, GeneratorColumn> implements GeneratorColumnService {

    @Autowired
    private GeneratorColumnMapper generatorColumnMapper;

    @Transactional(rollbackFor = Exception.class)
    @Override
    public boolean addGeneratorColumn(String tableName, Boolean validateField) {<FILL_FUNCTION_BODY>}

    @Transactional(rollbackFor = Exception.class)
    @Override
    public boolean updateGeneratorColumn(GeneratorColumnDto dto) {
        Long id = dto.getId();
        GeneratorColumn generatorColumn = getById(id);
        if (generatorColumn == null) {
            throw new BusinessException("生成代码列不存在");
        }
        BeanUtils.copyProperties(dto, generatorColumn);
        return updateById(generatorColumn);
    }

    @Override
    public List<GeneratorColumnDbVo> getDbColumnListByTableName(String tableName) {
        return generatorColumnMapper.getDbColumnListByTableName(tableName);
    }

    @Override
    public List<GeneratorColumn> getGeneratorColumnList(String tableName) {
        return generatorColumnMapper.getGeneratorColumnList(tableName);
    }

}

        List<GeneratorColumnDbVo> columnDbVos = getDbColumnListByTableName(tableName);
        if (CollectionUtils.isEmpty(columnDbVos)) {
            throw new BusinessException("没有列信息");
        }
        List<GeneratorColumn> columns = GeneratorUtil.getGeneratorColumns(tableName, columnDbVos, validateField);
        return saveBatch(columns);
    
<no_super_class>