class SysGeneratorServiceImpl extends ServiceImpl implements SysGeneratorService {
    @Autowired
    private SysGeneratorMapper sysGeneratorMapper;

    @Override
    public PageResult<Map<String, Object>> queryList(Map<String, Object> map) {
        Page<Map<String, Object>> page = new Page<>(MapUtils.getInteger(map, "page"), MapUtils.getInteger(map, "limit"));

        List<Map<String, Object>> list = sysGeneratorMapper.queryList(page, map);
        return PageResult.<Map<String, Object>>builder().data(list).code(0).count(page.getTotal()).build();
    }

    @Override
    public Map<String, String> queryTable(String tableName) {
        return sysGeneratorMapper.queryTable(tableName);
    }

    @Override
    public List<Map<String, String>> queryColumns(String tableName) {
        return sysGeneratorMapper.queryColumns(tableName);
    }

    @Override
    public byte[] generatorCode(String[] tableNames) {<FILL_FUNCTION_BODY>}
}

        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        try (
                ZipOutputStream zip = new ZipOutputStream(outputStream)
        ) {
            for (String tableName : tableNames) {
                //查询表信息
                Map<String, String> table = queryTable(tableName);
                //查询列信息
                List<Map<String, String>> columns = queryColumns(tableName);
                //生成代码
                GenUtils.generatorCode(table, columns, zip);
            }
        } catch (IOException e) {
            log.error("generatorCode-error: ", e);
        }
        return outputStream.toByteArray();
    
<methods>public void <init>() ,public BaseMapper#RAW getBaseMapper() ,public Class#RAW getEntityClass() ,public Map#RAW getMap(Wrapper#RAW) ,public java.lang.Object getObj(Wrapper#RAW, Function#RAW) ,public java.lang.Object getOne(Wrapper#RAW, boolean) ,public Optional#RAW getOneOpt(Wrapper#RAW, boolean) ,public boolean removeBatchByIds(Collection#RAW, int) ,public boolean removeBatchByIds(Collection#RAW, int, boolean) ,public boolean removeById(java.io.Serializable) ,public boolean removeById(java.io.Serializable, boolean) ,public boolean removeByIds(Collection#RAW) ,public boolean saveBatch(Collection#RAW, int) ,public boolean saveOrUpdate(java.lang.Object) ,public boolean saveOrUpdateBatch(Collection#RAW, int) ,public boolean updateBatchById(Collection#RAW, int) <variables>protected BaseMapper#RAW baseMapper,private final org.springframework.core.convert.ConversionService conversionService,protected final Class#RAW entityClass,protected final org.apache.ibatis.logging.Log log,protected final Class#RAW mapperClass,private volatile org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory,protected final Class#RAW[] typeArguments