| | |
| | | import com.xiaopeng.common.security.utils.SecurityUtils; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.shardingsphere.transaction.annotation.ShardingSphereTransactionType; |
| | | import org.apache.shardingsphere.transaction.core.TransactionType; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | * @param dto 新增权限组请求 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Transactional |
| | | @ShardingSphereTransactionType(TransactionType.BASE) |
| | | public void addGroup(SysGroupAddDTO dto) { |
| | | // 校验组名唯一性 |
| | | if (!checkGroupNameUnique(dto.getGroupName(), null)) { |
| | |
| | | * @param dto 编辑权限组请求 |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Transactional |
| | | @ShardingSphereTransactionType(TransactionType.BASE) |
| | | public void editGroup(SysGroupEditDTO dto) { |
| | | // 校验权限组是否存在 |
| | | SysGroup existGroup = this.getById(dto.getId()); |