Merge remote-tracking branch 'origin/feature/REQ-2227' into feature/REQ-2227

This commit is contained in:
zhansihu 2024-04-15 22:28:28 +08:00
commit 10b79d1e33

View File

@ -260,15 +260,15 @@ public class SaasRoleController implements TyrSaasRoleApi {
if (exchangeRole == null) {
throw new ServiceException("未找到可以移动的位置");
}
roleService.saveOrUpdate(SaveOrUpdateRoleVO.builder()
.id(saasRole.getId())
.sort(exchangeRole.getSort())
.build());
SaasRole newSaasRole = new SaasRole();
newSaasRole.setId(saasRole.getId());
newSaasRole.setSort(exchangeRole.getSort());
roleService.updateById(newSaasRole);
roleService.saveOrUpdate(SaveOrUpdateRoleVO.builder()
.id(exchangeRole.getId())
.sort(saasRole.getSort())
.build());
SaasRole oldSaasRole = new SaasRole();
oldSaasRole.setId(exchangeRole.getId());
oldSaasRole.setSort(saasRole.getSort());
roleService.updateById(oldSaasRole);
return ApiResult.ok();
}