ow
This commit is contained in:
1 parent
4b92ee5fab
commit
a2a03f5475
35 files changed
+373
-201
No files matched your search
@@ -44,7 +44,7 @@ namespace CloudBuilder.Security.Entity
|
||||
public const string DB_PK_NAME = "pk_name";
|
||||
public const string DB_PK = "pk";
|
||||
|
||||
private string ProviderName { get; set; }
|
||||
private string ProviderName { get; set; }
|
||||
|
||||
public static SysTablePkeyViewEntity GetInstance(string providerName)
|
||||
{
|
||||
@@ -145,7 +145,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_TABLE_QUALIFIER ; 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_SYS_TABLE_PKEY_VIEW} 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_SYS_TABLE_PKEY_VIEW} 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