diff --git a/hsweb-system/hsweb-system-explorer/hsweb-system-explorer-service/hsweb-system-explorer-service-api/pom.xml b/hsweb-system/hsweb-system-explorer/hsweb-system-explorer-service/hsweb-system-explorer-service-api/pom.xml
deleted file mode 100644
index e312241e8..000000000
--- a/hsweb-system/hsweb-system-explorer/hsweb-system-explorer-service/hsweb-system-explorer-service-api/pom.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
-
- hsweb-system-explorer-service
- org.hswebframework.web
- 3.0-SNAPSHOT
-
- 4.0.0
-
- hsweb-system-explorer-service-api
-
-
-
- org.hswebframework.web
- hsweb-system-explorer-entity
- ${project.version}
-
-
- org.hswebframework.web
- hsweb-commons-service-api
- ${project.version}
-
-
-
\ No newline at end of file
diff --git a/hsweb-system/hsweb-system-explorer/hsweb-system-explorer-service/hsweb-system-explorer-service-api/src/main/java/org/hswebframework/web/service/explorer/simple/MenuService.java b/hsweb-system/hsweb-system-explorer/hsweb-system-explorer-service/hsweb-system-explorer-service-api/src/main/java/org/hswebframework/web/service/explorer/simple/MenuService.java
deleted file mode 100644
index d4411d154..000000000
--- a/hsweb-system/hsweb-system-explorer/hsweb-system-explorer-service/hsweb-system-explorer-service-api/src/main/java/org/hswebframework/web/service/explorer/simple/MenuService.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright 2016 http://www.hswebframework.org
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.hswebframework.web.service.explorer.simple;
-
-import org.hswebframework.web.entity.explorer.MenuEntity;
-import org.hswebframework.web.service.CrudService;
-
-import java.util.List;
-
-/**
- * TODO 完成注释
- *
- * @author zhouhao
- */
-public interface MenuService
- extends CrudService, String> {
- MenuEntity getByPermissionId(String permissionId);
-
- List> getByPermissionId(List permissionId);
-
-}
diff --git a/hsweb-system/hsweb-system-explorer/hsweb-system-explorer-service/hsweb-system-explorer-service-simple/src/main/java/org/hswebframework/web/service/explorer/simple/SimpleMenuService.java b/hsweb-system/hsweb-system-explorer/hsweb-system-explorer-service/hsweb-system-explorer-service-simple/src/main/java/org/hswebframework/web/service/explorer/simple/SimpleMenuService.java
deleted file mode 100644
index 21ab8093c..000000000
--- a/hsweb-system/hsweb-system-explorer/hsweb-system-explorer-service/hsweb-system-explorer-service-simple/src/main/java/org/hswebframework/web/service/explorer/simple/SimpleMenuService.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Copyright 2016 http://www.hswebframework.org
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.hswebframework.web.service.explorer.simple;
-
-import org.hswebframework.web.dao.explorer.MenuDao;
-import org.hswebframework.web.entity.authorization.ActionEntity;
-import org.hswebframework.web.entity.explorer.MenuEntity;
-import org.hswebframework.web.id.IDGenerator;
-import org.hswebframework.web.service.AbstractTreeSortService;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-
-/**
- * TODO 完成注释
- *
- * @author zhouhao
- */
-@Service("menuService")
-public class SimpleMenuService
- extends AbstractTreeSortService, String>
- implements MenuService {
-
- //dao api
- private MenuDao menuDao;
-
- @Override
- protected IDGenerator getIDGenerator() {
- return IDGenerator.MD5;
- }
-
- @Autowired
- public void setMenuDao(MenuDao menuDao) {
- this.menuDao = menuDao;
- }
-
- @Override
- public MenuDao getDao() {
- return menuDao;
- }
-
- @Override
- public List> getByPermissionId(List permissionId) {
- return createQuery().noPaging().where().in("permissionId", permissionId).list();
- }
-
- @Override
- public MenuEntity getByPermissionId(String permissionId) {
- return createQuery().noPaging().where().is("permissionId", permissionId).single();
- }
-}
diff --git a/hsweb-system/hsweb-system-explorer/hsweb-system-explorer-dao/hsweb-system-explorer-dao-mybatis/pom.xml b/hsweb-system/hsweb-system-menu/hsweb-system-menu-controller/pom.xml
similarity index 75%
rename from hsweb-system/hsweb-system-explorer/hsweb-system-explorer-dao/hsweb-system-explorer-dao-mybatis/pom.xml
rename to hsweb-system/hsweb-system-menu/hsweb-system-menu-controller/pom.xml
index 3e4031e92..ded69ba5b 100644
--- a/hsweb-system/hsweb-system-explorer/hsweb-system-explorer-dao/hsweb-system-explorer-dao-mybatis/pom.xml
+++ b/hsweb-system/hsweb-system-menu/hsweb-system-menu-controller/pom.xml
@@ -20,23 +20,29 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- hsweb-system-explorer-dao
+ hsweb-system-menu
org.hswebframework.web
3.0-SNAPSHOT
4.0.0
- hsweb-system-explorer-dao-mybatis
+ hsweb-system-menu-controller
+
+ javax.servlet
+ servlet-api
+ 2.5
+ true
+
org.hswebframework.web
- hsweb-system-explorer-dao-api
+ hsweb-system-menu-service-api
${project.version}
org.hswebframework.web
- hsweb-commons-dao-mybatis
+ hsweb-commons-controller
${project.version}
diff --git a/hsweb-system/hsweb-system-menu/hsweb-system-menu-controller/src/main/java/org/hswebframework/web/controller/menu/MenuController.java b/hsweb-system/hsweb-system-menu/hsweb-system-menu-controller/src/main/java/org/hswebframework/web/controller/menu/MenuController.java
new file mode 100644
index 000000000..99c4f68cd
--- /dev/null
+++ b/hsweb-system/hsweb-system-menu/hsweb-system-menu-controller/src/main/java/org/hswebframework/web/controller/menu/MenuController.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2016 http://www.hswebframework.org
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
+package org.hswebframework.web.controller.menu;
+
+import org.hswebframework.web.authorization.annotation.Authorize;
+import org.hswebframework.web.commons.entity.param.QueryParamEntity;
+import org.hswebframework.web.controller.GenericEntityController;
+import org.hswebframework.web.entity.menu.MenuEntity;
+import org.hswebframework.web.entity.menu.MenuGroupEntity;
+import org.hswebframework.web.logging.AccessLogger;
+import org.hswebframework.web.service.menu.MenuGroupService;
+import org.hswebframework.web.service.menu.MenuService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * 菜单分组
+ *
+ * @author hsweb-generator-online
+ */
+@RestController
+@RequestMapping("${hsweb.web.mappings.menu:menu}")
+@Authorize(permission = "menu")
+@AccessLogger("菜单")
+public class MenuController implements GenericEntityController, String, QueryParamEntity, MenuEntity> {
+
+ private MenuService menuService;
+
+ @Autowired
+ public void setMenuGroupService(MenuService menuService) {
+ this.menuService = menuService;
+ }
+
+ @Override
+ public MenuService getService() {
+ return menuService;
+ }
+}
diff --git a/hsweb-system/hsweb-system-menu/hsweb-system-menu-controller/src/main/java/org/hswebframework/web/controller/menu/MenuGroupController.java b/hsweb-system/hsweb-system-menu/hsweb-system-menu-controller/src/main/java/org/hswebframework/web/controller/menu/MenuGroupController.java
new file mode 100644
index 000000000..9fa0863bc
--- /dev/null
+++ b/hsweb-system/hsweb-system-menu/hsweb-system-menu-controller/src/main/java/org/hswebframework/web/controller/menu/MenuGroupController.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2016 http://www.hswebframework.org
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.hswebframework.web.controller.menu;
+
+import org.hswebframework.web.authorization.annotation.Authorize;
+import org.hswebframework.web.commons.entity.param.QueryParamEntity;
+import org.hswebframework.web.controller.GenericEntityController;
+import org.hswebframework.web.entity.menu.MenuGroupEntity;
+import org.hswebframework.web.logging.AccessLogger;
+import org.hswebframework.web.service.menu.MenuGroupService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * 菜单分组
+ *
+ * @author hsweb-generator-online
+ */
+@RestController
+@RequestMapping("${hsweb.web.mappings.menu-group:menu-group}")
+@Authorize(permission = "menu-group")
+@AccessLogger("菜单分组")
+public class MenuGroupController implements GenericEntityController {
+
+ private MenuGroupService menuGroupService;
+
+ @Override
+ public MenuGroupEntity modelToEntity(MenuGroupEntity model, MenuGroupEntity entity) {
+ return model;
+ }
+
+ @Autowired
+ public void setMenuGroupService(MenuGroupService menuGroupService) {
+ this.menuGroupService = menuGroupService;
+ }
+
+ @Override
+ public MenuGroupService getService() {
+ return menuGroupService;
+ }
+}
diff --git a/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-api/pom.xml b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-api/pom.xml
new file mode 100644
index 000000000..2dbb7d466
--- /dev/null
+++ b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-api/pom.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+ hsweb-system-menu-dao
+ org.hswebframework.web
+ 3.0-SNAPSHOT
+
+ 4.0.0
+
+ hsweb-system-menu-dao-api
+
+
+
+ org.hswebframework.web
+ hsweb-system-menu-entity
+ ${project.version}
+
+
+ org.hswebframework.web
+ hsweb-commons-dao-api
+ ${project.version}
+
+
+
+
\ No newline at end of file
diff --git a/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-api/src/main/java/org/hswebframework/web/dao/menu/MenuDao.java b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-api/src/main/java/org/hswebframework/web/dao/menu/MenuDao.java
new file mode 100644
index 000000000..34c6db18e
--- /dev/null
+++ b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-api/src/main/java/org/hswebframework/web/dao/menu/MenuDao.java
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2016 http://www.hswebframework.org
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ */
+
+package org.hswebframework.web.dao.menu;
+
+import org.hswebframework.web.dao.CrudDao;
+import org.hswebframework.web.entity.menu.MenuEntity;
+
+/**
+ * TODO 完成注释
+ *
+ * @author zhouhao
+ */
+public interface MenuDao extends CrudDao, String> {
+}
diff --git a/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-api/src/main/java/org/hswebframework/web/dao/menu/MenuGroupBindDao.java b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-api/src/main/java/org/hswebframework/web/dao/menu/MenuGroupBindDao.java
new file mode 100644
index 000000000..3639de439
--- /dev/null
+++ b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-api/src/main/java/org/hswebframework/web/dao/menu/MenuGroupBindDao.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2016 http://www.hswebframework.org
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.hswebframework.web.dao.menu;
+
+import org.hswebframework.web.dao.CrudDao;
+import org.hswebframework.web.entity.menu.MenuGroupBindEntity;
+
+/**
+* 菜单分组关联 DAO接口
+* @author hsweb-generator-online
+ */
+public interface MenuGroupBindDao extends CrudDao {
+}
diff --git a/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-api/src/main/java/org/hswebframework/web/dao/menu/MenuGroupDao.java b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-api/src/main/java/org/hswebframework/web/dao/menu/MenuGroupDao.java
new file mode 100644
index 000000000..6ddc31cf9
--- /dev/null
+++ b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-api/src/main/java/org/hswebframework/web/dao/menu/MenuGroupDao.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2016 http://www.hswebframework.org
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.hswebframework.web.dao.menu;
+
+import org.hswebframework.web.dao.CrudDao;
+import org.hswebframework.web.entity.menu.MenuGroupEntity;
+
+/**
+* 菜单分组 DAO接口
+* @author hsweb-generator-online
+ */
+public interface MenuGroupDao extends CrudDao {
+}
diff --git a/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-mybatis/pom.xml b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-mybatis/pom.xml
new file mode 100644
index 000000000..1070a0dec
--- /dev/null
+++ b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-mybatis/pom.xml
@@ -0,0 +1,44 @@
+
+
+
+
+
+ hsweb-system-menu-dao
+ org.hswebframework.web
+ 3.0-SNAPSHOT
+
+ 4.0.0
+
+ hsweb-system-menu-dao-mybatis
+
+
+
+ org.hswebframework.web
+ hsweb-system-menu-dao-api
+ ${project.version}
+
+
+ org.hswebframework.web
+ hsweb-commons-dao-mybatis
+ ${project.version}
+
+
+
\ No newline at end of file
diff --git a/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-mybatis/src/main/resources/org/hswebframework/web/dao/mybatis/mappers/menu/MenuGroupBindMapper.xml b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-mybatis/src/main/resources/org/hswebframework/web/dao/mybatis/mappers/menu/MenuGroupBindMapper.xml
new file mode 100644
index 000000000..7600f8529
--- /dev/null
+++ b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-mybatis/src/main/resources/org/hswebframework/web/dao/mybatis/mappers/menu/MenuGroupBindMapper.xml
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ delete from S_MENU_GROUP_BIND where u_id =#{id}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-mybatis/src/main/resources/org/hswebframework/web/dao/mybatis/mappers/menu/MenuGroupMapper.xml b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-mybatis/src/main/resources/org/hswebframework/web/dao/mybatis/mappers/menu/MenuGroupMapper.xml
new file mode 100644
index 000000000..b91901d12
--- /dev/null
+++ b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-mybatis/src/main/resources/org/hswebframework/web/dao/mybatis/mappers/menu/MenuGroupMapper.xml
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ delete from S_MENU_GROUP where u_id =#{id}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/hsweb-system/hsweb-system-explorer/hsweb-system-explorer-dao/hsweb-system-explorer-dao-mybatis/src/main/resources/org/hswebframework/web/dao/mybatis/mappers/explorer/MenuMapper.xml b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-mybatis/src/main/resources/org/hswebframework/web/dao/mybatis/mappers/menu/MenuMapper.xml
similarity index 95%
rename from hsweb-system/hsweb-system-explorer/hsweb-system-explorer-dao/hsweb-system-explorer-dao-mybatis/src/main/resources/org/hswebframework/web/dao/mybatis/mappers/explorer/MenuMapper.xml
rename to hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-mybatis/src/main/resources/org/hswebframework/web/dao/mybatis/mappers/menu/MenuMapper.xml
index b3c36d130..a83aa5a26 100644
--- a/hsweb-system/hsweb-system-explorer/hsweb-system-explorer-dao/hsweb-system-explorer-dao-mybatis/src/main/resources/org/hswebframework/web/dao/mybatis/mappers/explorer/MenuMapper.xml
+++ b/hsweb-system/hsweb-system-menu/hsweb-system-menu-dao/hsweb-system-menu-dao-mybatis/src/main/resources/org/hswebframework/web/dao/mybatis/mappers/menu/MenuMapper.xml
@@ -20,8 +20,8 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
-
-