| | |
| | | import com.yuanchu.limslaboratory.service.RoleManagerService; |
| | | import com.yuanchu.limslaboratory.utils.JsonUtil; |
| | | import com.yuanchu.limslaboratory.utils.MyUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | * @Date 2023/8/23 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class RoleManagerServiceImpl implements RoleManagerService { |
| | | |
| | | @Resource |
| | |
| | | ,createTime |
| | | )); |
| | | }); |
| | | if(roleMenuList.size()<1){ |
| | | roleMenuList.add(new RoleMenu(null,nextId,39L,false,false,false,false,createTime)); |
| | | } |
| | | //roleMenuAddList.forEach(System.out::println); |
| | | int i = roleManageMapper.insertBatchRoleMenu(roleMenuList); |
| | | return insert>0&&i>0; |
| | |
| | | String type=null; |
| | | Map<String, Object> stringIntegerMap = roleManageMapper.selctInterFaceType(url); |
| | | if(Objects.isNull(stringIntegerMap)){ |
| | | log.warn("没有====》"+url+"请求资源"); |
| | | throw new AuthException("403","没有该资源"); |
| | | } |
| | | String of = String.valueOf(stringIntegerMap.get("type")); |