feat:(REQ-2227) 修改角色移位
This commit is contained in:
parent
b809351a54
commit
fff04954fc
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user