| | |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.limslaboratory.exception.AuthException; |
| | | import com.yuanchu.limslaboratory.mapper.MenuMapper; |
| | | import com.yuanchu.limslaboratory.mapper.RoleManageMapper; |
| | | import com.yuanchu.limslaboratory.pojo.Menu; |
| | |
| | | public Map<String, Object> getUrlType(String url) { |
| | | String type=null; |
| | | Map<String, Object> stringIntegerMap = roleManageMapper.selctInterFaceType(url); |
| | | if(Objects.isNull(stringIntegerMap)){ |
| | | throw new AuthException("403","没有该资源"); |
| | | } |
| | | String of = String.valueOf(stringIntegerMap.get("type")); |
| | | switch (of) { |
| | | case "0": |
| | |
| | | break; |
| | | } |
| | | stringIntegerMap.put("type",type); |
| | | System.out.println(type); |
| | | return stringIntegerMap; |
| | | } |
| | | |