public static boolean isExec(Connection conn) {
        Statement stmt = null;
        try {
            String sql = ConfigHelper.getProperty("schema.test");
            if(StringHelper.isEmpty(sql)) {
                sql = "select * from wf_process";
            }
            stmt = conn.createStatement();
            stmt.execute(sql);
            return true;
        } catch(Exception e) {
            return false;
        } finally {
            try {
                JdbcHelper.close(stmt);
            } catch (SQLException e) {
                //ignore
            }
        }
    }
public static boolean isExec(Connection conn) {
        Statement stmt = null;
        try {
            String sql = ConfigHelper.getProperty("schema.test");
            if(StringHelper.isEmpty(sql)) {
                sql = "select * from wf_process";
            }
            stmt = conn.createStatement();
            stmt.execute(sql);
            return true;
        } catch(Exception e) {
            return false;
        } finally {
            try {
                JdbcHelper.close(stmt);
            } catch (SQLException e) {
                
            }
        }
    }
public static boolean isExec ( Connection conn ) { Statement stmt = null ; try { String sql = ConfigHelper . getProperty ( "schema.test" ) ; if ( StringHelper . isEmpty ( sql ) ) { sql = "select * from wf_process" ; } stmt = conn . createStatement ( ) ; stmt . execute ( sql ) ; return true ; } catch ( Exception e ) { return false ; } finally { try { JdbcHelper . close ( stmt ) ; } catch ( SQLException e ) { //ignore } } }
判断是否已经执行过脚本[暂时根据wf_process表是否有数据]
@param conn 数据库连接
@return 是否执行成功
判断是否已经执行过脚本 [ 暂时根据wf_process表是否有数据 ]