From 167877ce7843f0831d64ea9f5c0637682104008b Mon Sep 17 00:00:00 2001 From: tamguo Date: Wed, 25 Jul 2018 17:19:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/sys/web/CorpAdminController.java | 39 ++++ .../modules/sys/web/SecAdminController.java | 38 +++ .../resources/templates/include/leftMenu.html | 4 +- .../modules/sys/corpAdmin/index.html | 131 +++++++++++ .../templates/modules/sys/secAdmin/index.html | 218 ++++++++++++++++++ 5 files changed, 428 insertions(+), 2 deletions(-) create mode 100644 tamguo-oms/src/main/java/com/tamguo/modules/sys/web/CorpAdminController.java create mode 100644 tamguo-oms/src/main/java/com/tamguo/modules/sys/web/SecAdminController.java create mode 100644 tamguo-oms/src/main/resources/templates/modules/sys/corpAdmin/index.html create mode 100644 tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/index.html diff --git a/tamguo-oms/src/main/java/com/tamguo/modules/sys/web/CorpAdminController.java b/tamguo-oms/src/main/java/com/tamguo/modules/sys/web/CorpAdminController.java new file mode 100644 index 0000000..a413eec --- /dev/null +++ b/tamguo-oms/src/main/java/com/tamguo/modules/sys/web/CorpAdminController.java @@ -0,0 +1,39 @@ +package com.tamguo.modules.sys.web; + +import java.util.Map; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.servlet.ModelAndView; + +import com.baomidou.mybatisplus.plugins.Page; +import com.tamguo.modules.sys.model.SysUserEntity; +import com.tamguo.modules.sys.model.condition.SysUserCondition; +import com.tamguo.modules.sys.service.ISysUserService; +import com.tamguo.modules.sys.utils.Result; + +@Controller +@RequestMapping(path="sys/corpAdmin") +public class CorpAdminController { + + private final String CORPADMIN_INDEX_PAGE = "modules/sys/corpAdmin/index"; + + @Autowired + private ISysUserService iSysUserService; + + @RequestMapping(path="index") + public String index(ModelAndView model) { + return CORPADMIN_INDEX_PAGE; + } + + @RequestMapping(path="listData",method=RequestMethod.POST) + @ResponseBody + public Map listData(SysUserCondition condition) { + Page page = iSysUserService.listData(condition); + return Result.jqGridResult(page.getRecords(), page.getTotal(), page.getSize(), page.getCurrent(), page.getPages()); + } + +} diff --git a/tamguo-oms/src/main/java/com/tamguo/modules/sys/web/SecAdminController.java b/tamguo-oms/src/main/java/com/tamguo/modules/sys/web/SecAdminController.java new file mode 100644 index 0000000..f6f8167 --- /dev/null +++ b/tamguo-oms/src/main/java/com/tamguo/modules/sys/web/SecAdminController.java @@ -0,0 +1,38 @@ +package com.tamguo.modules.sys.web; + +import java.util.Map; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.servlet.ModelAndView; + +import com.baomidou.mybatisplus.plugins.Page; +import com.tamguo.modules.sys.model.SysUserEntity; +import com.tamguo.modules.sys.model.condition.SysUserCondition; +import com.tamguo.modules.sys.service.ISysUserService; +import com.tamguo.modules.sys.utils.Result; + +@Controller +@RequestMapping(path="sys/secAdmin") +public class SecAdminController { + + private final String SECADMIN_INDEX_PAGE = "modules/sys/secAdmin/index"; + + @Autowired + private ISysUserService iSysUserService; + + @RequestMapping(path="index") + public String index(ModelAndView model) { + return SECADMIN_INDEX_PAGE; + } + + @RequestMapping(path="listData",method=RequestMethod.POST) + @ResponseBody + public Map listData(SysUserCondition condition) { + Page page = iSysUserService.listData(condition); + return Result.jqGridResult(page.getRecords(), page.getTotal(), page.getSize(), page.getCurrent(), page.getPages()); + } +} diff --git a/tamguo-oms/src/main/resources/templates/include/leftMenu.html b/tamguo-oms/src/main/resources/templates/include/leftMenu.html index f22f404..7ef11c2 100644 --- a/tamguo-oms/src/main/resources/templates/include/leftMenu.html +++ b/tamguo-oms/src/main/resources/templates/include/leftMenu.html @@ -28,8 +28,8 @@
  • 权限管理
  • 系统设置 diff --git a/tamguo-oms/src/main/resources/templates/modules/sys/corpAdmin/index.html b/tamguo-oms/src/main/resources/templates/modules/sys/corpAdmin/index.html new file mode 100644 index 0000000..13655ab --- /dev/null +++ b/tamguo-oms/src/main/resources/templates/modules/sys/corpAdmin/index.html @@ -0,0 +1,131 @@ + +系统管理员 - JeeSite Demo + + + + + + + + + + + + + +
    +
    +
    +
    + 系统管理员 +
    + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/index.html b/tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/index.html new file mode 100644 index 0000000..96ff986 --- /dev/null +++ b/tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/index.html @@ -0,0 +1,218 @@ + +二级管理员 - JeeSite Demo + + + + + + + + + + + + + +
    +
    +
    +
    + 二级管理员 +
    + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + + + + + + + + + + + + + \ No newline at end of file