| | |
| | | @Autowired |
| | | private RoleManageMapper roleManageMapper; |
| | | |
| | | @Autowired |
| | | private MenuMapper menuMapper; |
| | | |
| | | @SneakyThrows |
| | | @Override |
| | | public void run(String... args) throws Exception { |
| | |
| | | .noneMatch(value2 -> value2.equals(map1.get("url"))) // 查找不同的值 |
| | | ).collect(Collectors.toList()); |
| | | if(differentMaps.size()>0){ |
| | | |
| | | int insertInterfaceList = roleManageMapper.insertInterfaceList(differentMaps); |
| | | if (insertInterfaceList>0) log.info("新增接口成功!"); |
| | | if (insertInterfaceList>0) log.info(String.valueOf(differentMaps));log.info("新增接口成功!"); |
| | | }else { |
| | | log.info("无需增加新的接口!"); |
| | | } |