Merge remote-tracking branch 'origin/feature/REQ-2227' into feature/REQ-2227
This commit is contained in:
commit
10b79d1e33
@ -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