类 SqlExporter


  • public class SqlExporter
    extends Exporter
    SQL语句导出器
    版本:
    1.0 2016年4月4日
    作者:
    帮帮组
    • 构造器详细资料

      • SqlExporter

        public SqlExporter​(java.lang.Object accountId,
                           java.lang.String sql,
                           java.lang.String excelFileName)
        参数:
        accountId - 操作人编号
        sql - 导出数据使用的SQL语句
        excelFileName - 导出的Excel文件名称,不需要带扩展名
    • 方法详细资料

      • export

        public java.lang.String[] export()
                                  throws BizException
        从类复制的说明: Exporter
        导出数据到文件中,此步骤执行完成后,可以使用/download?Temp/{UserId}.dat下载导出的文件。
        指定者:
        export 在类中 Exporter
        返回:
        下载到客户端的文件信息。 String[0]:文件地址,{file.attachment.directory}/Temp/{UserId}.dat
        String[1]:文件名称
        抛出:
        BizException - 逻辑异常