fix: 租户设置当图标没变更时保存后图标没了
This commit is contained in:
parent
8b7313208a
commit
2daf4b6b72
@ -359,7 +359,8 @@ public class SysTenantService : IDynamicApiController, ITransient
|
||||
await _sysOrgRep.UpdateAsync(u => new SysOrg() { Name = input.Name, Pid = input.OrgPid }, u => u.Id == input.OrgId);
|
||||
|
||||
// 更新系统用户
|
||||
await _sysUserRep.UpdateAsync(u => new SysUser() { Account = input.AdminAccount, RealName = input.RealName, Phone = input.Phone, Email = input.Email }, u => u.Id == input.UserId);
|
||||
await _sysUserRep.UpdateAsync(u => new SysUser() { Account = input.AdminAccount, RealName = input.RealName, Phone = input.Phone, Email = input.Email },
|
||||
u => u.Id == input.UserId);
|
||||
|
||||
await CacheTenant(input.Id);
|
||||
|
||||
@ -627,6 +628,7 @@ public class SysTenantService : IDynamicApiController, ITransient
|
||||
var tenant = await _sysTenantRep.GetFirstAsync(u => u.Id == input.TenantId);
|
||||
_ = tenant ?? throw Oops.Oh(ErrorCodeEnum.D1002);
|
||||
|
||||
var originLogo = tenant.Logo;
|
||||
tenant = input.Adapt<SysTenant>();
|
||||
tenant.Id = input.TenantId;
|
||||
|
||||
@ -665,7 +667,7 @@ public class SysTenantService : IDynamicApiController, ITransient
|
||||
}
|
||||
else
|
||||
{
|
||||
tenant.Logo = tenant.Logo;
|
||||
tenant.Logo = originLogo;
|
||||
}
|
||||
|
||||
await _sysTenantRep.AsUpdateable(tenant).UpdateColumns(u => new
|
||||
|
||||
Loading…
Reference in New Issue
Block a user