|
@@ -145,7 +145,7 @@ namespace GxPress.Repository.Implement
|
|
|
.Where(nameof(Middle.Id), request.MiddleIdFirst));
|
|
|
int sort = middleSecond.Sort;
|
|
|
var sql =
|
|
|
- $"update ccpph.tede_middle set Sort=Sort-1 where UserId={middleFirst.UserId} and FolderType={middleFirst.FolderType} and Sort<={sort} and Id not in({middleFirst.Id}) and id>0";
|
|
|
+ $"update tede_middle set Sort=Sort-1 where UserId={middleFirst.UserId} and FolderType={middleFirst.FolderType} and Sort<={sort} and Id not in({middleFirst.Id}) and id>0";
|
|
|
return await connection.ExecuteAsync(sql) > 0;
|
|
|
}
|
|
|
else
|
|
@@ -155,7 +155,7 @@ namespace GxPress.Repository.Implement
|
|
|
.Where(nameof(Middle.Id), request.MiddleIdFirst));
|
|
|
int sort = middleSecond.Sort;
|
|
|
var sql =
|
|
|
- $"update ccpph.tede_middle set Sort=Sort+1 where UserId={middleFirst.UserId} and FolderType={middleFirst.FolderType} and Sort<={sort} and Id not in({middleFirst.Id}) and id>0";
|
|
|
+ $"update tede_middle set Sort=Sort+1 where UserId={middleFirst.UserId} and FolderType={middleFirst.FolderType} and Sort<={sort} and Id not in({middleFirst.Id}) and id>0";
|
|
|
return await connection.ExecuteAsync(sql) > 0;
|
|
|
}
|
|
|
}
|
|
@@ -175,7 +175,7 @@ namespace GxPress.Repository.Implement
|
|
|
var connection = database.GetConnection();
|
|
|
//return await _repository.UpdateAsync(Q.Set(nameof(Middle.IsTop), !middle.IsTop).Where(nameof(Middle.Id), id)) > 0;
|
|
|
var isTop = middle.IsTop == true ? 0 : 1;
|
|
|
- var sql = $"update ccpph.tede_middle set IsTop={isTop} where id={id}";
|
|
|
+ var sql = $"update tede_middle set IsTop={isTop} where id={id}";
|
|
|
return await connection.ExecuteAsync(sql) > 0;
|
|
|
}
|
|
|
|