| | |
| | | IMasterAuthorService masterAuthorService; |
| | | |
| | | public static final String key = "process"; |
| | | |
| | | /** |
| | | * |
| | | * @description: 创建menumapping对象 |
| | | * @param json menu mapping josn数据 |
| | | * @param session 用户从session里获取 |
| | | * @return: menu mapping对象 |
| | | * |
| | | */ |
| | | @Override |
| | | public MenuMapping create(String json, HttpSession session) { |
| | | JSONObject jsonObject = JSONObject.parseObject(json); |
| | |
| | | //menuMapping.setMaintainFieldId(maintainId); |
| | | return create(menuMapping); |
| | | } |
| | | |
| | | @Deprecated |
| | | private Maintain createMaintain(String userId, JSONObject jsonObject, String flowsId) { |
| | | Maintain maintain = new Maintain(); |
| | | maintain.setCreateTime(new Date()); |
| | |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | * |
| | | * @description: 保存menumapping对象 |
| | | * @param menuMapping menumapping 对象 |
| | | * @return: menu mapping对象 |
| | | * |
| | | */ |
| | | @Override |
| | | public MenuMapping create(MenuMapping menuMapping) { |
| | | menuMapping.setCreateTime(new Date()); |
| | |
| | | |
| | | return this.updateById(menuMapping); |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @description: 通过主题获取menumapping |
| | | * @param id 主题id |
| | | * @param session 用户从session里获取 |
| | | * @return: menu mapping对象 |
| | | * |
| | | */ |
| | | @Override |
| | | public Result getMapping(HttpSession session, String id) { |
| | | SysMenu sysMenu = menuService.selectById(id); |
| | |
| | | return Result.success(mapping); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @description: 通过表名获取主题 |
| | | * @param tableName 表名 |
| | | * @return: 主题对象 |
| | | * |
| | | */ |
| | | @Override |
| | | public SysMenu getMenuByTableName(String tableName) { |
| | | MenuMapping menuMapping = selectOne(new EntityWrapper<MenuMapping>().eq("table_name", tableName).orderBy("create_time desc")); |
| | |
| | | SysMenu sysMenu = menuService.selectById(menuId); |
| | | return sysMenu; |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @description: 通过主题获取menumapping |
| | | * @param id 主题id |
| | | * @param session 用户从session里获取 |
| | | * @return: menu mapping对象 |
| | | * |
| | | */ |
| | | @Override |
| | | public MenuMapping getMenuMappingByTableName(String tableName) { |
| | | MenuMapping menuMapping = selectOne(new EntityWrapper<MenuMapping>().eq("table_name", tableName).orderBy("create_time desc")); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * |
| | | * @description: 通过主题获取menumapping |
| | | * @param menuId 主题id |
| | | * @return: menumapping对象 |
| | | * |
| | | */ |
| | | @Override |
| | | public String getTableNameByMenu(String menuId) { |
| | | MenuMapping menuMapping = selectOne(new EntityWrapper<MenuMapping>().eq("menu_id", menuId).orderBy("create_time desc")); |