class DatabaseSetDao extends BaseDao {

    public Long getDbSetTotalCountByAppid(Paging<DatabaseSet> paging) throws SQLException {
        String sql = "SELECT count(1) \n" +
                "FROM databaseset t1 \n" +
                "inner join project_dbset_relation t2 on t2.dbset_id = t1.id \n" +
                "inner join dal_group t3 on t1.group_id = t3.id\n" +
                "inner join project t4 on t2.project_id = t4.id\n" +
                "where t4.app_id = " + paging.getData().getApp_id();
        return this.getCount(sql);
    }

}