ow
This commit is contained in:
1 parent
4b92ee5fab
commit
a2a03f5475
35 files changed
+373
-201
No files matched your search
+2
-2
@@ -64,7 +64,7 @@ namespace CloudBuilder.Security.Entity
|
||||
public const string DB_AMEND_INDC = "amend_indc";
|
||||
public const string DB_DELETE_INDC = "delete_indc";
|
||||
|
||||
private string ProviderName { get; set; }
|
||||
private string ProviderName { get; set; }
|
||||
|
||||
public static SecurityGroupPermissionDependentEntity GetInstance(string providerName)
|
||||
{
|
||||
@@ -174,7 +174,7 @@ namespace CloudBuilder.Security.Entity
|
||||
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
|
||||
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_GROUP_NAME ;
|
||||
int offset = limit * (start - 1);
|
||||
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_GROUP_PERMISSION_DEPENDENT} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
|
||||
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_GROUP_PERMISSION_DEPENDENT} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
|
||||
}
|
||||
|
||||
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
|
||||
|
||||
Reference in new issue
Block a user