fix app update bug
This commit is contained in:
parent
498605fce0
commit
fe2b26c76c
@ -221,8 +221,8 @@ public class AppsService : ApplicationService
|
||||
item.InterfaceCode = interfaceDic[item.InterfaceId];
|
||||
});
|
||||
|
||||
await _appScopeRepository.UpdateAsync(x => new AppScopeEntity { IsDeleted = true },
|
||||
x => x.AppId == input.Id);
|
||||
await _appScopeRepository.AsUpdateable().SetColumns(x => x.IsDeleted == true)
|
||||
.Where(x => x.AppId == input.Id).ExecuteCommandAsync();
|
||||
await _appScopeRepository.InsertRangeAsync(appScopeEntitys);
|
||||
|
||||
ts.Complete();
|
||||
|
||||
@ -9,11 +9,6 @@ namespace InterfaceForward.Repositories.App.Services
|
||||
/// </summary>
|
||||
public class AppScopeRepository : BasicRepository<AppScopeEntity>, IAppScopeRepository, IScopedDependency
|
||||
{
|
||||
public Task<bool> UpdateAsync(Expression<Func<AppScopeEntity, object>> columns, Expression<Func<AppScopeEntity, bool>> whereExpression)
|
||||
{
|
||||
return Context.Updateable<AppScopeEntity>().Where(whereExpression).UpdateColumns(columns).ExecuteCommandHasChangeAsync();
|
||||
}
|
||||
|
||||
public IUpdateable<AppScopeEntity> AsUpdateable()
|
||||
{
|
||||
return Context.Updateable<AppScopeEntity>();
|
||||
|
||||
@ -8,8 +8,6 @@ namespace InterfaceForward.Repositories.App.Services
|
||||
/// </summary>
|
||||
public interface IAppScopeRepository
|
||||
{
|
||||
Task<bool> UpdateAsync(Expression<Func<AppScopeEntity, object>> columns, Expression<Func<AppScopeEntity, bool>> whereExpression);
|
||||
|
||||
ISugarQueryable<AppScopeEntity> AsQueryable();
|
||||
|
||||
Task<bool> InsertRangeAsync(List<AppScopeEntity> insertObjs);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user