李昊 4 jaren geleden
bovenliggende
commit
b0137927a4
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      gx_api/GxPress/Repository/GxPress.Repository.Implement/MiddleRepository.cs

+ 3 - 3
gx_api/GxPress/Repository/GxPress.Repository.Implement/MiddleRepository.cs

@@ -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;
         }