├── WebContent ├── META-INF │ └── MANIFEST.MF ├── favicon.ico ├── images │ ├── code.jpg │ ├── face.jpg │ ├── fly.png │ ├── git.png │ ├── close.png │ ├── face1.jpg │ ├── layui.png │ ├── mayun.png │ ├── login_bg.jpg │ ├── login_bg1.jpg │ └── defaultcarimage.jpg ├── css │ ├── checkknowledge.css │ └── feedback.css ├── layui │ ├── font │ │ ├── iconfont.eot │ │ ├── iconfont.ttf │ │ ├── iconfont.woff │ │ └── iconfont.woff2 │ ├── images │ │ └── face │ │ │ ├── 0.gif │ │ │ ├── 1.gif │ │ │ ├── 2.gif │ │ │ ├── 3.gif │ │ │ ├── 4.gif │ │ │ ├── 5.gif │ │ │ ├── 6.gif │ │ │ ├── 7.gif │ │ │ ├── 8.gif │ │ │ ├── 9.gif │ │ │ ├── 10.gif │ │ │ ├── 11.gif │ │ │ ├── 12.gif │ │ │ ├── 13.gif │ │ │ ├── 14.gif │ │ │ ├── 15.gif │ │ │ ├── 16.gif │ │ │ ├── 17.gif │ │ │ ├── 18.gif │ │ │ ├── 19.gif │ │ │ ├── 20.gif │ │ │ ├── 21.gif │ │ │ ├── 22.gif │ │ │ ├── 23.gif │ │ │ ├── 24.gif │ │ │ ├── 25.gif │ │ │ ├── 26.gif │ │ │ ├── 27.gif │ │ │ ├── 28.gif │ │ │ ├── 29.gif │ │ │ ├── 30.gif │ │ │ ├── 31.gif │ │ │ ├── 32.gif │ │ │ ├── 33.gif │ │ │ ├── 34.gif │ │ │ ├── 35.gif │ │ │ ├── 36.gif │ │ │ ├── 37.gif │ │ │ ├── 38.gif │ │ │ ├── 39.gif │ │ │ ├── 40.gif │ │ │ ├── 41.gif │ │ │ ├── 42.gif │ │ │ ├── 43.gif │ │ │ ├── 44.gif │ │ │ ├── 45.gif │ │ │ ├── 46.gif │ │ │ ├── 47.gif │ │ │ ├── 48.gif │ │ │ ├── 49.gif │ │ │ ├── 50.gif │ │ │ ├── 51.gif │ │ │ ├── 52.gif │ │ │ ├── 53.gif │ │ │ ├── 54.gif │ │ │ ├── 55.gif │ │ │ ├── 56.gif │ │ │ ├── 57.gif │ │ │ ├── 58.gif │ │ │ ├── 59.gif │ │ │ ├── 60.gif │ │ │ ├── 61.gif │ │ │ ├── 62.gif │ │ │ ├── 63.gif │ │ │ ├── 64.gif │ │ │ ├── 65.gif │ │ │ ├── 66.gif │ │ │ ├── 67.gif │ │ │ ├── 68.gif │ │ │ ├── 69.gif │ │ │ ├── 70.gif │ │ │ └── 71.gif │ ├── css │ │ └── modules │ │ │ ├── layer │ │ │ └── default │ │ │ │ ├── icon.png │ │ │ │ ├── icon-ext.png │ │ │ │ ├── loading-0.gif │ │ │ │ ├── loading-1.gif │ │ │ │ └── loading-2.gif │ │ │ └── code.css │ └── lay │ │ └── modules │ │ ├── code.js │ │ ├── laytpl.js │ │ ├── flow.js │ │ ├── rate.js │ │ ├── util.js │ │ ├── carousel.js │ │ └── laypage.js ├── layui_ext │ ├── dtree │ │ └── font │ │ │ ├── dtreefont.eot │ │ │ ├── dtreefont.ttf │ │ │ └── dtreefont.woff │ └── json │ │ └── case │ │ ├── asyncTree4.json │ │ ├── asyncTree3.json │ │ ├── asyncTree2.json │ │ ├── asyncTree1.json │ │ ├── asyncTreeCheckBox.json │ │ └── asyncTreeCheckBox2.json ├── WEB-INF │ ├── view │ │ └── system │ │ │ ├── menu │ │ │ ├── menuManager.jsp │ │ │ └── MenuLeft.jsp │ │ │ ├── main │ │ │ ├── login.jsp │ │ │ └── deskManger.jsp │ │ │ └── analyse │ │ │ └── toAnalyseManage.jsp │ └── web.xml ├── js │ ├── login.js │ ├── address.js │ ├── cacheUserInfo.js │ └── main.js └── index.jsp ├── src ├── logo.jpg ├── jdbc.properties ├── log4j.properties ├── com │ ├── entity │ │ ├── CommentVO.java │ │ ├── Department.java │ │ ├── Admin.java │ │ ├── Role.java │ │ ├── Package.java │ │ ├── CheckKnowledge.java │ │ ├── Comment.java │ │ ├── User.java │ │ ├── Doctor.java │ │ ├── Result.java │ │ ├── Menu.java │ │ ├── Project.java │ │ └── Order1.java │ ├── service │ │ ├── PackageService.java │ │ ├── ProjectService.java │ │ ├── ResultService.java │ │ ├── CommentService.java │ │ ├── CheckKnowledgeService.java │ │ ├── Order1Service.java │ │ ├── MenuService.java │ │ ├── RoleService.java │ │ ├── impl │ │ │ ├── CheckKnowledgeServiceImpl.java │ │ │ ├── PackageServiceImpl.java │ │ │ ├── ProjectServiceImpl.java │ │ │ ├── MenuServiceImpl.java │ │ │ ├── CommentServiceImpl.java │ │ │ ├── ResultServiceImpl.java │ │ │ └── RoleServiceImpl.java │ │ └── UserService.java │ ├── mapper │ │ ├── PackageMapper.java │ │ ├── CommentMapper.java │ │ ├── ProjectMapper.java │ │ ├── CheckKnowledgeMapper.java │ │ ├── Order1Mapper.java │ │ ├── ResultMapper.java │ │ ├── RoleMapper.java │ │ ├── MenuMapper.java │ │ ├── UserMapper.java │ │ ├── PackageMapper.xml │ │ ├── CommentMapper.xml │ │ ├── ProjectMapper.xml │ │ ├── CheckKnowledgeMapper.xml │ │ ├── ResultMapper.xml │ │ ├── Order1Mapper.xml │ │ └── RoleMapper.xml │ ├── controller │ │ ├── DeskController.java │ │ ├── PackageController.java │ │ ├── ProjectController.java │ │ ├── CommentController.java │ │ ├── CheckKnowledgeController.java │ │ ├── RoleController.java │ │ └── SysController.java │ ├── vo │ │ ├── MenuVo.java │ │ ├── RoleVo.java │ │ └── UserVO.java │ ├── utils │ │ ├── TreeNodeBuilder.java │ │ ├── DateUtils.java │ │ ├── DataGridView.java │ │ ├── WebUtils.java │ │ ├── ResultObj.java │ │ ├── TreeNode.java │ │ └── FileUtil.java │ └── constant │ │ └── SysConstant.java ├── mybatis-config.xml ├── application-task.xml ├── applicationContext.xml ├── springmvc.xml └── application-service.xml └── README.md /WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /src/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/src/logo.jpg -------------------------------------------------------------------------------- /WebContent/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/favicon.ico -------------------------------------------------------------------------------- /WebContent/images/code.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/images/code.jpg -------------------------------------------------------------------------------- /WebContent/images/face.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/images/face.jpg -------------------------------------------------------------------------------- /WebContent/images/fly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/images/fly.png -------------------------------------------------------------------------------- /WebContent/images/git.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/images/git.png -------------------------------------------------------------------------------- /WebContent/images/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/images/close.png -------------------------------------------------------------------------------- /WebContent/images/face1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/images/face1.jpg -------------------------------------------------------------------------------- /WebContent/images/layui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/images/layui.png -------------------------------------------------------------------------------- /WebContent/images/mayun.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/images/mayun.png -------------------------------------------------------------------------------- /WebContent/images/login_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/images/login_bg.jpg -------------------------------------------------------------------------------- /WebContent/images/login_bg1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/images/login_bg1.jpg -------------------------------------------------------------------------------- /WebContent/css/checkknowledge.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/css/checkknowledge.css -------------------------------------------------------------------------------- /WebContent/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/font/iconfont.eot -------------------------------------------------------------------------------- /WebContent/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /WebContent/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/0.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/1.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/2.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/3.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/4.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/5.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/6.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/7.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/8.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/9.gif -------------------------------------------------------------------------------- /WebContent/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/font/iconfont.woff -------------------------------------------------------------------------------- /WebContent/layui/font/iconfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/font/iconfont.woff2 -------------------------------------------------------------------------------- /WebContent/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/10.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/11.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/12.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/13.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/14.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/15.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/16.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/17.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/18.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/19.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/20.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/21.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/22.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/23.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/24.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/25.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/26.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/27.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/28.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/29.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/30.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/31.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/32.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/33.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/34.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/35.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/36.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/37.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/38.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/39.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/40.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/41.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/42.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/43.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/44.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/45.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/46.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/47.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/48.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/49.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/50.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/51.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/52.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/53.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/54.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/55.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/56.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/57.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/58.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/59.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/60.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/61.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/62.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/63.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/64.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/65.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/66.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/67.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/68.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/69.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/70.gif -------------------------------------------------------------------------------- /WebContent/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/images/face/71.gif -------------------------------------------------------------------------------- /WebContent/images/defaultcarimage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/images/defaultcarimage.jpg -------------------------------------------------------------------------------- /WebContent/layui_ext/dtree/font/dtreefont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui_ext/dtree/font/dtreefont.eot -------------------------------------------------------------------------------- /WebContent/layui_ext/dtree/font/dtreefont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui_ext/dtree/font/dtreefont.ttf -------------------------------------------------------------------------------- /WebContent/layui_ext/dtree/font/dtreefont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui_ext/dtree/font/dtreefont.woff -------------------------------------------------------------------------------- /WebContent/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /WebContent/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /WebContent/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /WebContent/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /WebContent/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KakarottoCui/TiJianYuYue/HEAD/WebContent/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /src/jdbc.properties: -------------------------------------------------------------------------------- 1 | jdbc.driverClass=com.mysql.jdbc.Driver 2 | jdbc.jdbcUrl=jdbc:mysql://localhost:3306/examination?useUnicode=true&characterEncoding=UTF-8&useSSL=false 3 | jdbc.user=root 4 | jdbc.password=232521 -------------------------------------------------------------------------------- /src/log4j.properties: -------------------------------------------------------------------------------- 1 | # Global logging configuration 2 | log4j.rootLogger=DEBUG, stdout 3 | # MyBatis logging configuration... 4 | log4j.logger.org.mybatis.example.BlogMapper=TRACE 5 | # Console output... 6 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 7 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 8 | log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n -------------------------------------------------------------------------------- /src/com/entity/CommentVO.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | import java.util.*; 4 | 5 | public class CommentVO extends Comment{ 6 | 7 | private List children; 8 | 9 | public List getChildren() { 10 | return children; 11 | } 12 | 13 | public void setChildren(List children) { 14 | this.children = children; 15 | } 16 | 17 | 18 | 19 | } 20 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/view/system/menu/menuManager.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | 3 | 4 | 菜单管理 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/com/entity/Department.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | 4 | public class Department { 5 | private String id; 6 | 7 | private String name; 8 | 9 | public String getId() { 10 | return id; 11 | } 12 | 13 | public void setId(String id) { 14 | this.id = id; 15 | } 16 | 17 | public String getName() { 18 | return name; 19 | } 20 | 21 | public void setName(String name) { 22 | this.name = name; 23 | } 24 | 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/com/service/PackageService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.entity.Package; 4 | import com.utils.DataGridView; 5 | 6 | /** 7 | * 8 | * @date 2021/9/10 9 | */ 10 | public interface PackageService { 11 | 12 | public DataGridView queryAllPackage(Package pack); 13 | 14 | public void addPackage(Package pack); 15 | 16 | public void updatePackage(Package pack); 17 | 18 | public void deletePackage(String pid); 19 | 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/com/mapper/PackageMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import com.entity.Package; 6 | 7 | /** 8 | * 9 | * @date 2021/9/10 10 | */ 11 | public interface PackageMapper { 12 | 13 | int deletePackage(String id); 14 | 15 | int addPackage(Package pack); 16 | 17 | List queryAllPackage(Package pack); 18 | 19 | List queryAllPackageById(String id); 20 | 21 | int updatePackage(Package pack); 22 | } -------------------------------------------------------------------------------- /src/com/service/ProjectService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.entity.Project; 4 | import com.utils.DataGridView; 5 | 6 | /** 7 | * 8 | * @date 2021/9/10 9 | */ 10 | public interface ProjectService { 11 | 12 | public DataGridView queryAllProject(Project project); 13 | 14 | public void addProject(Project project); 15 | 16 | public void updateProject(Project project); 17 | 18 | public void deleteProject(String pid); 19 | 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/com/mapper/CommentMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import com.entity.Comment; 4 | import java.util.*; 5 | 6 | /** 7 | * 8 | * @date 2021/9/10 9 | */ 10 | public interface CommentMapper { 11 | 12 | int addComment(Comment comment); 13 | 14 | List queryAllComment(); 15 | 16 | List queryAllParentComment(); 17 | 18 | List queryAllParentCommentByUserId(String userId); 19 | 20 | List queryAllChildComment(); 21 | 22 | } -------------------------------------------------------------------------------- /src/com/controller/DeskController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | /** 7 | * 工作台控制器 8 | */ 9 | @Controller 10 | @RequestMapping("desk") 11 | public class DeskController { 12 | 13 | /** 14 | * 跳转到工作台的页面 15 | * @return 16 | */ 17 | @RequestMapping("toDeskManager") 18 | public String toDeskManager(){ 19 | return "system/main/deskManger"; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/com/mapper/ProjectMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | 7 | import com.entity.Project; 8 | import com.entity.Role; 9 | 10 | /** 11 | * 12 | * @date 2021/9/10 13 | */ 14 | public interface ProjectMapper { 15 | 16 | int deleteProject(String id); 17 | 18 | int addProject(Project project); 19 | 20 | List queryAllProject(Project project); 21 | 22 | List queryAllProjectByDepartment(String department); 23 | 24 | int updateProject(Project project); 25 | } -------------------------------------------------------------------------------- /src/com/vo/MenuVo.java: -------------------------------------------------------------------------------- 1 | package com.vo; 2 | 3 | import com.entity.Menu; 4 | 5 | /** 6 | * 7 | * @date 2021/9/10 8 | */ 9 | public class MenuVo extends Menu { 10 | 11 | private Integer page; 12 | private Integer limit; 13 | 14 | public Integer getPage() { 15 | return page; 16 | } 17 | 18 | public void setPage(Integer page) { 19 | this.page = page; 20 | } 21 | 22 | public Integer getLimit() { 23 | return limit; 24 | } 25 | 26 | public void setLimit(Integer limit) { 27 | this.limit = limit; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/com/service/ResultService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.entity.Doctor; 4 | import com.entity.Result; 5 | import com.utils.DataGridView; 6 | 7 | /** 8 | * 9 | * @date 2021/9/10 10 | */ 11 | public interface ResultService { 12 | 13 | 14 | public void updateProjectResult(Result result,Doctor doctor); 15 | 16 | public void updateFinalResult(Result result); 17 | 18 | public DataGridView queryResult(Result result); 19 | 20 | public DataGridView queryAnalyseResult(Result result); 21 | 22 | public Result getResultByOid(String oid); 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/com/service/CommentService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import java.util.List; 4 | 5 | import com.entity.Comment; 6 | import com.utils.DataGridView; 7 | 8 | /** 9 | * 10 | * @date 2021/9/10 11 | */ 12 | public interface CommentService { 13 | 14 | int addComment(Comment comment); 15 | 16 | List queryAllParentComment(); 17 | 18 | List queryAllParentCommentByUserId(String userId); 19 | 20 | DataGridView loadAllParentCommentByUserId(String userId); 21 | 22 | List queryAllChildComment(); 23 | 24 | DataGridView loadAllComment(); 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/com/service/CheckKnowledgeService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.entity.CheckKnowledge; 4 | import com.utils.DataGridView; 5 | 6 | /** 7 | * 8 | * @date 2021/9/10 9 | */ 10 | public interface CheckKnowledgeService { 11 | 12 | public DataGridView queryAllCheckKnowledge(CheckKnowledge checkKnowledge); 13 | 14 | public void addCheckKnowledge(CheckKnowledge checkKnowledge); 15 | 16 | public void updateCheckKnowledge(CheckKnowledge checkKnowledge); 17 | 18 | public void deleteCheckKnowledge(String id); 19 | 20 | public CheckKnowledge viewCheckKnowledge(Integer id); 21 | 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/com/mapper/CheckKnowledgeMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import com.entity.CheckKnowledge; 6 | 7 | /** 8 | * 9 | * @date 2021/9/10 10 | */ 11 | public interface CheckKnowledgeMapper { 12 | 13 | int deleteCheckKnowledge(String id); 14 | 15 | int addCheckKnowledge(CheckKnowledge pack); 16 | 17 | List queryAllCheckKnowledge(CheckKnowledge checkKnowledger); 18 | 19 | List queryAllCheckKnowledgeById(String id); 20 | 21 | int updateCheckKnowledge(CheckKnowledge checkKnowledge); 22 | 23 | CheckKnowledge getCheckKnowledgeById(Integer id); 24 | } -------------------------------------------------------------------------------- /src/com/mapper/Order1Mapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import com.entity.Order1; 6 | 7 | /** 8 | * 9 | * @date 2021/9/10 10 | */ 11 | public interface Order1Mapper { 12 | 13 | int deleteOrder1(String id); 14 | 15 | int allowOrder1(String id); 16 | 17 | int forbidOrder1(String id); 18 | 19 | int addOrder1(Order1 order1); 20 | 21 | List queryAllOrder1(Order1 order1); 22 | 23 | List queryAllOrder1ByStatus(Order1 order1); 24 | 25 | List getAllApproveOrder(String status); 26 | 27 | int updateOrder1(Order1 order1); 28 | 29 | List getOrder1Detail(Order1 order1); 30 | 31 | List getOrderByUserId(String userid); 32 | 33 | int updateOrder1Status(Order1 order1); 34 | } -------------------------------------------------------------------------------- /src/com/vo/RoleVo.java: -------------------------------------------------------------------------------- 1 | package com.vo; 2 | 3 | import com.entity.Role; 4 | 5 | /** 6 | * 7 | * @date 2021/9/10 8 | */ 9 | public class RoleVo extends Role { 10 | /** 11 | * 分页参数 12 | * */ 13 | private Integer page; 14 | private Integer limit; 15 | 16 | //接收多个角色id 17 | private Integer []ids; 18 | 19 | public Integer[] getIds() { 20 | return ids; 21 | } 22 | 23 | public void setIds(Integer[] ids) { 24 | this.ids = ids; 25 | } 26 | 27 | public Integer getPage() { 28 | return page; 29 | } 30 | 31 | public void setPage(Integer page) { 32 | this.page = page; 33 | } 34 | 35 | public Integer getLimit() { 36 | return limit; 37 | } 38 | 39 | public void setLimit(Integer limit) { 40 | this.limit = limit; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/com/entity/Admin.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | 4 | public class Admin { 5 | private String aid; 6 | 7 | private String aname; 8 | 9 | private String apassword; 10 | 11 | private String aphone; 12 | 13 | public String getAid() { 14 | return aid; 15 | } 16 | 17 | public void setAid(String aid) { 18 | this.aid = aid; 19 | } 20 | 21 | public String getAname() { 22 | return aname; 23 | } 24 | 25 | public void setAname(String aname) { 26 | this.aname = aname; 27 | } 28 | 29 | public String getApassword() { 30 | return apassword; 31 | } 32 | 33 | public void setApassword(String apassword) { 34 | this.apassword = apassword; 35 | } 36 | 37 | public String getAphone() { 38 | return aphone; 39 | } 40 | 41 | public void setAphone(String aphone) { 42 | this.aphone = aphone; 43 | } 44 | 45 | 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/com/service/Order1Service.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.entity.Doctor; 4 | import com.entity.Order1; 5 | import com.utils.DataGridView; 6 | 7 | /** 8 | * 9 | * @date 2021/9/10 10 | */ 11 | public interface Order1Service { 12 | 13 | public DataGridView queryAllOrder1(Order1 order1); 14 | 15 | public DataGridView getAllApproveOrder(Order1 order1); 16 | 17 | public DataGridView queryAllOrderForUser(Order1 order1); 18 | 19 | public DataGridView queryAllOrder1ForDoctor(Order1 order1, Doctor doctor); 20 | 21 | public Order1 getOrder1Detail(Order1 order1); 22 | 23 | public void addOrder1(Order1 order1); 24 | 25 | public void updateOrder1(Order1 order1); 26 | 27 | public void deleteOrder1(String pid); 28 | 29 | public void allowOrder1(String pid); 30 | 31 | public void forbidOrder1(String pid); 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/com/mapper/ResultMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import com.entity.Result; 6 | 7 | /** 8 | * 9 | * @date 2021/9/10 10 | */ 11 | public interface ResultMapper { 12 | 13 | int updateProjectResult(Result result); 14 | 15 | int updateFinalResult(Result result); 16 | 17 | List queryResult(Result result); 18 | 19 | List queryDisease(); 20 | 21 | List queryDiseaseCount(String disease, String sex); 22 | 23 | 24 | 25 | 26 | int deleteResult(String id); 27 | 28 | int allowResult(String id); 29 | 30 | int forbidResult(String id); 31 | 32 | int addResult(Result result); 33 | 34 | List queryAllResult(Result result); 35 | 36 | List queryAllResultByStatus(Result result); 37 | 38 | 39 | List getResultDetail(Result result); 40 | 41 | Result getResultByOid(String oid); 42 | } -------------------------------------------------------------------------------- /src/com/utils/TreeNodeBuilder.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | /** 7 | * 8 | * @date 2021/9/10 9 | */ 10 | public class TreeNodeBuilder { 11 | /** 12 | * 把简单的集合转成有层级关系的集合 13 | * @param nodes 14 | * @param topid 15 | * @return 16 | */ 17 | public static List builder(List nodes, Integer topid) { 18 | List treeNodes = new ArrayList<>(); 19 | for (TreeNode n1:nodes) { 20 | if(n1.getPid()==topid){ 21 | treeNodes.add(n1); 22 | } 23 | for (TreeNode n2:nodes) { 24 | if(n2.getPid()==n1.getId()){ 25 | n1.getChildren().add(n2); 26 | } 27 | } 28 | } 29 | return treeNodes; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TiJianYuYue 2 | 基于SSM框架的医院体检预约管理系统 3 | 4 | 演示视频:https://www.bilibili.com/video/BV1Vu411Z7nK/ 5 | 6 | 详询 微信1:egvh56ufy7hh ,微信2:dabocode 。承接商业项目、课设、毕设和论文,包括但不限于Web、APP、小程序等,课设、毕设提供远程部署和不限次数代码解答! 7 | 8 | 功能需求: 9 | 10 | 系统分为三个角色:系统管理员、医生和体检人员。 11 | 12 | 系统管理员主要有以下几个功能: 13 | 14 | 体检人员管理:增删改查,模糊查询 15 | 16 | 医生人员管理:增删改查,模糊查询 17 | 18 | 预约审批:体检人员预约以后,可以审批通过或者不通过 19 | 20 | 角色管理:增删改查,分配权限给不同的角色 21 | 22 | 个人信息:查看和修改自己的个人信息 23 | 24 | 密码修改:修改自己的系统密码 25 | 26 | 统计分析:系统中出现的各种疾病的男女比例 27 | 28 | 医生有以下功能: 29 | 30 | 体检人员管理:增删改查模糊查询体检人员 31 | 32 | 体检项目管理:增删改查体检项目 33 | 34 | 套餐管理:增删改查体检套餐 35 | 36 | 体检管理:给体检人员反馈体检情况 37 | 38 | 个人信息:查看和修改自己的个人信息 39 | 40 | 密码修改:修改自己的系统密码 41 | 42 | 统计分析:系统中出现的各种疾病的男女比例 43 | 44 | 体检人员有以下功能: 45 | 46 | 个人体检预约:预约体检 47 | 48 | 个人信息:查看和修改自己的个人信息 49 | 50 | 密码修改:修改自己的系统密码 51 | 52 | 统计分析:系统中出现的各种疾病的男女比例 53 | 54 | 项目技术 55 | 后台:SSM(Spring+Spring MVC+ Mybits) 56 | 前台:主要是layui,还有jsp+jquery+ajax 57 | 58 | -------------------------------------------------------------------------------- /src/application-task.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/com/utils/DateUtils.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | import java.text.DateFormat; 4 | import java.text.ParseException; 5 | import java.text.SimpleDateFormat; 6 | import java.util.Date; 7 | 8 | /** 9 | * 10 | * @date 2021/9/10 11 | */ 12 | public class DateUtils { 13 | 14 | /** 15 | * 获取当前时间,格式是yyyy-MM-dd HH:mm:ss, 16 | * @param date 17 | * @return string 18 | */ 19 | public static String getCurrnetDate() { 20 | Date date = new Date(); 21 | String dateString = convertDateToString(date); 22 | return dateString; 23 | } 24 | 25 | 26 | 27 | public static String convertDateToString(Date date) { 28 | String dateString = ""; 29 | if (null == date) { 30 | return dateString; 31 | } 32 | SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 33 | dateString = dateFormat.format(date); 34 | return dateString; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /WebContent/layui_ext/json/case/asyncTree4.json: -------------------------------------------------------------------------------- 1 | { 2 | "code":0, 3 | "msg":"操作成功", 4 | "data":[ 5 | {"id":"001","title": "湖南省", "last": false, "parentId": "0"}, 6 | {"id":"002","title": "湖北省","last": false,"parentId": "0"}, 7 | 8 | {"id":"001001", "title": "长沙市", "last":true, "parentId": "001"}, 9 | {"id":"001002", "title": "株洲市", "last":true, "parentId": "001" }, 10 | {"id":"001003", "title": "湘潭市", "last":true, "parentId": "001" }, 11 | {"id":"001004","title": "衡阳市","last":true,"parentId": "001"}, 12 | {"id":"001005","title": "郴州市","last":true,"parentId": "001"}, 13 | 14 | {"id":"002001","title": "武汉市","last":true,"parentId": "002"}, 15 | {"id":"002002","title": "黄冈市","last":true,"parentId": "002"}, 16 | {"id":"002003","title": "荆州市","last":true,"parentId": "002"}, 17 | {"id":"002004","title": "天门市","last":true,"parentId": "002"}, 18 | {"id":"002005","title": "孝感市","last":true,"parentId": "002"} 19 | ] 20 | } -------------------------------------------------------------------------------- /WebContent/layui_ext/json/case/asyncTree3.json: -------------------------------------------------------------------------------- 1 | { 2 | "status":{"code":200,"message":"操作成功"}, 3 | "data":[ 4 | {"id":"001","title": "湖南省", "last": false, "parentId": "0"}, 5 | {"id":"002","title": "湖北省","last": false,"parentId": "0"}, 6 | 7 | {"id":"001001", "title": "长沙市", "last":true, "parentId": "001"}, 8 | {"id":"001002", "title": "株洲市", "last":true, "parentId": "001" }, 9 | {"id":"001003", "title": "湘潭市", "last":true, "parentId": "001" }, 10 | {"id":"001004","title": "衡阳市","last":true,"parentId": "001"}, 11 | {"id":"001005","title": "郴州市","last":true,"parentId": "001"}, 12 | 13 | {"id":"002001","title": "武汉市","last":true,"parentId": "002"}, 14 | {"id":"002002","title": "黄冈市","last":true,"parentId": "002"}, 15 | {"id":"002003","title": "荆州市","last":true,"parentId": "002"}, 16 | {"id":"002004","title": "天门市","last":true,"parentId": "002"}, 17 | {"id":"002005","title": "孝感市","last":true,"parentId": "002"} 18 | ] 19 | } -------------------------------------------------------------------------------- /src/com/entity/Role.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | 4 | public class Role { 5 | private Integer roleid; 6 | 7 | private String rolename; 8 | 9 | private String roledesc; 10 | 11 | private Integer available; 12 | 13 | public Integer getRoleid() { 14 | return roleid; 15 | } 16 | 17 | public void setRoleid(Integer roleid) { 18 | this.roleid = roleid; 19 | } 20 | 21 | public String getRolename() { 22 | return rolename; 23 | } 24 | 25 | public void setRolename(String rolename) { 26 | this.rolename = rolename == null ? null : rolename.trim(); 27 | } 28 | 29 | public String getRoledesc() { 30 | return roledesc; 31 | } 32 | 33 | public void setRoledesc(String roledesc) { 34 | this.roledesc = roledesc == null ? null : roledesc.trim(); 35 | } 36 | 37 | public Integer getAvailable() { 38 | return available; 39 | } 40 | 41 | public void setAvailable(Integer available) { 42 | this.available = available; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /WebContent/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} -------------------------------------------------------------------------------- /src/com/vo/UserVO.java: -------------------------------------------------------------------------------- 1 | package com.vo; 2 | 3 | /** 4 | * 5 | * @date 2021/9/10 6 | */ 7 | public class UserVO { 8 | 9 | private String loginname; 10 | 11 | private String realname; 12 | 13 | private String pwd; 14 | 15 | private String type; 16 | 17 | public String getLoginname() { 18 | return loginname; 19 | } 20 | 21 | public void setLoginname(String loginname) { 22 | this.loginname = loginname == null ? null : loginname.trim(); 23 | } 24 | 25 | 26 | public String getRealname() { 27 | return realname; 28 | } 29 | 30 | public void setRealname(String realname) { 31 | this.realname = realname == null ? null : realname.trim(); 32 | } 33 | 34 | public String getPwd() { 35 | return pwd; 36 | } 37 | 38 | public void setPwd(String pwd) { 39 | this.pwd = pwd == null ? null : pwd.trim(); 40 | } 41 | 42 | public String getType() { 43 | return type; 44 | } 45 | 46 | public void setType(String type) { 47 | this.type = type; 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /WebContent/layui/lay/modules/code.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
  1. '+o.replace(/[\r\t\n]+/g,"
  2. ")+"
"),c.find(">.layui-code-h3")[0]||c.prepend('

'+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); -------------------------------------------------------------------------------- /src/com/entity/Package.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | 4 | public class Package { 5 | private String id; 6 | 7 | private String packagename; 8 | 9 | private String pid; 10 | 11 | private String pname; 12 | 13 | private Integer page; 14 | 15 | private Integer limit; 16 | 17 | public String getPid() { 18 | return pid; 19 | } 20 | 21 | public void setPid(String pid) { 22 | this.pid = pid; 23 | } 24 | 25 | public String getPname() { 26 | return pname; 27 | } 28 | 29 | public void setPname(String pname) { 30 | this.pname = pname; 31 | } 32 | 33 | public Integer getPage() { 34 | return page; 35 | } 36 | 37 | public void setPage(Integer page) { 38 | this.page = page; 39 | } 40 | 41 | public Integer getLimit() { 42 | return limit; 43 | } 44 | 45 | public void setLimit(Integer limit) { 46 | this.limit = limit; 47 | } 48 | 49 | public String getId() { 50 | return id; 51 | } 52 | 53 | public void setId(String id) { 54 | this.id = id; 55 | } 56 | 57 | public String getPackagename() { 58 | return packagename; 59 | } 60 | 61 | public void setPackagename(String packagename) { 62 | this.packagename = packagename; 63 | } 64 | 65 | 66 | 67 | } 68 | -------------------------------------------------------------------------------- /src/com/utils/DataGridView.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | public class DataGridView { 4 | /** 5 | * 封装layui数据表格的数据对象 6 | */ 7 | private Integer code=0; 8 | private String msg =""; 9 | private Long count; 10 | private Object data; 11 | 12 | public DataGridView() { 13 | } 14 | 15 | public DataGridView(Object data) { 16 | super(); 17 | this.data = data; 18 | } 19 | 20 | public DataGridView(Long count, Object data) { 21 | super(); 22 | this.count = count; 23 | this.data = data; 24 | } 25 | 26 | public Integer getCode() { 27 | return code; 28 | } 29 | 30 | public void setCode(Integer code) { 31 | this.code = code; 32 | } 33 | 34 | public String getMsg() { 35 | return msg; 36 | } 37 | 38 | public void setMsg(String msg) { 39 | this.msg = msg; 40 | } 41 | 42 | public Long getCount() { 43 | return count; 44 | } 45 | 46 | public void setCount(Long count) { 47 | this.count = count; 48 | } 49 | 50 | public Object getData() { 51 | return data; 52 | } 53 | 54 | public void setData(Object data) { 55 | this.data = data; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/com/utils/WebUtils.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpServletResponse; 5 | import javax.servlet.http.HttpSession; 6 | 7 | import org.springframework.web.context.request.RequestContextHolder; 8 | import org.springframework.web.context.request.ServletRequestAttributes; 9 | 10 | /** 11 | * web的工具类 12 | * 13 | * 14 | */ 15 | public class WebUtils { 16 | 17 | public static ServletRequestAttributes getServletRequestAttributes() { 18 | return (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); 19 | } 20 | 21 | /** 22 | * 得到当前线程的请求对象 23 | * @return 24 | */ 25 | public static HttpServletRequest getHttpServletRequest() { 26 | return getServletRequestAttributes().getRequest(); 27 | } 28 | 29 | /** 30 | * 得到当前线程的响应对象 31 | */ 32 | public static HttpServletResponse getHttpServletResponse() { 33 | return getServletRequestAttributes().getResponse(); 34 | } 35 | 36 | /** 37 | * 得到session对象 38 | */ 39 | public static HttpSession getHttpSession() { 40 | return getHttpServletRequest().getSession(); 41 | } 42 | 43 | /** 44 | * 得到servletContext对象 45 | */ 46 | public static String getServletContext() { 47 | return getHttpServletRequest().getServletPath(); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/com/entity/CheckKnowledge.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | 4 | 5 | public class CheckKnowledge { 6 | private Integer id; 7 | 8 | private String title; 9 | 10 | private String context; 11 | 12 | private String authorid; 13 | 14 | private String authorname; 15 | 16 | private String addtime; 17 | 18 | public Integer getId() { 19 | return id; 20 | } 21 | 22 | public void setId(Integer id) { 23 | this.id = id; 24 | } 25 | 26 | public String getTitle() { 27 | return title; 28 | } 29 | 30 | public void setTitle(String title) { 31 | this.title = title; 32 | } 33 | 34 | public String getContext() { 35 | return context; 36 | } 37 | 38 | public void setContext(String context) { 39 | this.context = context; 40 | } 41 | 42 | public String getAuthorid() { 43 | return authorid; 44 | } 45 | 46 | public void setAuthorid(String authorid) { 47 | this.authorid = authorid; 48 | } 49 | 50 | public String getAuthorname() { 51 | return authorname; 52 | } 53 | 54 | public void setAuthorname(String authorname) { 55 | this.authorname = authorname; 56 | } 57 | 58 | public String getAddtime() { 59 | return addtime; 60 | } 61 | 62 | public void setAddtime(String addtime) { 63 | this.addtime = addtime; 64 | } 65 | 66 | 67 | 68 | 69 | } 70 | -------------------------------------------------------------------------------- /WebContent/layui_ext/json/case/asyncTree2.json: -------------------------------------------------------------------------------- 1 | { 2 | "code":0, 3 | "msg":"操作成功", 4 | "data":[{ 5 | "id":"001", 6 | "title": "湖南省", 7 | "last": false, 8 | "parentId": "0", 9 | "children":[{ 10 | "id":"001001", 11 | "title": "长沙市", 12 | "last":true, 13 | "parentId": "001" 14 | },{ 15 | "id":"001002", 16 | "title": "株洲市", 17 | "last":true, 18 | "parentId": "001" 19 | },{ 20 | "id":"001003", 21 | "title": "湘潭市", 22 | "last":true, 23 | "parentId": "001" 24 | },{ 25 | "id":"001004", 26 | "title": "衡阳市", 27 | "last":true, 28 | "parentId": "001" 29 | },{ 30 | "id":"001005", 31 | "title": "郴州市", 32 | "last":true, 33 | "parentId": "001" 34 | }] 35 | },{ 36 | "id":"002", 37 | "title": "湖北省", 38 | "last": false, 39 | "parentId": "0", 40 | "children":[{ 41 | "id":"002001", 42 | "title": "武汉市", 43 | "last":true 44 | },{ 45 | "id":"002002", 46 | "title": "黄冈市", 47 | "last":true, 48 | "parentId": "002" 49 | },{ 50 | "id":"002003", 51 | "title": "潜江市", 52 | "last":true, 53 | "parentId": "002" 54 | },{ 55 | "id":"002004", 56 | "title": "荆州市", 57 | "last":true, 58 | "parentId": "002" 59 | },{ 60 | "id":"002005", 61 | "title": "襄阳市", 62 | "last":true, 63 | "parentId": "002" 64 | }] 65 | }] 66 | } -------------------------------------------------------------------------------- /WebContent/layui_ext/json/case/asyncTree1.json: -------------------------------------------------------------------------------- 1 | { 2 | "status":{"code":200,"message":"操作成功"}, 3 | "data":[{ 4 | "id":"001", 5 | "title": "湖南省", 6 | "last": false, 7 | "parentId": "0", 8 | "children":[{ 9 | "id":"001001", 10 | "title": "长沙市", 11 | "last":true, 12 | "parentId": "001" 13 | },{ 14 | "id":"001002", 15 | "title": "株洲市", 16 | "last":true, 17 | "parentId": "001" 18 | },{ 19 | "id":"001003", 20 | "title": "湘潭市", 21 | "last":true, 22 | "parentId": "001" 23 | },{ 24 | "id":"001004", 25 | "title": "衡阳市", 26 | "last":true, 27 | "parentId": "001" 28 | },{ 29 | "id":"001005", 30 | "title": "郴州市", 31 | "last":true, 32 | "parentId": "001" 33 | }] 34 | },{ 35 | "id":"002", 36 | "title": "湖北省", 37 | "last": false, 38 | "parentId": "0", 39 | "children":[{ 40 | "id":"002001", 41 | "title": "武汉市", 42 | "last":true 43 | },{ 44 | "id":"002002", 45 | "title": "黄冈市", 46 | "last":true, 47 | "parentId": "002" 48 | },{ 49 | "id":"002003", 50 | "title": "潜江市", 51 | "last":true, 52 | "parentId": "002" 53 | },{ 54 | "id":"002004", 55 | "title": "荆州市", 56 | "last":true, 57 | "parentId": "002" 58 | },{ 59 | "id":"002005", 60 | "title": "襄阳市", 61 | "last":true, 62 | "parentId": "002" 63 | }] 64 | }] 65 | } -------------------------------------------------------------------------------- /src/com/service/MenuService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import java.util.List; 4 | 5 | import com.entity.Menu; 6 | import com.utils.DataGridView; 7 | import com.vo.MenuVo; 8 | 9 | /** 10 | * 菜单管理的服务接口 11 | * 12 | * @date 2021/9/10 13 | */ 14 | public interface MenuService { 15 | 16 | /** 17 | * 查询所有的菜单返回List 18 | * @param menuVo 19 | * @return 20 | */ 21 | List queryAllMenuForList(MenuVo menuVo); 22 | 23 | /** 24 | *根据用户id查询用户可用菜单 25 | * */ 26 | // List queryMenuByUserIdForList(MenuVo menuVo,Integer userId); 27 | 28 | /** 29 | * 查询医生的菜单 30 | * */ 31 | List queryMenuByDoctorIdForList(String role); 32 | 33 | /** 34 | * 查询体检人员的菜单 35 | * */ 36 | List queryMenuByUserIdForList(String role); 37 | 38 | 39 | /** 40 | * 查询所有菜单 41 | * @param menuVo 42 | * @return 43 | */ 44 | DataGridView queryAllMenu(MenuVo menuVo); 45 | 46 | /** 47 | *添加菜单 48 | **/ 49 | void addMenu(MenuVo menuVo); 50 | 51 | /** 52 | *修改菜单 53 | **/ 54 | void updateMenu(MenuVo menuVo); 55 | /** 56 | *根据pid查询菜单的数量 57 | **/ 58 | Integer queryMenuByPid(Integer pid); 59 | 60 | /** 61 | * 删除菜单 62 | * @param menuVo 63 | */ 64 | void deleteMenu(MenuVo menuVo); 65 | } 66 | -------------------------------------------------------------------------------- /src/com/entity/Comment.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | 4 | public class Comment { 5 | private Integer id; 6 | 7 | private String userId; 8 | 9 | private String nickName; 10 | 11 | private String content; 12 | 13 | private Integer parentId; 14 | 15 | private String addtime; 16 | 17 | private String role; 18 | 19 | public Integer getId() { 20 | return id; 21 | } 22 | 23 | public void setId(Integer id) { 24 | this.id = id; 25 | } 26 | 27 | public String getUserId() { 28 | return userId; 29 | } 30 | 31 | public void setUserId(String userId) { 32 | this.userId = userId; 33 | } 34 | 35 | public String getNickName() { 36 | return nickName; 37 | } 38 | 39 | public void setNickName(String nickName) { 40 | this.nickName = nickName; 41 | } 42 | 43 | public String getContent() { 44 | return content; 45 | } 46 | 47 | public void setContent(String content) { 48 | this.content = content; 49 | } 50 | 51 | public Integer getParentId() { 52 | return parentId; 53 | } 54 | 55 | public void setParentId(Integer parentId) { 56 | this.parentId = parentId; 57 | } 58 | 59 | public String getAddtime() { 60 | return addtime; 61 | } 62 | 63 | public void setAddtime(String addtime) { 64 | this.addtime = addtime; 65 | } 66 | 67 | public String getRole() { 68 | return role; 69 | } 70 | 71 | public void setRole(String role) { 72 | this.role = role; 73 | } 74 | 75 | 76 | 77 | 78 | 79 | } 80 | -------------------------------------------------------------------------------- /src/com/service/RoleService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import java.util.List; 4 | 5 | import com.entity.Role; 6 | import com.utils.DataGridView; 7 | import com.vo.RoleVo; 8 | 9 | /** 10 | * 11 | * @date 2021/9/10 12 | */ 13 | public interface RoleService { 14 | /** 15 | * 查询所有角色返回 16 | * @param roleVo 17 | * @return 18 | */ 19 | public List queryAllRoleForList(RoleVo roleVo); 20 | 21 | /** 22 | * 根据用户id查询用户的可用角色 23 | */ 24 | public List queryRoleByUserIdForList(RoleVo roleVo, Integer userId); 25 | 26 | /** 27 | * 查询所有角色 28 | * @param roleVo 29 | * @return 30 | */ 31 | public DataGridView queryAllRole(RoleVo roleVo); 32 | 33 | /** 34 | * 添加角色 35 | * @param roleVo 36 | */ 37 | public void addRole(RoleVo roleVo); 38 | 39 | /** 40 | * 修改角色 41 | * @param roleVo 42 | */ 43 | public void updateRole(RoleVo roleVo); 44 | 45 | /** 46 | * 根据id删除角色 47 | * @param roleid 48 | */ 49 | public void deleteRole(Integer roleid); 50 | 51 | /** 52 | * 批量删除角色 53 | * @param ids 54 | */ 55 | public void deleteBatchRole(Integer [] ids); 56 | 57 | /** 58 | * 加载角色管理分配菜单的json 59 | * @param roleid 60 | * @return 61 | */ 62 | public DataGridView initRoleMenuTreeJson(String roleid); 63 | 64 | /** 65 | * 保存角色和菜单的关系 66 | * @param roleVo 67 | */ 68 | public void saveRoleMenu(RoleVo roleVo); 69 | 70 | } 71 | -------------------------------------------------------------------------------- /WebContent/layui_ext/json/case/asyncTreeCheckBox.json: -------------------------------------------------------------------------------- 1 | { 2 | "code":0, 3 | "msg":"操作成功", 4 | "data":[ 5 | {"id":"001","title": "湖南省", "last": false, "parentId": "0","checkArr": [{"type": "0", "checked": "0"}]}, 6 | {"id":"002","title": "湖北省","last": false,"parentId": "0","checkArr": [{"type": "0", "checked": "0"}]}, 7 | 8 | {"id":"001001", "title": "长沙市", "last":true, "parentId": "001","checkArr": [{"type": "0", "checked": "0"}]}, 9 | {"id":"001002", "title": "株洲市", "last":true, "parentId": "001" ,"checkArr": [{"type": "0", "checked": "0"}]}, 10 | {"id":"001003", "title": "湘潭市", "last":true, "parentId": "001" ,"checkArr": [{"type": "0", "checked": "0"}]}, 11 | {"id":"001004","title": "衡阳市","last":true,"parentId": "001","checkArr": [{"type": "0", "checked": "0"}]}, 12 | {"id":"001005","title": "郴州市","last":true,"parentId": "001","checkArr": [{"type": "0", "checked": "0"}]}, 13 | 14 | {"id":"002001","title": "武汉市","last":true,"parentId": "002","checkArr": [{"type": "0", "checked": "1"}]}, 15 | {"id":"002002","title": "黄冈市","last":true,"parentId": "002","checkArr": [{"type": "0", "checked": "2"}]}, 16 | {"id":"002003","title": "荆州市","last":true,"parentId": "002","checkArr": [{"type": "0", "checked": "0"}]}, 17 | {"id":"002004","title": "天门市","last":true,"parentId": "002","checkArr": [{"type": "0", "checked": "0"}]}, 18 | {"id":"002005","title": "孝感市","last":true,"parentId": "002","checkArr": [{"type": "0", "checked": "0"}]} 19 | ] 20 | } -------------------------------------------------------------------------------- /src/com/mapper/RoleMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | 7 | import com.entity.Role; 8 | 9 | /** 10 | * 11 | * @date 2021/9/10 12 | */ 13 | public interface RoleMapper { 14 | 15 | int deleteByPrimaryKey(Integer roleid); 16 | 17 | int insert(Role record); 18 | 19 | int insertSelective(Role record); 20 | 21 | Role selectByPrimaryKey(Integer roleid); 22 | 23 | int updateByPrimaryKeySelective(Role record); 24 | 25 | int updateByPrimaryKey(Role record); 26 | 27 | /** 28 | * 查询角色 29 | * @param role 30 | * @return 31 | */ 32 | List queryAllRole(Role role); 33 | 34 | /** 35 | * 根据角色id删除sys_role_menu里面的数据 36 | * @param roleid 37 | */ 38 | void deleteRoleMenuByRid(Integer roleid); 39 | 40 | /** 41 | * 根据角色id删除sys_role_user里面的数据 42 | * @param roleid 43 | */ 44 | void deleteRoleUserByRid(Integer roleid); 45 | 46 | /** 47 | * 保存角色和菜单的关系sys_role_menu 48 | * @param rid 49 | * @param mid 50 | */ 51 | void insertRoleMenu(@Param("rid") Integer rid, @Param("mid") Integer mid); 52 | 53 | /** 54 | * 根据用户id删除sys_role_user里面的数据 55 | * @param userid 56 | */ 57 | void deleteRoleUserByUid(Integer userid); 58 | 59 | /** 60 | * 根据用户id查询角色 61 | * @param available 62 | * @param userid 63 | * @return 64 | */ 65 | List queryRoleByUid(@Param("available") Integer available,@Param("uid") Integer userid); 66 | } 67 | -------------------------------------------------------------------------------- /src/com/service/impl/CheckKnowledgeServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.entity.CheckKnowledge; 9 | import com.mapper.CheckKnowledgeMapper; 10 | import com.mapper.ProjectMapper; 11 | import com.service.CheckKnowledgeService; 12 | import com.utils.DataGridView; 13 | 14 | /** 15 | * 体检小知识管理的服务接口 16 | * 17 | * @date 2021/9/10 18 | */ 19 | @Service 20 | public class CheckKnowledgeServiceImpl implements CheckKnowledgeService { 21 | 22 | @Autowired 23 | private CheckKnowledgeMapper checkKnowledgeMapper; 24 | 25 | @Autowired 26 | private ProjectMapper projectMapper; 27 | 28 | @Override 29 | public DataGridView queryAllCheckKnowledge(CheckKnowledge checkKnowledge) { 30 | List checkKnowledgeList = checkKnowledgeMapper.queryAllCheckKnowledge(checkKnowledge); 31 | return new DataGridView(checkKnowledgeList); 32 | } 33 | 34 | @Override 35 | public void addCheckKnowledge(CheckKnowledge pack) { 36 | checkKnowledgeMapper.addCheckKnowledge(pack); 37 | } 38 | 39 | @Override 40 | public void updateCheckKnowledge(CheckKnowledge pack) { 41 | checkKnowledgeMapper.updateCheckKnowledge(pack); 42 | } 43 | 44 | @Override 45 | public void deleteCheckKnowledge(String pid) { 46 | checkKnowledgeMapper.deleteCheckKnowledge(pid); 47 | } 48 | 49 | @Override 50 | public CheckKnowledge viewCheckKnowledge(Integer id) { 51 | return checkKnowledgeMapper.getCheckKnowledgeById(id); 52 | } 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /WebContent/js/login.js: -------------------------------------------------------------------------------- 1 | layui.use(['form','layer','jquery'],function(){ 2 | var form = layui.form, 3 | layer = parent.layer === undefined ? layui.layer : top.layer 4 | $ = layui.jquery; 5 | 6 | $(".loginBody .seraph").click(function(){ 7 | layer.msg("这只是做个样式,至于功能,你见过哪个后台能这样登录的?还是老老实实的找管理员去注册吧",{ 8 | time:5000 9 | }); 10 | }) 11 | 12 | //登录按钮 13 | form.on("submit(login)",function(data){ 14 | $(this).text("登录中...").attr("disabled","disabled").addClass("layui-disabled"); 15 | var role = $("input[name='role']:checked").val(); 16 | var userName = $("#userName").val(); 17 | var password = $("#password").val(); 18 | setTimeout(function(){ 19 | window.location.href = "/examination/login/login.action?role=" + role + "&password=" + password + "&userName=" + userName; 20 | },1000); 21 | return false; 22 | }) 23 | 24 | //表单输入效果 25 | $(".loginBody .input-item").click(function(e){ 26 | e.stopPropagation(); 27 | $(this).addClass("layui-input-focus").find(".layui-input").focus(); 28 | }) 29 | $(".loginBody .layui-form-item .layui-input").focus(function(){ 30 | $(this).parent().addClass("layui-input-focus"); 31 | }) 32 | $(".loginBody .layui-form-item .layui-input").blur(function(){ 33 | $(this).parent().removeClass("layui-input-focus"); 34 | if($(this).val() != ''){ 35 | $(this).parent().addClass("layui-input-active"); 36 | }else{ 37 | $(this).parent().removeClass("layui-input-active"); 38 | } 39 | }) 40 | }) 41 | -------------------------------------------------------------------------------- /WebContent/layui_ext/json/case/asyncTreeCheckBox2.json: -------------------------------------------------------------------------------- 1 | { 2 | "code":0, 3 | "msg":"操作成功", 4 | "data":[ 5 | {"id":"001","title": "湖南省", "last": false, "parentId": "0","checkArr": "{\"type\": \"0\", \"checked\": \"0\"}"}, 6 | {"id":"002","title": "湖北省","last": false,"parentId": "0","checkArr": "{\"type\": \"0\", \"checked\": \"0\"}"}, 7 | 8 | {"id":"001001", "title": "长沙市", "last":true, "parentId": "001","checkArr": "{\"type\": \"0\", \"checked\": \"0\"}"}, 9 | {"id":"001002", "title": "株洲市", "last":true, "parentId": "001" ,"checkArr": "{\"type\": \"0\", \"checked\": \"0\"}"}, 10 | {"id":"001003", "title": "湘潭市", "last":true, "parentId": "001" ,"checkArr": "{\"type\": \"0\", \"checked\": \"0\"}"}, 11 | {"id":"001004","title": "衡阳市","last":true,"parentId": "001","checkArr": "{\"type\": \"0\", \"checked\": \"0\"}"}, 12 | {"id":"001005","title": "郴州市","last":true,"parentId": "001","checkArr": "{\"type\": \"0\", \"checked\": \"0\"}"}, 13 | 14 | {"id":"002001","title": "武汉市","last":true,"parentId": "002","checkArr": "{\"type\": \"0\", \"checked\": \"0\"}"}, 15 | {"id":"002002","title": "黄冈市","last":true,"parentId": "002","checkArr": "{\"type\": \"0\", \"checked\": \"0\"}"}, 16 | {"id":"002003","title": "荆州市","last":true,"parentId": "002","checkArr": "{\"type\": \"0\", \"checked\": \"0\"}"}, 17 | {"id":"002004","title": "天门市","last":true,"parentId": "002","checkArr": "{\"type\": \"0\", \"checked\": \"0\"}"}, 18 | {"id":"002005","title": "孝感市","last":true,"parentId": "002","checkArr": "{\"type\": \"0\", \"checked\": \"0\"}"} 19 | ] 20 | } -------------------------------------------------------------------------------- /src/com/mapper/MenuMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import org.apache.ibatis.annotations.Param; 6 | 7 | import com.entity.Menu; 8 | import com.vo.MenuVo; 9 | 10 | /** 11 | * 12 | * 13 | * @date 2021/9/10 14 | */ 15 | public interface MenuMapper { 16 | 17 | int deleteByPrimaryKey(Integer id); 18 | 19 | int insert(Menu record); 20 | 21 | int insertSelective(Menu record); 22 | 23 | Menu selectByPrimaryKey(Integer id); 24 | 25 | int updateByPrimaryKeySelective(Menu record); 26 | 27 | int updateByPrimaryKey(Menu record); 28 | 29 | /** 30 | * 查询所有菜单 31 | */ 32 | List queryAllMenu(Menu menu); 33 | 34 | /** 35 | * 根据pid查询菜单数量 36 | * @param pid 37 | * @return 38 | */ 39 | Integer queryMenuByPid(@Param("pid")Integer pid); 40 | 41 | /** 42 | * 根据菜单id删除sys_role_menu里面的数据 43 | * @param mid 44 | */ 45 | void deleteRoleMenuByMid(@Param("mid") Integer mid); 46 | 47 | /** 48 | * 根据角色ID查询菜单 49 | * @param available 50 | * @param roleid 51 | * @return 52 | */ 53 | List queryMenuByRoleId(@Param("available") Integer available,@Param("rid") String roleid); 54 | 55 | /** 56 | * 根据用户id查询菜单 57 | * @param available 58 | * @param userId 59 | * @return 60 | */ 61 | List queryMenuByUid(@Param("available") Integer available,@Param("uid") Integer userId); 62 | 63 | /** 64 | * 查询医生的菜单 65 | * */ 66 | List queryMenuByDoctorIdForList(MenuVo menuVo); 67 | 68 | /** 69 | * 查询体检人员的菜单 70 | * */ 71 | List queryMenuByUserIdForList(MenuVo menuVo); 72 | } 73 | -------------------------------------------------------------------------------- /WebContent/css/feedback.css: -------------------------------------------------------------------------------- 1 | .comment-box { 2 | width: 100%; 3 | height: 100%; 4 | } 5 | 6 | .comment-edit-box { 7 | 8 | 9 | } 10 | 11 | .comment-list-container { 12 | 13 | } 14 | 15 | .comment-content { 16 | height: 64px; 17 | width: 90%; 18 | padding: 6px 8px; 19 | margin: 20px 10px 5px 10px; 20 | background-color: #fff; 21 | box-shadow: 0 0 6px 0 #009688; 22 | border: 1px solid #009688; 23 | border-radius: 4px; 24 | } 25 | 26 | .comment-edit-box .opt-box { 27 | margin-left: 91%; 28 | } 29 | .comment-list-box { 30 | padding: 0 24px; 31 | } 32 | .comment-list { 33 | width: 100%; 34 | height: 20px; 35 | margin-top: 20px; 36 | } 37 | 38 | .comment-list-name { 39 | float: left; 40 | font-size: 14px; 41 | font-weight: bold; 42 | color: #555666; 43 | margin-left: 10px; 44 | } 45 | 46 | .comment-list-date { 47 | float: right; 48 | margin-right: 70px; 49 | font-size: 12px; 50 | font-weight: normal; 51 | color: #6b6b6b; 52 | } 53 | 54 | .comment-reply-div { 55 | margin-left: 32px; 56 | } 57 | 58 | .comment-list-reply { 59 | width: 100%; 60 | height: 20px; 61 | margin-top: 20px; 62 | } 63 | .comment-list-reply-name { 64 | float: left; 65 | font-size: 14px; 66 | font-weight: bold; 67 | color: #555666; 68 | } 69 | 70 | .comment-list-reply-reply { 71 | float: left; 72 | font-size: 14px; 73 | font-weight: normal; 74 | color: #555666; 75 | margin-left: 5px; 76 | } 77 | 78 | .comment-list-reply-reply-name { 79 | float: left; 80 | font-size: 14px; 81 | font-weight: bold; 82 | color: #555666; 83 | margin-left: 5px; 84 | } 85 | 86 | .comment-list-reply-date { 87 | float: right; 88 | margin-right: 70px; 89 | font-size: 12px; 90 | font-weight: normal; 91 | color: #6b6b6b; 92 | } -------------------------------------------------------------------------------- /WebContent/layui/lay/modules/laytpl.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)}); -------------------------------------------------------------------------------- /src/com/controller/PackageController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | import org.springframework.web.bind.annotation.RestController; 6 | 7 | import com.entity.Package; 8 | import com.service.PackageService; 9 | import com.utils.DataGridView; 10 | import com.utils.ResultObj; 11 | 12 | @RestController 13 | @RequestMapping("package") 14 | public class PackageController { 15 | 16 | @Autowired 17 | private PackageService packService; 18 | 19 | @RequestMapping("loadAllPackage") 20 | public DataGridView loadAllPackage(Package pack) { 21 | return this.packService.queryAllPackage(pack); 22 | } 23 | 24 | @RequestMapping("addPackage") 25 | public ResultObj addPackage(Package pack) { 26 | try { 27 | this.packService.addPackage(pack); 28 | return ResultObj.ADD_SUCCESS; 29 | } catch (Exception e) { 30 | e.printStackTrace(); 31 | return ResultObj.ADD_ERROR; 32 | } 33 | } 34 | 35 | @RequestMapping("updatePackage") 36 | public ResultObj updatePackage(Package pack) { 37 | try { 38 | this.packService.updatePackage(pack); 39 | return ResultObj.UPDATE_SUCCESS; 40 | } catch (Exception e) { 41 | e.printStackTrace(); 42 | return ResultObj.UPDATE_ERROR; 43 | } 44 | } 45 | 46 | 47 | @RequestMapping("deletePackage") 48 | public ResultObj deletePackage(Package pack) { 49 | try { 50 | this.packService.deletePackage(pack.getId()); 51 | return ResultObj.DELETE_SUCCESS; 52 | } catch (Exception e) { 53 | e.printStackTrace(); 54 | return ResultObj.DELETE_ERROR; 55 | } 56 | } 57 | 58 | 59 | } 60 | -------------------------------------------------------------------------------- /src/com/controller/ProjectController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | import org.springframework.web.bind.annotation.RestController; 6 | 7 | import com.entity.Project; 8 | import com.service.ProjectService; 9 | import com.utils.DataGridView; 10 | import com.utils.ResultObj; 11 | 12 | @RestController 13 | @RequestMapping("project") 14 | public class ProjectController { 15 | 16 | @Autowired 17 | private ProjectService projectService; 18 | 19 | @RequestMapping("loadAllProject") 20 | public DataGridView loadAllProject(Project project) { 21 | return this.projectService.queryAllProject(project); 22 | } 23 | 24 | @RequestMapping("addProject") 25 | public ResultObj addProject(Project project) { 26 | try { 27 | this.projectService.addProject(project); 28 | return ResultObj.ADD_SUCCESS; 29 | } catch (Exception e) { 30 | e.printStackTrace(); 31 | return ResultObj.ADD_ERROR; 32 | } 33 | } 34 | 35 | @RequestMapping("updateProject") 36 | public ResultObj updateProject(Project project) { 37 | try { 38 | this.projectService.updateProject(project); 39 | return ResultObj.UPDATE_SUCCESS; 40 | } catch (Exception e) { 41 | e.printStackTrace(); 42 | return ResultObj.UPDATE_ERROR; 43 | } 44 | } 45 | 46 | 47 | @RequestMapping("deleteProject") 48 | public ResultObj deleteProject(Project project) { 49 | try { 50 | this.projectService.deleteProject(project.getPid()); 51 | return ResultObj.DELETE_SUCCESS; 52 | } catch (Exception e) { 53 | e.printStackTrace(); 54 | return ResultObj.DELETE_ERROR; 55 | } 56 | } 57 | 58 | 59 | } 60 | -------------------------------------------------------------------------------- /src/com/mapper/UserMapper.java: -------------------------------------------------------------------------------- 1 | package com.mapper; 2 | 3 | import java.util.List; 4 | 5 | import com.entity.Admin; 6 | import com.entity.Department; 7 | import com.entity.Doctor; 8 | import com.entity.User; 9 | 10 | /** 11 | * 12 | * @date 2021/9/10 13 | */ 14 | public interface UserMapper { 15 | /** 16 | * 管理员登录 17 | * @param userVo 18 | * @return 19 | */ 20 | Admin adminLogin(Admin admin); 21 | /** 22 | * 医生登录 23 | * @param userVo 24 | * @return 25 | */ 26 | Doctor doctorLogin(Doctor doctor); 27 | /** 28 | * 体检人员登录 29 | * @param userVo 30 | * @return 31 | */ 32 | User userLogin(User user); 33 | 34 | /** 35 | * 添加体检人员 36 | * @param userVo 37 | */ 38 | void addUser(User user); 39 | /** 40 | * 查询所有体检人员 41 | * @param userVo 42 | */ 43 | List queryAllUser(User user); 44 | 45 | int updateByPrimaryKeySelective(User record); 46 | 47 | int deleteByPrimaryKey(String uid); 48 | 49 | /** 50 | * 添加医生 51 | * @param userVo 52 | */ 53 | void addDoctor(Doctor doctor); 54 | 55 | /** 56 | * 查询所有医生 57 | * @param userVo 58 | * @return 59 | */ 60 | List queryAllDoctor(Doctor doctor); 61 | 62 | /** 63 | * 修改医生 64 | * @param userVo 65 | */ 66 | void updateDoctor(Doctor doctor); 67 | 68 | /** 69 | * 根据id删除医生 70 | * @param userid 71 | */ 72 | void deleteDoctor(String did); 73 | /** 74 | * 查询所有科室 75 | * @param userVo 76 | */ 77 | List queryAllDepartment(Department department); 78 | 79 | 80 | Admin queryAdmin(String id); 81 | 82 | Doctor queryDoctor(String id); 83 | 84 | User queryUser(String id); 85 | 86 | void updateAdmin(Admin admin); 87 | 88 | } 89 | -------------------------------------------------------------------------------- /src/com/controller/CommentController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | import org.springframework.web.bind.annotation.RestController; 6 | 7 | import com.entity.Comment; 8 | import com.entity.Order1; 9 | import com.service.CommentService; 10 | import com.utils.DataGridView; 11 | import com.utils.DateUtils; 12 | import com.utils.ResultObj; 13 | import com.utils.WebUtils; 14 | import com.vo.UserVO; 15 | 16 | @RestController 17 | @RequestMapping("comment") 18 | public class CommentController { 19 | 20 | @Autowired 21 | private CommentService commentService; 22 | 23 | @RequestMapping("addComment") 24 | public ResultObj addComment(Comment comment) { 25 | try { 26 | UserVO userVO = (UserVO)WebUtils.getHttpSession().getAttribute("user"); 27 | comment.setAddtime(DateUtils.getCurrnetDate()); 28 | comment.setNickName(userVO.getRealname()); 29 | // comment.setParentId(-1); 30 | comment.setRole(userVO.getType()); 31 | comment.setUserId(userVO.getLoginname()); 32 | this.commentService.addComment(comment); 33 | return ResultObj.ADD_SUCCESS; 34 | } catch (Exception e) { 35 | e.printStackTrace(); 36 | return ResultObj.ADD_ERROR; 37 | } 38 | } 39 | 40 | @RequestMapping("loadAllComment") 41 | public DataGridView loadAllComment(Comment comment) { 42 | return this.commentService.loadAllComment(); 43 | } 44 | 45 | @RequestMapping("loadAllCommentByUserId") 46 | public DataGridView loadAllCommentByUserId(Comment comment) { 47 | //设置当前登录用户,只查询当前用户的体检单 48 | UserVO userVO = (UserVO)WebUtils.getHttpSession().getAttribute("user"); 49 | return this.commentService.loadAllParentCommentByUserId(userVO.getLoginname()); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/com/constant/SysConstant.java: -------------------------------------------------------------------------------- 1 | package com.constant; 2 | 3 | 4 | /** 5 | * 常量接口状态码 6 | */ 7 | public interface SysConstant { 8 | 9 | String USER_LOGIN_ERROR_MSG="用户名或密码不正确"; 10 | String USER_LOGIN_CODE_ERROR_MSG = "验证码不正确"; 11 | 12 | /** 13 | *可用状态 14 | */ 15 | Integer AVAILABLE_TRUE = 1; 16 | Integer AVAILABLE_FALSE = 0; 17 | 18 | /** 19 | * 用户类型 20 | */ 21 | // Integer USER_TYPE_SUPER = 1; 22 | // Integer USER_TYPE_NORMAL = 2; 23 | 24 | String USER_TYPE_ADMIN = "2"; 25 | String USER_TYPE_DOCTOR = "3"; 26 | String USER_TYPE_USER = "4"; 27 | 28 | 29 | /** 30 | * 是否展开 31 | */ 32 | Integer SPREAD_TRUE = 1; 33 | Integer SPREAD_FALSE = 0; 34 | 35 | /** 36 | *操作状态 37 | * */ 38 | 39 | String ADD_SUCCESS="添加成功"; 40 | String ADD_ERROR="添加失败"; 41 | 42 | String UPDATE_SUCCESS="修改成功"; 43 | String UPDATE_ERROR="修改失败"; 44 | 45 | String DELETE_SUCCESS="删除成功"; 46 | String DELETE_ERROR="删除失败"; 47 | 48 | String RESET_SUCCESS="重置成功"; 49 | String RESET_ERROR="重置失败"; 50 | 51 | String DISPATCH_SUCCESS="分配成功"; 52 | String DISPATCH_ERROR="分配失败"; 53 | 54 | String ORDER1_SUCCESS="预约通过"; 55 | String ORDER1_ERROR="预约不通过"; 56 | 57 | Integer CODE_SUCCESS = 0;//操作成功 58 | Integer CODE_ERROR = -1;//操作失败 59 | 60 | /** 61 | * 公用常量 62 | */ 63 | Integer CODE_ZERO = 0; 64 | Integer CODE_ONE = 1; 65 | Integer CODE_TWO = 2; 66 | Integer CODE_THREE = 3; 67 | 68 | /** 69 | * 用户默认密码 70 | */ 71 | String USER_DEFAULT_PWD="123456"; 72 | 73 | /** 74 | * 临时文件标记 75 | */ 76 | String FILE_UPLOAD_TEMP = "_temp"; 77 | 78 | /** 79 | * 默认图片地址 80 | */ 81 | Object DEFAULT_CAR_IMG = "images/defaultcarimage.jpg"; 82 | 83 | /** 84 | * 单号的前缀 85 | */ 86 | String CAR_ORDER_CZ = "CZ"; 87 | String CAR_ORDER_JC = "JC"; 88 | 89 | } 90 | -------------------------------------------------------------------------------- /WebContent/layui/lay/modules/flow.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)}); -------------------------------------------------------------------------------- /src/springmvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/com/entity/User.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | 4 | public class User { 5 | private String uid; 6 | 7 | private String uname; 8 | 9 | private String upassword; 10 | 11 | private String usex; 12 | 13 | private String uidcard; 14 | 15 | private String uphone; 16 | 17 | private String birthday; 18 | 19 | private String address; 20 | 21 | private Integer page; 22 | 23 | private Integer limit; 24 | 25 | public String getUid() { 26 | return uid; 27 | } 28 | 29 | public void setUid(String uid) { 30 | this.uid = uid; 31 | } 32 | 33 | public String getUname() { 34 | return uname; 35 | } 36 | 37 | public void setUname(String uname) { 38 | this.uname = uname; 39 | } 40 | 41 | public String getUpassword() { 42 | return upassword; 43 | } 44 | 45 | public void setUpassword(String upassword) { 46 | this.upassword = upassword; 47 | } 48 | 49 | public String getUsex() { 50 | return usex; 51 | } 52 | 53 | public void setUsex(String usex) { 54 | this.usex = usex; 55 | } 56 | 57 | public String getUidcard() { 58 | return uidcard; 59 | } 60 | 61 | public void setUidcard(String uidcard) { 62 | this.uidcard = uidcard; 63 | } 64 | 65 | public String getUphone() { 66 | return uphone; 67 | } 68 | 69 | public void setUphone(String uphone) { 70 | this.uphone = uphone; 71 | } 72 | 73 | public String getBirthday() { 74 | return birthday; 75 | } 76 | 77 | public void setBirthday(String birthday) { 78 | this.birthday = birthday; 79 | } 80 | 81 | public String getAddress() { 82 | return address; 83 | } 84 | 85 | public void setAddress(String address) { 86 | this.address = address; 87 | } 88 | 89 | public Integer getPage() { 90 | return page; 91 | } 92 | 93 | public void setPage(Integer page) { 94 | this.page = page; 95 | } 96 | 97 | public Integer getLimit() { 98 | return limit; 99 | } 100 | 101 | public void setLimit(Integer limit) { 102 | this.limit = limit; 103 | } 104 | 105 | 106 | } 107 | -------------------------------------------------------------------------------- /src/com/entity/Doctor.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | 4 | public class Doctor { 5 | private String did; 6 | 7 | private String dname; 8 | 9 | private String dpassword; 10 | 11 | private String dsex; 12 | 13 | private String department; 14 | 15 | private String departmentname; 16 | 17 | private String dphone; 18 | 19 | private String remarks; 20 | 21 | private Integer page; 22 | 23 | private Integer limit; 24 | 25 | public String getDid() { 26 | return did; 27 | } 28 | 29 | public void setDid(String did) { 30 | this.did = did; 31 | } 32 | 33 | public String getDname() { 34 | return dname; 35 | } 36 | 37 | public void setDname(String dname) { 38 | this.dname = dname; 39 | } 40 | 41 | public String getDpassword() { 42 | return dpassword; 43 | } 44 | 45 | public void setDpassword(String dpassword) { 46 | this.dpassword = dpassword; 47 | } 48 | 49 | public String getDsex() { 50 | return dsex; 51 | } 52 | 53 | public void setDsex(String dsex) { 54 | this.dsex = dsex; 55 | } 56 | 57 | public String getDepartment() { 58 | return department; 59 | } 60 | 61 | public void setDepartment(String department) { 62 | this.department = department; 63 | } 64 | 65 | public String getDphone() { 66 | return dphone; 67 | } 68 | 69 | public void setDphone(String dphone) { 70 | this.dphone = dphone; 71 | } 72 | 73 | public String getRemarks() { 74 | return remarks; 75 | } 76 | 77 | public void setRemarks(String remarks) { 78 | this.remarks = remarks; 79 | } 80 | 81 | public Integer getPage() { 82 | return page; 83 | } 84 | 85 | public void setPage(Integer page) { 86 | this.page = page; 87 | } 88 | 89 | public Integer getLimit() { 90 | return limit; 91 | } 92 | 93 | public void setLimit(Integer limit) { 94 | this.limit = limit; 95 | } 96 | 97 | public String getDepartmentname() { 98 | return departmentname; 99 | } 100 | 101 | public void setDepartmentname(String departmentname) { 102 | this.departmentname = departmentname; 103 | } 104 | 105 | 106 | 107 | } 108 | -------------------------------------------------------------------------------- /src/com/mapper/PackageMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | id, packagename, pid, pname 12 | 13 | 26 | 32 | 33 | delete from package 34 | where id = #{id,jdbcType=VARCHAR} 35 | 36 | 37 | insert into package (id, packagename, pid) 38 | values (#{id,jdbcType=VARCHAR}, #{packagename,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}) 39 | 40 | 41 | update package 42 | 43 | 44 | packagename = #{packagename,jdbcType=VARCHAR}, 45 | 46 | 47 | pid = #{pid,jdbcType=VARCHAR}, 48 | 49 | 50 | where id = #{id,jdbcType=VARCHAR} 51 | 52 | 53 | -------------------------------------------------------------------------------- /src/com/mapper/CommentMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | ID, NICKNAME, USERID, CONTENT, PARENTID, ADDTIME, ROLE 15 | 16 | 21 | 22 | 27 | 28 | 33 | 34 | 39 | 40 | 41 | insert into comment ( userid, nickname, content, parentid, 42 | addtime, role) 43 | values ( #{userId,jdbcType=VARCHAR}, #{nickName,jdbcType=VARCHAR}, 44 | #{content,jdbcType=VARCHAR}, #{parentId,jdbcType=VARCHAR}, #{addtime,jdbcType=VARCHAR}, 45 | #{role,jdbcType=VARCHAR}) 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /src/com/entity/Result.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | 4 | public class Result { 5 | private String oid; 6 | 7 | private String uname; 8 | 9 | private String usex; 10 | 11 | private String projectresult; 12 | 13 | private String finalresult; 14 | 15 | private String doctor; 16 | 17 | private String fileId; 18 | 19 | private String fileName; 20 | 21 | private String filePath; 22 | 23 | private String updatetime; 24 | 25 | public String getOid() { 26 | return oid; 27 | } 28 | 29 | public void setOid(String oid) { 30 | this.oid = oid; 31 | } 32 | 33 | public String getUname() { 34 | return uname; 35 | } 36 | 37 | public void setUname(String uname) { 38 | this.uname = uname; 39 | } 40 | 41 | public String getUsex() { 42 | return usex; 43 | } 44 | 45 | public void setUsex(String usex) { 46 | this.usex = usex; 47 | } 48 | 49 | public String getProjectresult() { 50 | return projectresult; 51 | } 52 | 53 | public void setProjectresult(String projectresult) { 54 | this.projectresult = projectresult; 55 | } 56 | 57 | public String getFinalresult() { 58 | return finalresult; 59 | } 60 | 61 | public void setFinalresult(String finalresult) { 62 | this.finalresult = finalresult; 63 | } 64 | 65 | public String getDoctor() { 66 | return doctor; 67 | } 68 | 69 | public void setDoctor(String doctor) { 70 | this.doctor = doctor; 71 | } 72 | 73 | public String getFileId() { 74 | return fileId; 75 | } 76 | 77 | public void setFileId(String fileId) { 78 | this.fileId = fileId; 79 | } 80 | 81 | public String getFileName() { 82 | return fileName; 83 | } 84 | 85 | public void setFileName(String fileName) { 86 | this.fileName = fileName; 87 | } 88 | 89 | public String getFilePath() { 90 | return filePath; 91 | } 92 | 93 | public void setFilePath(String filePath) { 94 | this.filePath = filePath; 95 | } 96 | 97 | public String getUpdatetime() { 98 | return updatetime; 99 | } 100 | 101 | public void setUpdatetime(String updatetime) { 102 | this.updatetime = updatetime; 103 | } 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | } 113 | -------------------------------------------------------------------------------- /src/com/entity/Menu.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | 4 | public class Menu { 5 | private Integer id; 6 | 7 | private Integer pid; 8 | 9 | private String title; 10 | 11 | private String href; 12 | 13 | private Integer spread; 14 | 15 | private String target; 16 | 17 | private String icon; 18 | 19 | private Integer available; 20 | 21 | public Menu() { 22 | } 23 | 24 | public Menu(Integer id, Integer pid, String title, String href, Integer spread, String target, String icon, Integer available) { 25 | this.id = id; 26 | this.pid = pid; 27 | this.title = title; 28 | this.href = href; 29 | this.spread = spread; 30 | this.target = target; 31 | this.icon = icon; 32 | this.available = available; 33 | } 34 | 35 | public Integer getId() { 36 | return id; 37 | } 38 | 39 | public void setId(Integer id) { 40 | this.id = id; 41 | } 42 | 43 | public Integer getPid() { 44 | return pid; 45 | } 46 | 47 | public void setPid(Integer pid) { 48 | this.pid = pid; 49 | } 50 | 51 | public String getTitle() { 52 | return title; 53 | } 54 | 55 | public void setTitle(String title) { 56 | this.title = title == null ? null : title.trim(); 57 | } 58 | 59 | public String getHref() { 60 | return href; 61 | } 62 | 63 | public void setHref(String href) { 64 | this.href = href == null ? null : href.trim(); 65 | } 66 | 67 | public Integer getSpread() { 68 | return spread; 69 | } 70 | 71 | public void setSpread(Integer spread) { 72 | this.spread = spread; 73 | } 74 | 75 | public String getTarget() { 76 | return target; 77 | } 78 | 79 | public void setTarget(String target) { 80 | this.target = target == null ? null : target.trim(); 81 | } 82 | 83 | public String getIcon() { 84 | return icon; 85 | } 86 | 87 | public void setIcon(String icon) { 88 | this.icon = icon == null ? null : icon.trim(); 89 | } 90 | 91 | public Integer getAvailable() { 92 | return available; 93 | } 94 | 95 | public void setAvailable(Integer available) { 96 | this.available = available; 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /src/com/entity/Project.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | 4 | public class Project { 5 | private String pid; 6 | 7 | private String pname; 8 | 9 | private String ptype; 10 | 11 | private String ptypename; 12 | 13 | private String psex; 14 | 15 | private String department; 16 | 17 | private String departmentname; 18 | 19 | private Integer page; 20 | 21 | private Integer limit; 22 | 23 | public String getPid() { 24 | return pid; 25 | } 26 | 27 | public void setPid(String pid) { 28 | this.pid = pid; 29 | } 30 | 31 | public String getPname() { 32 | return pname; 33 | } 34 | 35 | public void setPname(String pname) { 36 | this.pname = pname; 37 | } 38 | 39 | public String getPtype() { 40 | return ptype; 41 | } 42 | 43 | public void setPtype(String ptype) { 44 | this.ptype = ptype; 45 | } 46 | 47 | public String getPsex() { 48 | return psex; 49 | } 50 | 51 | public void setPsex(String psex) { 52 | this.psex = psex; 53 | } 54 | 55 | public String getDepartment() { 56 | return department; 57 | } 58 | 59 | public void setDepartment(String department) { 60 | this.department = department; 61 | } 62 | 63 | public Integer getPage() { 64 | return page; 65 | } 66 | 67 | public void setPage(Integer page) { 68 | this.page = page; 69 | } 70 | 71 | public Integer getLimit() { 72 | return limit; 73 | } 74 | 75 | public void setLimit(Integer limit) { 76 | this.limit = limit; 77 | } 78 | 79 | public String getPtypename() { 80 | return ptypename; 81 | } 82 | 83 | public void setPtypename(String ptypename) { 84 | this.ptypename = ptypename; 85 | } 86 | 87 | public String getDepartmentname() { 88 | return departmentname; 89 | } 90 | 91 | public void setDepartmentname(String departmentname) { 92 | this.departmentname = departmentname; 93 | } 94 | 95 | @Override 96 | public boolean equals(Object obj) { 97 | if (this == obj) 98 | return true; 99 | if (obj == null) 100 | return false; 101 | if (obj instanceof Project) { 102 | Project project = (Project) obj; 103 | return this.pid.equals(project.pid) 104 | && this.pname.equals(project.pname); 105 | } 106 | return super.equals(obj); 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /WebContent/js/address.js: -------------------------------------------------------------------------------- 1 | layui.define(["form","jquery"],function(exports){ 2 | var form = layui.form, 3 | $ = layui.jquery, 4 | Address = { 5 | provinces : function() { 6 | //加载省数据 7 | var proHtml = '',that = this; 8 | $.get("../../json/address.json", function (data) { 9 | for (var i = 0; i < data.length; i++) { 10 | proHtml += ''; 11 | } 12 | //初始化省数据 13 | $("select[name=province]").append(proHtml); 14 | form.render(); 15 | form.on('select(province)', function (proData) { 16 | $("select[name=area]").html(''); 17 | var value = proData.value; 18 | if (value > 0) { 19 | that.citys(data[$(this).index() - 1].childs); 20 | } else { 21 | $("select[name=city]").attr("disabled", "disabled"); 22 | } 23 | }); 24 | }) 25 | }, 26 | //加载市数据 27 | citys : function(citys) { 28 | var cityHtml = '',that = this; 29 | for (var i = 0; i < citys.length; i++) { 30 | cityHtml += ''; 31 | } 32 | $("select[name=city]").html(cityHtml).removeAttr("disabled"); 33 | form.render(); 34 | form.on('select(city)', function (cityData) { 35 | var value = cityData.value; 36 | if (value > 0) { 37 | that.areas(citys[$(this).index() - 1].childs); 38 | } else { 39 | $("select[name=area]").attr("disabled", "disabled"); 40 | } 41 | }); 42 | }, 43 | //加载县/区数据 44 | areas : function(areas) { 45 | var areaHtml = ''; 46 | for (var i = 0; i < areas.length; i++) { 47 | areaHtml += ''; 48 | } 49 | $("select[name=area]").html(areaHtml).removeAttr("disabled"); 50 | form.render(); 51 | } 52 | }; 53 | exports("address",Address); 54 | }) -------------------------------------------------------------------------------- /WebContent/WEB-INF/view/system/menu/MenuLeft.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: Administrator 4 | Date: 2020/2/15 5 | Time: 15:10 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 12 | 菜单树 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /src/com/mapper/ProjectMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | pid, pname, ptype, psex, department 13 | 14 | 27 | 28 | delete from project 29 | where pid = #{id,jdbcType=VARCHAR} 30 | 31 | 32 | insert into project (pid, pname, ptype, 33 | psex, department) 34 | values (#{pid,jdbcType=VARCHAR}, #{pname,jdbcType=VARCHAR}, #{ptype,jdbcType=VARCHAR}, 35 | #{psex,jdbcType=VARCHAR}, #{department,jdbcType=VARCHAR}) 36 | 37 | 38 | update project 39 | 40 | 41 | pname = #{pname,jdbcType=VARCHAR}, 42 | 43 | 44 | ptype = #{ptype,jdbcType=VARCHAR}, 45 | 46 | 47 | psex = #{psex,jdbcType=VARCHAR}, 48 | 49 | 50 | department = #{department,jdbcType=VARCHAR}, 51 | 52 | 53 | where pid = #{pid,jdbcType=VARCHAR} 54 | 55 | 60 | -------------------------------------------------------------------------------- /src/com/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.entity.Admin; 4 | import com.entity.Department; 5 | import com.entity.Doctor; 6 | import com.entity.User; 7 | import com.utils.DataGridView; 8 | 9 | /** 10 | * 用户服务接口 11 | * 12 | * @date 2021/9/10 13 | */ 14 | public interface UserService { 15 | 16 | /** 17 | * 管理员登录 18 | * @param userVo 19 | * @return 20 | */ 21 | Admin adminLogin(Admin admin); 22 | /** 23 | * 医生登录 24 | * @param userVo 25 | * @return 26 | */ 27 | Doctor doctorLogin(Doctor doctor); 28 | /** 29 | * 体检人员登录 30 | * @param userVo 31 | * @return 32 | */ 33 | User userLogin(User user); 34 | 35 | /** 36 | * 添加体检人员 37 | * @param userVo 38 | */ 39 | void addUser(User user); 40 | 41 | /** 42 | * 查询所有体检人员 43 | * @param userVo 44 | * @return 45 | */ 46 | DataGridView queryAllUser(User user); 47 | 48 | /** 49 | * 修改体检人员 50 | * @param userVo 51 | */ 52 | void updateUser(User userVo); 53 | 54 | /** 55 | * 根据id删除体检人员 56 | * @param userid 57 | */ 58 | void deleteUser(String uid); 59 | 60 | /** 61 | * 添加医生 62 | * @param userVo 63 | */ 64 | void addDoctor(Doctor doctor); 65 | 66 | /** 67 | * 查询所有医生 68 | * @param userVo 69 | * @return 70 | */ 71 | DataGridView queryAllDoctor(Doctor doctor); 72 | 73 | /** 74 | * 修改医生 75 | * @param userVo 76 | */ 77 | void updateDoctor(Doctor userVo); 78 | 79 | /** 80 | * 根据id删除医生 81 | * @param userid 82 | */ 83 | void deleteDoctor(String uid); 84 | 85 | /** 86 | * 查询所有科室 87 | * @param userVo 88 | * @return 89 | */ 90 | DataGridView queryAllDepartment(Department department); 91 | /** 92 | * 查询个人信息 93 | * @param userVo 94 | * @return 95 | */ 96 | DataGridView queryOneUserInfo(String type, String loginname); 97 | 98 | void updateAdmin(Admin admin); 99 | 100 | void changePwd(String type, String loginname, String pwd); 101 | 102 | /** 103 | * 体检人员登录 104 | * @param userVo 105 | * @return 106 | */ 107 | User queryUser(String id); 108 | 109 | } 110 | -------------------------------------------------------------------------------- /src/com/service/impl/PackageServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.entity.Department; 9 | import com.entity.Package; 10 | import com.entity.Project; 11 | import com.github.pagehelper.Page; 12 | import com.github.pagehelper.PageHelper; 13 | import com.mapper.PackageMapper; 14 | import com.mapper.ProjectMapper; 15 | import com.service.PackageService; 16 | import com.utils.DataGridView; 17 | 18 | /** 19 | * 角色管理的服务接口 20 | * 21 | * @date 2021/9/10 22 | */ 23 | @Service 24 | public class PackageServiceImpl implements PackageService { 25 | 26 | @Autowired 27 | private PackageMapper packageMapper; 28 | 29 | @Autowired 30 | private ProjectMapper projectMapper; 31 | 32 | @Override 33 | public DataGridView queryAllPackage(Package pack) { 34 | if (pack.getPage() != null && pack.getLimit() != null) { 35 | Page page = PageHelper.startPage(pack.getPage(), pack.getLimit()); 36 | List data = this.packageMapper.queryAllPackage(pack); 37 | if (data != null && data.size() > 0) { 38 | for (int i = 0; i < data.size(); i ++) { 39 | Package p = data.get(i); 40 | Project pro = new Project(); 41 | pro.setPid(p.getPid()); 42 | List dep = projectMapper.queryAllProject(pro); 43 | if (dep != null && dep.size() > 0) { 44 | p.setPname(dep.get(0).getPname()); 45 | } 46 | } 47 | } 48 | return new DataGridView(page.getTotal(),data); 49 | }else { 50 | List data = this.packageMapper.queryAllPackage(pack); 51 | if (data != null && data.size() > 0) { 52 | for (int i = 0; i < data.size(); i ++) { 53 | Package p = data.get(i); 54 | Project pro = new Project(); 55 | pro.setPid(p.getPid()); 56 | List dep = projectMapper.queryAllProject(pro); 57 | if (dep != null && dep.size() > 0) { 58 | p.setPname(dep.get(0).getPname()); 59 | } 60 | } 61 | } 62 | return new DataGridView(data); 63 | } 64 | 65 | } 66 | 67 | @Override 68 | public void addPackage(Package pack) { 69 | packageMapper.addPackage(pack); 70 | } 71 | 72 | @Override 73 | public void updatePackage(Package pack) { 74 | packageMapper.updatePackage(pack); 75 | } 76 | 77 | @Override 78 | public void deletePackage(String pid) { 79 | packageMapper.deletePackage(pid); 80 | } 81 | 82 | 83 | } 84 | -------------------------------------------------------------------------------- /src/com/service/impl/ProjectServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.entity.Department; 9 | import com.entity.Project; 10 | import com.github.pagehelper.Page; 11 | import com.github.pagehelper.PageHelper; 12 | import com.mapper.ProjectMapper; 13 | import com.mapper.UserMapper; 14 | import com.service.ProjectService; 15 | import com.utils.DataGridView; 16 | 17 | /** 18 | * 角色管理的服务接口 19 | * 20 | * @date 2021/9/10 21 | */ 22 | @Service 23 | public class ProjectServiceImpl implements ProjectService { 24 | 25 | @Autowired 26 | private ProjectMapper projectMapper; 27 | 28 | @Autowired 29 | private UserMapper userMapper; 30 | 31 | @Override 32 | public DataGridView queryAllProject(Project project) { 33 | if (project.getPage() != null && project.getLimit() != null) { 34 | Page page = PageHelper.startPage(project.getPage(), project.getLimit()); 35 | List data = this.projectMapper.queryAllProject(project); 36 | if (data != null && data.size() > 0) { 37 | for (int i = 0; i < data.size(); i ++) { 38 | Project p = data.get(i); 39 | Department department = new Department(); 40 | department.setId(p.getDepartment()); 41 | List dep = userMapper.queryAllDepartment(department); 42 | if (dep != null && dep.size() > 0) { 43 | p.setDepartmentname(dep.get(0).getName()); 44 | } 45 | } 46 | } 47 | return new DataGridView(page.getTotal(),data); 48 | }else { 49 | List data = this.projectMapper.queryAllProject(project); 50 | if (data != null && data.size() > 0) { 51 | for (int i = 0; i < data.size(); i ++) { 52 | Project p = data.get(i); 53 | Department department = new Department(); 54 | department.setId(p.getDepartment()); 55 | List dep = userMapper.queryAllDepartment(department); 56 | if (dep != null && dep.size() > 0) { 57 | p.setDepartmentname(dep.get(0).getName()); 58 | } 59 | } 60 | } 61 | return new DataGridView(data); 62 | } 63 | 64 | } 65 | 66 | @Override 67 | public void addProject(Project project) { 68 | projectMapper.addProject(project); 69 | } 70 | 71 | @Override 72 | public void updateProject(Project project) { 73 | projectMapper.updateProject(project); 74 | } 75 | 76 | @Override 77 | public void deleteProject(String pid) { 78 | projectMapper.deleteProject(pid); 79 | } 80 | 81 | 82 | } 83 | -------------------------------------------------------------------------------- /WebContent/layui/lay/modules/rate.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var a=layui.jquery,i={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(e){var i=this;return i.config=a.extend({},i.config,e),i},on:function(e,a){return layui.onevent.call(this,n,e,a)}},l=function(){var e=this,a=e.config;return{setvalue:function(a){e.setvalue.call(e,a)},config:a}},n="rate",t="layui-rate",o="layui-icon-rate",s="layui-icon-rate-solid",u="layui-icon-rate-half",r="layui-icon-rate-solid layui-icon-rate-half",c="layui-icon-rate-solid layui-icon-rate",f="layui-icon-rate layui-icon-rate-half",v=function(e){var l=this;l.index=++i.index,l.config=a.extend({},l.config,i.config,e),l.render()};v.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},v.prototype.render=function(){var e=this,i=e.config,l=i.theme?'style="color: '+i.theme+';"':"";i.elem=a(i.elem),parseInt(i.value)!==i.value&&(i.half||(i.value=Math.ceil(i.value)-i.value<.5?Math.ceil(i.value):Math.floor(i.value)));for(var n='
    ",u=1;u<=i.length;u++){var r='
  • ";i.half&&parseInt(i.value)!==i.value&&u==Math.ceil(i.value)?n=n+'
  • ":n+=r}n+="
"+(i.text?''+i.value+"星":"")+"";var c=i.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemTemp=a(n),i.span=e.elemTemp.next("span"),i.setText&&i.setText(i.value),c.html(e.elemTemp),c.addClass("layui-inline"),i.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,i=a.config;i.value=e,a.render()},v.prototype.action=function(){var e=this,i=e.config,l=e.elemTemp,n=l.find("i").width();l.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(i.value=t,i.half){var o=e.pageX-a(this).offset().left;o<=n/2&&(i.value=i.value-.5)}i.text&&l.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),v.on("mousemove",function(e){if(l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+t+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half){var c=e.pageX-a(this).offset().left;c<=n/2&&v.children("i").addClass(u).removeClass(s)}}),v.on("mouseleave",function(){l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+Math.floor(i.value)+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&l.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(u).removeClass(c)})})},v.prototype.events=function(){var e=this;e.config},i.render=function(e){var a=new v(e);return l.call(a)},e(n,i)}); -------------------------------------------------------------------------------- /WebContent/js/cacheUserInfo.js: -------------------------------------------------------------------------------- 1 | layui.config({ 2 | base : "../../js/" 3 | }).use(['form','jquery',"address"],function() { 4 | var form = layui.form, 5 | $ = layui.jquery, 6 | address = layui.address; 7 | 8 | //判断是否设置过头像,如果设置过则修改顶部、左侧和个人资料中的头像,否则使用默认头像 9 | if(window.sessionStorage.getItem('userFace')){ 10 | $("#userFace").attr("src",window.sessionStorage.getItem('userFace')); 11 | $(".userAvatar").attr("src",$(".userAvatar").attr("src").split("images/")[0] + "images/" + window.sessionStorage.getItem('userFace').split("images/")[1]); 12 | }else{ 13 | $("#userFace").attr("src","../../images/face.jpg"); 14 | } 15 | 16 | //判断是否修改过用户信息,如果修改过则填充修改后的信息 17 | var menuText = $("#top_tabs",parent.document).text(); //判断打开的窗口是否存在“个人资料”页面 18 | var citys,areas; 19 | if(window.sessionStorage.getItem('userInfo')){ 20 | //获取省信息 21 | address.provinces(); 22 | var userInfo = JSON.parse(window.sessionStorage.getItem('userInfo')); 23 | var citys; 24 | $(".realName").val(userInfo.realName); //用户名 25 | $(".userSex input[value="+userInfo.sex+"]").attr("checked","checked"); //性别 26 | $(".userPhone").val(userInfo.userPhone); //手机号 27 | $(".userBirthday").val(userInfo.userBirthday); //出生年月 28 | //填充省份信息,同时调取市级信息列表 29 | $.get("../../json/address.json", function (addressData) { 30 | $(".userAddress select[name='province']").val(userInfo.province); //省 31 | var value = userInfo.province; 32 | if (value > 0) { 33 | address.citys(addressData[$(".userAddress select[name='province'] option[value='"+userInfo.province+"']").index()-1].childs); 34 | citys = addressData[$(".userAddress select[name='province'] option[value='"+userInfo.province+"']").index()-1].childs; 35 | } else { 36 | $('.userAddress select[name=city]').attr("disabled","disabled"); 37 | } 38 | $(".userAddress select[name='city']").val(userInfo.city); //市 39 | //填充市级信息,同时调取区县信息列表 40 | var value = userInfo.city; 41 | if (value > 0) { 42 | address.areas(citys[$(".userAddress select[name=city] option[value='"+userInfo.city+"']").index()-1].childs); 43 | } else { 44 | $('.userAddress select[name=area]').attr("disabled","disabled"); 45 | } 46 | $(".userAddress select[name='area']").val(userInfo.area); //区 47 | form.render(); 48 | }) 49 | for(key in userInfo){ 50 | if(key.indexOf("like") != -1){ 51 | $(".userHobby input[name='"+key+"']").attr("checked","checked"); 52 | } 53 | } 54 | $(".userEmail").val(userInfo.userEmail); //用户邮箱 55 | $(".myself").val(userInfo.myself); //自我评价 56 | form.render(); 57 | } 58 | }) -------------------------------------------------------------------------------- /src/application-service.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /src/com/service/impl/MenuServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.entity.Menu; 9 | import com.github.pagehelper.Page; 10 | import com.github.pagehelper.PageHelper; 11 | import com.mapper.MenuMapper; 12 | import com.service.MenuService; 13 | import com.utils.DataGridView; 14 | import com.vo.MenuVo; 15 | 16 | /** 17 | * 18 | * @date 2021/9/10 19 | */ 20 | @Service 21 | public class MenuServiceImpl implements MenuService { 22 | 23 | @Autowired 24 | private MenuMapper menuMapper; 25 | @Override 26 | public List queryAllMenuForList(MenuVo menuVo) { 27 | return menuMapper.queryAllMenu(menuVo); 28 | } 29 | 30 | /** 31 | * 权限管理做完成后再回来改 32 | * @param menuVo 33 | * @param userId 34 | * @return 35 | */ 36 | // @Override 37 | // public List queryMenuByUserIdForList(MenuVo menuVo, Integer userId) { 38 | // return menuMapper.queryMenuByUid(menuVo.getAvailable(),userId); 39 | // } 40 | 41 | /** 42 | * 查询所有菜单的实现类 43 | * @param menuVo 44 | * @return 45 | */ 46 | @Override 47 | public DataGridView queryAllMenu(MenuVo menuVo) { 48 | Page page = PageHelper.startPage(menuVo.getPage(),menuVo.getLimit()); 49 | List data = this.menuMapper.queryAllMenu(menuVo); 50 | System.out.println("data = " + data); 51 | return new DataGridView(page.getTotal(),data); 52 | } 53 | 54 | /** 55 | * 添加菜单 56 | * @param menuVo 57 | */ 58 | @Override 59 | public void addMenu(MenuVo menuVo) { 60 | this.menuMapper.insertSelective(menuVo); 61 | } 62 | 63 | /** 64 | * 修改菜单 65 | * @param menuVo 66 | */ 67 | @Override 68 | public void updateMenu(MenuVo menuVo) { 69 | this.menuMapper.updateByPrimaryKeySelective(menuVo); 70 | } 71 | 72 | /** 73 | * 根据pid查询菜单的数量 74 | * @param pid 75 | * @return 76 | */ 77 | @Override 78 | public Integer queryMenuByPid(Integer pid) { 79 | return this.menuMapper.queryMenuByPid(pid); 80 | } 81 | 82 | /** 83 | * 删除菜单 84 | * @param menuVo 85 | */ 86 | @Override 87 | public void deleteMenu(MenuVo menuVo) { 88 | //删除菜单的数据 89 | this.menuMapper.deleteByPrimaryKey(menuVo.getId()); 90 | //根据id删除sys_role_menu里面的数据 91 | this.menuMapper.deleteRoleMenuByMid(menuVo.getId()); 92 | } 93 | 94 | @Override 95 | public List queryMenuByDoctorIdForList(String roleid) { 96 | return menuMapper.queryMenuByRoleId(1, roleid); 97 | } 98 | 99 | @Override 100 | public List queryMenuByUserIdForList(String roleid) { 101 | return menuMapper.queryMenuByRoleId(1, roleid); 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /src/com/utils/ResultObj.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | import com.constant.SysConstant; 4 | 5 | /** 6 | * 7 | * @date 2021/9/10 8 | */ 9 | public class ResultObj { 10 | private Integer code; 11 | private String msg; 12 | 13 | 14 | /** 15 | * 添加成功 16 | */ 17 | public static final ResultObj ADD_SUCCESS = new ResultObj(SysConstant.CODE_SUCCESS,SysConstant.ADD_SUCCESS); 18 | /** 19 | * 添加失败 20 | */ 21 | public static final ResultObj ADD_ERROR = new ResultObj(SysConstant.CODE_ERROR,SysConstant.ADD_ERROR); 22 | /** 23 | * 更新成功 24 | */ 25 | public static final ResultObj UPDATE_SUCCESS = new ResultObj(SysConstant.CODE_SUCCESS,SysConstant.UPDATE_SUCCESS); 26 | /** 27 | * 更新失败 28 | */ 29 | public static final ResultObj UPDATE_ERROR = new ResultObj(SysConstant.CODE_ERROR,SysConstant.UPDATE_ERROR); 30 | /** 31 | * 删除成功 32 | */ 33 | public static final ResultObj DELETE_SUCCESS = new ResultObj(SysConstant.CODE_SUCCESS,SysConstant.DELETE_SUCCESS); 34 | /** 35 | * 删除失败 36 | */ 37 | public static final ResultObj DELETE_ERROR = new ResultObj(SysConstant.CODE_ERROR,SysConstant.DELETE_ERROR); 38 | /** 39 | * 预约通过 40 | */ 41 | public static final ResultObj ORDER1_SUCCESS = new ResultObj(SysConstant.CODE_SUCCESS,SysConstant.ORDER1_SUCCESS); 42 | /** 43 | * 预约不通过 44 | */ 45 | public static final ResultObj ORDER1_ERROR = new ResultObj(SysConstant.CODE_ERROR,SysConstant.ORDER1_ERROR); 46 | /** 47 | * 重置成功 48 | */ 49 | public static final ResultObj RESET_SUCCESS = new ResultObj(SysConstant.CODE_SUCCESS,SysConstant.RESET_SUCCESS); 50 | /** 51 | * 重置失败 52 | */ 53 | public static final ResultObj RESET_ERROR = new ResultObj(SysConstant.CODE_ERROR,SysConstant.RESET_ERROR); 54 | /** 55 | * 分配成功 56 | */ 57 | public static final ResultObj DISPATCH_SUCCESS = new ResultObj(SysConstant.CODE_SUCCESS,SysConstant.DISPATCH_SUCCESS); 58 | /** 59 | * 分配失败 60 | */ 61 | public static final ResultObj DISPATCH_ERROR = new ResultObj(SysConstant.CODE_ERROR,SysConstant.DISPATCH_ERROR); 62 | 63 | /** 64 | * 状态码0 成功 65 | */ 66 | public static final ResultObj STATUS_TRUE = new ResultObj(SysConstant.CODE_SUCCESS); 67 | 68 | /** 69 | * 状态码-1 失败 70 | */ 71 | public static final ResultObj STATUS_FALSE = new ResultObj(SysConstant.CODE_ERROR); 72 | 73 | private ResultObj(Integer code, String msg) { 74 | this.code = code; 75 | this.msg = msg; 76 | } 77 | 78 | private ResultObj(Integer code) { 79 | this.code = code; 80 | } 81 | 82 | public Integer getCode() { 83 | return code; 84 | } 85 | 86 | public void setCode(Integer code) { 87 | this.code = code; 88 | } 89 | 90 | public String getMsg() { 91 | return msg; 92 | } 93 | 94 | public void setMsg(String msg) { 95 | this.msg = msg; 96 | } 97 | 98 | } 99 | -------------------------------------------------------------------------------- /src/com/mapper/CheckKnowledgeMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | id, title, context, authorid, authorname, addtime 14 | 15 | 28 | 34 | 35 | delete from checkknowledge 36 | where id = #{id,jdbcType=VARCHAR} 37 | 38 | 39 | insert into checkknowledge (id, title, context, authorid, authorname, addtime) 40 | values (#{id,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{context,jdbcType=VARCHAR}, #{authorid,jdbcType=VARCHAR}, #{authorname,jdbcType=VARCHAR}, #{addtime,jdbcType=VARCHAR}) 41 | 42 | 43 | update checkknowledge 44 | 45 | 46 | title = #{title,jdbcType=VARCHAR}, 47 | 48 | 49 | context = #{context,jdbcType=VARCHAR}, 50 | 51 | 52 | authorid = #{authorid,jdbcType=VARCHAR}, 53 | 54 | 55 | authorname = #{authorname,jdbcType=VARCHAR}, 56 | 57 | 58 | where id = #{id,jdbcType=INTEGER} 59 | 60 | 61 | 66 | 67 | -------------------------------------------------------------------------------- /src/com/controller/CheckKnowledgeController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | import org.springframework.web.bind.annotation.RestController; 6 | 7 | import com.entity.CheckKnowledge; 8 | import com.service.CheckKnowledgeService; 9 | import com.utils.DataGridView; 10 | import com.utils.DateUtils; 11 | import com.utils.ResultObj; 12 | import com.utils.WebUtils; 13 | import com.vo.UserVO; 14 | 15 | @RestController 16 | @RequestMapping("checkknowledge") 17 | public class CheckKnowledgeController { 18 | 19 | @Autowired 20 | private CheckKnowledgeService checkKnowledgeService; 21 | 22 | @RequestMapping("loadAllCheckKnowledge") 23 | public DataGridView loadAllCheckKnowledge(CheckKnowledge checkKnowledge) { 24 | return this.checkKnowledgeService.queryAllCheckKnowledge(checkKnowledge); 25 | } 26 | 27 | @RequestMapping("addCheckKnowledge") 28 | public ResultObj addCheckKnowledge(CheckKnowledge checkKnowledge) { 29 | try { 30 | UserVO user = (UserVO) WebUtils.getHttpSession().getAttribute("user"); 31 | checkKnowledge.setAuthorid(user.getLoginname()); 32 | checkKnowledge.setAuthorname(user.getRealname()); 33 | checkKnowledge.setAddtime(DateUtils.getCurrnetDate()); 34 | this.checkKnowledgeService.addCheckKnowledge(checkKnowledge); 35 | return ResultObj.ADD_SUCCESS; 36 | } catch (Exception e) { 37 | e.printStackTrace(); 38 | return ResultObj.ADD_ERROR; 39 | } 40 | } 41 | 42 | @RequestMapping("updateCheckKnowledge") 43 | public ResultObj updateCheckKnowledge(CheckKnowledge checkKnowledge) { 44 | try { 45 | UserVO user = (UserVO) WebUtils.getHttpSession().getAttribute("user"); 46 | checkKnowledge.setAuthorid(user.getLoginname()); 47 | checkKnowledge.setAuthorname(user.getRealname()); 48 | checkKnowledge.setAddtime(DateUtils.getCurrnetDate()); 49 | this.checkKnowledgeService.updateCheckKnowledge(checkKnowledge); 50 | return ResultObj.UPDATE_SUCCESS; 51 | } catch (Exception e) { 52 | e.printStackTrace(); 53 | return ResultObj.UPDATE_ERROR; 54 | } 55 | } 56 | 57 | 58 | @RequestMapping("deleteCheckKnowledge") 59 | public ResultObj deleteCheckKnowledge(CheckKnowledge checkKnowledge) { 60 | try { 61 | this.checkKnowledgeService.deleteCheckKnowledge(checkKnowledge.getId().toString()); 62 | return ResultObj.DELETE_SUCCESS; 63 | } catch (Exception e) { 64 | e.printStackTrace(); 65 | return ResultObj.DELETE_ERROR; 66 | } 67 | } 68 | 69 | @RequestMapping("viewCheckKnowledge") 70 | public DataGridView viewCheckKnowledge() { 71 | String id = WebUtils.getHttpSession().getAttribute("checkKnowledgeId").toString(); 72 | return new DataGridView(this.checkKnowledgeService.viewCheckKnowledge(Integer.parseInt(id))); 73 | } 74 | 75 | 76 | } 77 | -------------------------------------------------------------------------------- /src/com/controller/RoleController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | import org.springframework.web.bind.annotation.RestController; 6 | 7 | import com.service.RoleService; 8 | import com.utils.DataGridView; 9 | import com.utils.ResultObj; 10 | import com.vo.RoleVo; 11 | 12 | /** 13 | * 角色控制器 14 | */ 15 | @RestController 16 | @RequestMapping("role") 17 | public class RoleController { 18 | 19 | @Autowired 20 | private RoleService roleService; 21 | 22 | /** 23 | * 加载角色列表返回DataGridView 24 | */ 25 | @RequestMapping("loadAllRole") 26 | public DataGridView loadAllRole(RoleVo roleVo) { 27 | return this.roleService.queryAllRole(roleVo); 28 | } 29 | 30 | /** 31 | * 添加角色 32 | */ 33 | @RequestMapping("addRole") 34 | public ResultObj addRole(RoleVo roleVo) { 35 | try { 36 | this.roleService.addRole(roleVo); 37 | return ResultObj.ADD_SUCCESS; 38 | } catch (Exception e) { 39 | e.printStackTrace(); 40 | return ResultObj.ADD_ERROR; 41 | } 42 | } 43 | 44 | /** 45 | * 修改角色 46 | */ 47 | @RequestMapping("updateRole") 48 | public ResultObj updateRole(RoleVo roleVo) { 49 | try { 50 | this.roleService.updateRole(roleVo); 51 | return ResultObj.UPDATE_SUCCESS; 52 | } catch (Exception e) { 53 | e.printStackTrace(); 54 | return ResultObj.UPDATE_ERROR; 55 | } 56 | } 57 | 58 | 59 | /** 60 | * 删除角色 61 | */ 62 | @RequestMapping("deleteRole") 63 | public ResultObj deleteRole(RoleVo roleVo) { 64 | try { 65 | this.roleService.deleteRole(roleVo.getRoleid()); 66 | return ResultObj.DELETE_SUCCESS; 67 | } catch (Exception e) { 68 | e.printStackTrace(); 69 | return ResultObj.DELETE_ERROR; 70 | } 71 | } 72 | 73 | /** 74 | * 批量删除角色 75 | */ 76 | @RequestMapping("deleteBatchRole") 77 | public ResultObj deleteBatchRole(RoleVo roleVo) { 78 | try { 79 | this.roleService.deleteBatchRole(roleVo.getIds()); 80 | return ResultObj.DELETE_SUCCESS; 81 | } catch (Exception e) { 82 | e.printStackTrace(); 83 | return ResultObj.DELETE_ERROR; 84 | } 85 | } 86 | 87 | /** 88 | * 加载角色管理分配菜单的json 89 | */ 90 | @RequestMapping("initRoleMenuTreeJson") 91 | public DataGridView initRoleMenuTreeJson(String roleid) { 92 | return this.roleService.initRoleMenuTreeJson(roleid); 93 | } 94 | 95 | /** 96 | * 保存角色和菜单的关系 97 | */ 98 | @RequestMapping("saveRoleMenu") 99 | public ResultObj saveRoleMenu(RoleVo roleVo) { 100 | try { 101 | 102 | this.roleService.saveRoleMenu(roleVo); 103 | return ResultObj.DISPATCH_SUCCESS; 104 | } catch (Exception e) { 105 | e.printStackTrace(); 106 | return ResultObj.DISPATCH_ERROR; 107 | 108 | } 109 | } 110 | 111 | } 112 | -------------------------------------------------------------------------------- /WebContent/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 登录--便民健康检查系统 8 | 9 | 10 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 24 |
25 | 28 |
29 |
30 | 33 |
34 |
35 | 36 | 37 | 38 | 41 | 42 |
43 | 44 | 45 | 46 | 47 | 48 |
49 | 50 |
51 |

立即注册

52 |
53 | 55 | 57 | 59 |
60 |
61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /src/com/utils/TreeNode.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | 8 | /** 9 | * 10 | * @date 2021/9/10 11 | */ 12 | public class TreeNode { 13 | private Integer id; 14 | @JsonProperty("parentId") 15 | private Integer pid; 16 | 17 | private String title; 18 | private String icon; 19 | private String href; 20 | private Boolean spread; 21 | private String target; 22 | 23 | private List children = new ArrayList<>(); 24 | 25 | //复选树的必要属性 26 | private String checkArr = "0";//选中就是1 27 | 28 | /** 29 | * 首页左边导航树的构造器 30 | * @param id 31 | * @param pid 32 | * @param title 33 | * @param icon 34 | * @param href 35 | * @param spread 36 | * @param target 37 | */ 38 | public TreeNode(Integer id, Integer pid, String title, String icon, String href, Boolean spread, String target) { 39 | this.id = id; 40 | this.pid = pid; 41 | this.title = title; 42 | this.icon = icon; 43 | this.href = href; 44 | this.spread = spread; 45 | this.target = target; 46 | } 47 | 48 | /** 49 | * 给dtree的复选树使用 50 | * @param id 51 | * @param pid 52 | * @param title 53 | * @param spread 54 | * @param checkArr 55 | */ 56 | public TreeNode(Integer id, Integer pid, String title, Boolean spread, String checkArr) { 57 | this.id = id; 58 | this.pid = pid; 59 | this.title = title; 60 | this.spread = spread; 61 | this.checkArr = checkArr; 62 | } 63 | 64 | public Integer getId() { 65 | return id; 66 | } 67 | 68 | public void setId(Integer id) { 69 | this.id = id; 70 | } 71 | 72 | public Integer getPid() { 73 | return pid; 74 | } 75 | 76 | public void setPid(Integer pid) { 77 | this.pid = pid; 78 | } 79 | 80 | public String getTitle() { 81 | return title; 82 | } 83 | 84 | public void setTitle(String title) { 85 | this.title = title; 86 | } 87 | 88 | public String getIcon() { 89 | return icon; 90 | } 91 | 92 | public void setIcon(String icon) { 93 | this.icon = icon; 94 | } 95 | 96 | public String getHref() { 97 | return href; 98 | } 99 | 100 | public void setHref(String href) { 101 | this.href = href; 102 | } 103 | 104 | public Boolean getSpread() { 105 | return spread; 106 | } 107 | 108 | public void setSpread(Boolean spread) { 109 | this.spread = spread; 110 | } 111 | 112 | public String getTarget() { 113 | return target; 114 | } 115 | 116 | public void setTarget(String target) { 117 | this.target = target; 118 | } 119 | 120 | public List getChildren() { 121 | return children; 122 | } 123 | 124 | public void setChildren(List children) { 125 | this.children = children; 126 | } 127 | 128 | public String getCheckArr() { 129 | return checkArr; 130 | } 131 | 132 | public void setCheckArr(String checkArr) { 133 | this.checkArr = checkArr; 134 | } 135 | 136 | } 137 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/view/system/main/login.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 登录--医院体检管理系统 8 | 9 | 10 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 24 |
25 | 28 |
29 |
30 | 33 |
34 |
35 | 36 | 37 | 38 | 41 | 42 |
43 | 44 | 45 | 46 | 47 | 48 |
49 | 50 |
51 |

立即注册

52 |
53 | 55 | 57 | 59 |
60 |
61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | Archetype Created Web Application 7 | 8 | 9 | 10 | 11 | EncodeingFilter 12 | org.springframework.web.filter.CharacterEncodingFilter 13 | 14 | encoding 15 | UTF-8 16 | 17 | 18 | 19 | EncodeingFilter 20 | springmvc 21 | 22 | 23 | 24 | 25 | 26 | 27 | org.springframework.web.context.ContextLoaderListener 28 | 29 | 30 | contextConfigLocation 31 | classpath:applicationContext.xml 32 | 33 | 34 | 35 | 36 | 37 | 38 | springmvc 39 | org.springframework.web.servlet.DispatcherServlet 40 | 41 | contextConfigLocation 42 | classpath:springmvc.xml 43 | 44 | 1 45 | 46 | 47 | springmvc 48 | *.action 49 | 50 | 51 | 52 | 53 | 54 | StatViewServlet 55 | com.alibaba.druid.support.http.StatViewServlet 56 | 57 | 58 | loginUsername 59 | root 60 | 61 | 62 | 63 | loginPassword 64 | 1234 65 | 66 | 67 | 68 | allow 69 | 70 | 71 | 72 | 73 | deny 74 | 75 | 76 | 77 | 78 | StatViewServlet 79 | /druid/* 80 | 81 | 82 | 83 | WebStatFilter 84 | com.alibaba.druid.support.http.WebStatFilter 85 | 86 | 87 | exclusions 88 | *.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/* 89 | 90 | 91 | 92 | 93 | WebStatFilter 94 | StatViewServlet 95 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /WebContent/layui/lay/modules/util.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(t){"use strict";var e=layui.$,i={fixbar:function(t){var i,n,a="layui-fixbar",o="layui-fixbar-top",r=e(document),l=e("body");t=e.extend({showHeight:200},t),t.bar1=t.bar1===!0?"":t.bar1,t.bar2=t.bar2===!0?"":t.bar2,t.bgcolor=t.bgcolor?"background-color:"+t.bgcolor:"";var c=[t.bar1,t.bar2,""],g=e(['
    ',t.bar1?'
  • '+c[0]+"
  • ":"",t.bar2?'
  • '+c[1]+"
  • ":"",'
  • '+c[2]+"
  • ","
"].join("")),s=g.find("."+o),u=function(){var e=r.scrollTop();e>=t.showHeight?i||(s.show(),i=1):i&&(s.hide(),i=0)};e("."+a)[0]||("object"==typeof t.css&&g.css(t.css),l.append(g),u(),g.find("li").on("click",function(){var i=e(this),n=i.attr("lay-type");"top"===n&&e("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,n)}),r.on("scroll",function(){clearTimeout(n),n=setTimeout(function(){u()},100)}))},countdown:function(t,e,i){var n=this,a="function"==typeof e,o=new Date(t).getTime(),r=new Date(!e||a?(new Date).getTime():e).getTime(),l=o-r,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];a&&(i=e);var g=setTimeout(function(){n.countdown(t,r+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],e,g),l<=0&&clearTimeout(g),g},timeAgo:function(t,e){var i=this,n=[[],[]],a=(new Date).getTime()-new Date(t).getTime();return a>6912e5?(a=new Date(t),n[0][0]=i.digit(a.getFullYear(),4),n[0][1]=i.digit(a.getMonth()+1),n[0][2]=i.digit(a.getDate()),e||(n[1][0]=i.digit(a.getHours()),n[1][1]=i.digit(a.getMinutes()),n[1][2]=i.digit(a.getSeconds())),n[0].join("-")+" "+n[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=12e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(t,e){var i="";t=String(t),e=e||2;for(var n=t.length;n/g,">").replace(/'/g,"'").replace(/"/g,""")},event:function(t,n,a){n=i.event[t]=e.extend(!0,i.event[t],n)||{},e("body").on(a||"click","*["+t+"]",function(){var i=e(this),a=i.attr(t);n[a]&&n[a].call(this,i)})}};!function(t,e,i){"$:nomunge";function n(){a=e[l](function(){o.each(function(){var e=t(this),i=e.width(),n=e.height(),a=t.data(this,g);(i!==a.w||n!==a.h)&&e.trigger(c,[a.w=i,a.h=n])}),n()},r[s])}var a,o=t([]),r=t.resize=t.extend(t.resize,{}),l="setTimeout",c="resize",g=c+"-special-event",s="delay",u="throttleWindow";r[s]=250,r[u]=!0,t.event.special[c]={setup:function(){if(!r[u]&&this[l])return!1;var e=t(this);o=o.add(e),t.data(this,g,{w:e.width(),h:e.height()}),1===o.length&&n()},teardown:function(){if(!r[u]&&this[l])return!1;var e=t(this);o=o.not(e),e.removeData(g),o.length||clearTimeout(a)},add:function(e){function n(e,n,o){var r=t(this),l=t.data(this,g)||{};l.w=n!==i?n:r.width(),l.h=o!==i?o:r.height(),a.apply(this,arguments)}if(!r[u]&&this[l])return!1;var a;return t.isFunction(e)?(a=e,n):(a=e.handler,void(e.handler=n))}}}(e,window),t("util",i)}); -------------------------------------------------------------------------------- /WebContent/WEB-INF/view/system/analyse/toAnalyseManage.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | 3 | 4 | 5 | 个人资料 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 |
18 |
19 |
20 |
21 | 22 | 23 | 24 | 25 | 98 | 99 | -------------------------------------------------------------------------------- /src/com/utils/FileUtil.java: -------------------------------------------------------------------------------- 1 | package com.utils; 2 | 3 | import java.io.File; 4 | import java.io.FileInputStream; 5 | import java.io.FileOutputStream; 6 | import java.io.IOException; 7 | import java.io.InputStream; 8 | import java.io.OutputStream; 9 | import java.io.UnsupportedEncodingException; 10 | 11 | import javax.servlet.http.HttpServletResponse; 12 | 13 | import org.springframework.web.multipart.MultipartFile; 14 | 15 | public class FileUtil { 16 | 17 | public static void down(HttpServletResponse res, String pathAddress) throws UnsupportedEncodingException { 18 | File file=new File(pathAddress); 19 | String fileName = file.getName(); 20 | 21 | res.setHeader("content-type", "application/octet-stream"); 22 | res.setContentType("application/octet-stream"); 23 | res.setHeader("Content-Disposition", "attachment;filename=" + new String(fileName.getBytes("utf-8"),"iso-8859-1")); 24 | byte[] buff = new byte[1024]; 25 | FileInputStream bis = null; 26 | OutputStream os = null; 27 | try { 28 | os = res.getOutputStream(); 29 | bis = new FileInputStream(file); 30 | int readTmp = 0; 31 | while ((readTmp = bis.read(buff)) != -1) { 32 | os.write(buff, 0, readTmp); 33 | } 34 | } catch (IOException e) { 35 | e.printStackTrace(); 36 | } finally { 37 | if (bis != null) try { 38 | bis.close(); 39 | } catch (IOException e) { 40 | e.printStackTrace(); 41 | } 42 | } 43 | System.out.println("文件下载成功!"); 44 | } 45 | 46 | 47 | 48 | /** 49 | * MultipartFile 转 File 50 | * 51 | * @param file 52 | * @throws Exception 53 | */ 54 | public static File multipartFileToFile(MultipartFile file, String urlString) throws Exception { 55 | 56 | File toFile = null; 57 | if (file.equals("") || file.getSize() <= 0) { 58 | file = null; 59 | } else { 60 | InputStream ins = null; 61 | ins = file.getInputStream(); 62 | toFile = new File(urlString + "\\" + file.getOriginalFilename()); 63 | if (!toFile.getParentFile().exists()&&!toFile.isDirectory()){ 64 | toFile.getParentFile().mkdirs(); 65 | toFile.createNewFile(); 66 | } else { 67 | toFile.createNewFile(); 68 | } 69 | inputStreamToFile(ins, toFile); 70 | ins.close(); 71 | } 72 | return toFile; 73 | } 74 | //获取流文件 75 | private static void inputStreamToFile(InputStream ins, File file) { 76 | try { 77 | OutputStream os = new FileOutputStream(file); 78 | int bytesRead = 0; 79 | byte[] buffer = new byte[8192]; 80 | while ((bytesRead = ins.read(buffer, 0, 8192)) != -1) { 81 | os.write(buffer, 0, bytesRead); 82 | } 83 | os.close(); 84 | ins.close(); 85 | } catch (Exception e) { 86 | e.printStackTrace(); 87 | } 88 | } 89 | 90 | /** 91 | * 删除本地临时文件 92 | * @param file 93 | */ 94 | public static void delteTempFile(File file) { 95 | if (file != null) { 96 | File del = new File(file.toURI()); 97 | del.delete(); 98 | 99 | } 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/view/system/main/deskManger.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | 3 | 4 | 5 | 工作台 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 |
18 |
19 | 20 | 31 | 32 | 33 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /src/com/service/impl/CommentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import java.text.ParseException; 4 | import java.text.SimpleDateFormat; 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Service; 10 | 11 | import com.entity.Comment; 12 | import com.entity.CommentVO; 13 | import com.mapper.CommentMapper; 14 | import com.service.CommentService; 15 | import com.utils.DataGridView; 16 | 17 | /** 18 | * 体检预约管理的服务接口 19 | * 20 | * @date 2021/9/10 21 | */ 22 | @Service 23 | public class CommentServiceImpl implements CommentService { 24 | 25 | SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 26 | 27 | @Autowired 28 | private CommentMapper commentMapper; 29 | 30 | @Override 31 | public int addComment(Comment comment) { 32 | // TODO Auto-generated method stub 33 | return commentMapper.addComment(comment); 34 | } 35 | 36 | @Override 37 | public List queryAllParentComment() { 38 | // TODO Auto-generated method stub 39 | return null; 40 | } 41 | 42 | @Override 43 | public List queryAllParentCommentByUserId(String userId) { 44 | // TODO Auto-generated method stub 45 | return null; 46 | } 47 | 48 | @Override 49 | public List queryAllChildComment() { 50 | // TODO Auto-generated method stub 51 | return null; 52 | } 53 | 54 | @Override 55 | public DataGridView loadAllComment() { 56 | //查询所有的父节点 57 | List parentList = commentMapper.queryAllParentComment(); 58 | List childList = commentMapper.queryAllChildComment(); 59 | List list = new ArrayList<>(); 60 | try { 61 | for (Comment comment: parentList) { 62 | CommentVO vo = new CommentVO(); 63 | vo.setAddtime(fmt.format(fmt.parse(comment.getAddtime()))); 64 | vo.setContent(comment.getContent()); 65 | vo.setId(comment.getId()); 66 | vo.setNickName(comment.getNickName()); 67 | vo.setParentId(comment.getParentId()); 68 | vo.setRole(comment.getRole()); 69 | vo.setUserId(comment.getUserId()); 70 | List tlist = new ArrayList<>(); 71 | for (Comment item: childList) { 72 | if (comment.getId() == item.getParentId()) { 73 | tlist.add(item); 74 | } 75 | } 76 | vo.setChildren(tlist); 77 | list.add(vo); 78 | } 79 | } catch (ParseException e) { 80 | // TODO Auto-generated catch block 81 | e.printStackTrace(); 82 | } 83 | return new DataGridView(list); 84 | } 85 | 86 | @Override 87 | public DataGridView loadAllParentCommentByUserId(String userId) { 88 | //查询所有的父节点 89 | List parentList = commentMapper.queryAllParentCommentByUserId(userId); 90 | List childList = commentMapper.queryAllChildComment(); 91 | List list = new ArrayList<>(); 92 | try { 93 | for (Comment comment: parentList) { 94 | CommentVO vo = new CommentVO(); 95 | vo.setAddtime(fmt.format(fmt.parse(comment.getAddtime()))); 96 | vo.setContent(comment.getContent()); 97 | vo.setId(comment.getId()); 98 | vo.setNickName(comment.getNickName()); 99 | vo.setParentId(comment.getParentId()); 100 | vo.setRole(comment.getRole()); 101 | vo.setUserId(comment.getUserId()); 102 | List tlist = new ArrayList<>(); 103 | for (Comment item: childList) { 104 | if (comment.getId() == item.getParentId()) { 105 | tlist.add(item); 106 | } 107 | } 108 | vo.setChildren(tlist); 109 | list.add(vo); 110 | } 111 | } catch (ParseException e) { 112 | // TODO Auto-generated catch block 113 | e.printStackTrace(); 114 | } 115 | return new DataGridView(list); 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /WebContent/layui/lay/modules/carousel.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['",'"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['
    ',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("")}),i.join("")}(),"
"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a resultList = resultMapper.queryResult(result); 71 | return new DataGridView(resultList); 72 | } 73 | 74 | @Override 75 | public DataGridView queryAnalyseResult(Result result) { 76 | //查询所有的疾病 77 | List diseaseList = resultMapper.queryDisease(); 78 | //查询每个疾病的人数 79 | 80 | Map> map = new HashMap>(); 81 | List maleList = new ArrayList(); 82 | List femaleList = new ArrayList(); 83 | if (diseaseList != null && diseaseList.size() > 0) { 84 | map.put("xAxis", diseaseList); 85 | for (int i = 0; i < diseaseList.size(); i ++) { 86 | String dis = diseaseList.get(i); 87 | List maleCount = resultMapper.queryDiseaseCount(dis, "男"); 88 | if (maleCount != null && maleCount.size() > 0) { 89 | String cou = maleCount.get(0); 90 | maleList.add(cou); 91 | } 92 | List femaleCount = resultMapper.queryDiseaseCount(dis, "女"); 93 | if (femaleCount != null && femaleCount.size() > 0) { 94 | String cou = femaleCount.get(0); 95 | femaleList.add(cou); 96 | } 97 | } 98 | map.put("male", maleList); 99 | map.put("female", femaleList); 100 | }else { 101 | map.put("xAxis", new ArrayList()); 102 | map.put("male", new ArrayList()); 103 | map.put("female", new ArrayList()); 104 | } 105 | return new DataGridView(map); 106 | } 107 | @Override 108 | public Result getResultByOid(String oid) { 109 | // TODO Auto-generated method stub 110 | return resultMapper.getResultByOid(oid); 111 | } 112 | 113 | 114 | 115 | } 116 | -------------------------------------------------------------------------------- /WebContent/js/main.js: -------------------------------------------------------------------------------- 1 | //获取系统时间 2 | var newDate = ''; 3 | getLangDate(); 4 | //值小于10时,在前面补0 5 | function dateFilter(date){ 6 | if(date < 10){return "0"+date;} 7 | return date; 8 | } 9 | function getLangDate(){ 10 | var dateObj = new Date(); //表示当前系统时间的Date对象 11 | var year = dateObj.getFullYear(); //当前系统时间的完整年份值 12 | var month = dateObj.getMonth()+1; //当前系统时间的月份值 13 | var date = dateObj.getDate(); //当前系统时间的月份中的日 14 | var day = dateObj.getDay(); //当前系统时间中的星期值 15 | var weeks = ["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]; 16 | var week = weeks[day]; //根据星期值,从数组中获取对应的星期字符串 17 | var hour = dateObj.getHours(); //当前系统时间的小时值 18 | var minute = dateObj.getMinutes(); //当前系统时间的分钟值 19 | var second = dateObj.getSeconds(); //当前系统时间的秒钟值 20 | var timeValue = "" +((hour >= 12) ? (hour >= 18) ? "晚上" : "下午" : "上午" ); //当前时间属于上午、晚上还是下午 21 | newDate = dateFilter(year)+"年"+dateFilter(month)+"月"+dateFilter(date)+"日 "+" "+dateFilter(hour)+":"+dateFilter(minute)+":"+dateFilter(second); 22 | document.getElementById("nowTime").innerHTML = "亲爱的驊驊龔頾,"+timeValue+"好! 欢迎使用layuiCMS 2.0模版。当前时间为: "+newDate+" "+week; 23 | setTimeout("getLangDate()",1000); 24 | } 25 | 26 | layui.use(['form','element','layer','jquery'],function(){ 27 | var form = layui.form, 28 | layer = parent.layer === undefined ? layui.layer : top.layer, 29 | element = layui.element; 30 | $ = layui.jquery; 31 | //上次登录时间【此处应该从接口获取,实际使用中请自行更换】 32 | $(".loginTime").html(newDate.split("日")[0]+"日
"+newDate.split("日")[1]); 33 | //icon动画 34 | $(".panel a").hover(function(){ 35 | $(this).find(".layui-anim").addClass("layui-anim-scaleSpring"); 36 | },function(){ 37 | $(this).find(".layui-anim").removeClass("layui-anim-scaleSpring"); 38 | }) 39 | $(".panel a").click(function(){ 40 | parent.addTab($(this)); 41 | }) 42 | //系统基本参数 43 | if(window.sessionStorage.getItem("systemParameter")){ 44 | var systemParameter = JSON.parse(window.sessionStorage.getItem("systemParameter")); 45 | fillParameter(systemParameter); 46 | }else{ 47 | $.ajax({ 48 | url : "../json/systemParameter.json", 49 | type : "get", 50 | dataType : "json", 51 | success : function(data){ 52 | fillParameter(data); 53 | } 54 | }) 55 | } 56 | //填充数据方法 57 | function fillParameter(data){ 58 | //判断字段数据是否存在 59 | function nullData(data){ 60 | if(data == '' || data == "undefined"){ 61 | return "未定义"; 62 | }else{ 63 | return data; 64 | } 65 | } 66 | $(".version").text(nullData(data.version)); //当前版本 67 | $(".author").text(nullData(data.author)); //开发作者 68 | $(".homePage").text(nullData(data.homePage)); //网站首页 69 | $(".server").text(nullData(data.server)); //服务器环境 70 | $(".dataBase").text(nullData(data.dataBase)); //数据库版本 71 | $(".maxUpload").text(nullData(data.maxUpload)); //最大上传限制 72 | $(".userRights").text(nullData(data.userRights));//当前用户权限 73 | } 74 | 75 | //最新文章列表 76 | $.get("../json/newsList.json",function(data){ 77 | var hotNewsHtml = ''; 78 | for(var i=0;i<5;i++){ 79 | hotNewsHtml += '' 80 | +' '+data.data[i].newsName+'' 81 | +''+data.data[i].newsTime.substring(0,10)+'' 82 | +''; 83 | } 84 | $(".hot_news").html(hotNewsHtml); 85 | $(".userAll span").text(data.length); 86 | }) 87 | 88 | //用户数量 89 | $.get("../json/userList.json",function(data){ 90 | $(".userAll span").text(data.count); 91 | }) 92 | 93 | //外部图标 94 | $.get(iconUrl,function(data){ 95 | $(".outIcons span").text(data.split(".icon-").length-1); 96 | }) 97 | 98 | }) 99 | -------------------------------------------------------------------------------- /src/com/mapper/ResultMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | oid, uname, usex, projectresult, finalresult, doctor, fileid, filename, filepath, updatetime 18 | 19 | 20 | 21 | update result set projectresult= #{projectresult,jdbcType=VARCHAR} 22 | where oid = #{oid,jdbcType=VARCHAR} 23 | 24 | 25 | update result set finalresult= #{finalresult,jdbcType=VARCHAR},doctor= #{doctor,jdbcType=VARCHAR} 26 | ,fileid= #{fileId,jdbcType=VARCHAR},filename= #{fileName,jdbcType=VARCHAR} 27 | ,filepath= #{filePath,jdbcType=VARCHAR},updatetime= #{updatetime,jdbcType=VARCHAR} 28 | where oid = #{oid,jdbcType=VARCHAR} 29 | 30 | 35 | 39 | 43 | 44 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 72 | 77 | 78 | delete from result 79 | where oid = #{id,jdbcType=VARCHAR} 80 | 81 | 82 | insert into result ( oid, uname, usex, projectresult, 83 | finalresult, doctor) 84 | values ( #{oid,jdbcType=VARCHAR}, #{uname,jdbcType=VARCHAR}, #{usex,jdbcType=VARCHAR}, 85 | #{projectresult,jdbcType=VARCHAR}, #{finalresult,jdbcType=VARCHAR}, #{doctor,jdbcType=VARCHAR}) 86 | 87 | 88 | 93 | 94 | -------------------------------------------------------------------------------- /src/com/entity/Order1.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | 4 | public class Order1 { 5 | private String oid; 6 | 7 | private String uname; 8 | 9 | private String usex; 10 | 11 | private String uphone; 12 | 13 | private String birthday; 14 | 15 | private String odatetime; 16 | 17 | private String pid; 18 | 19 | private String pname; 20 | 21 | private String id; 22 | 23 | private String packagename; 24 | 25 | private String allproject; 26 | 27 | private String type; 28 | 29 | private String adduser; 30 | 31 | private String addtime; 32 | 33 | private String status; 34 | 35 | private Integer page; 36 | 37 | private Integer limit; 38 | 39 | 40 | 41 | public String getPid() { 42 | return pid; 43 | } 44 | 45 | public void setPid(String pid) { 46 | this.pid = pid; 47 | } 48 | 49 | public String getPname() { 50 | return pname; 51 | } 52 | 53 | public void setPname(String pname) { 54 | this.pname = pname; 55 | } 56 | 57 | 58 | public Integer getPage() { 59 | return page; 60 | } 61 | 62 | public void setPage(Integer page) { 63 | this.page = page; 64 | } 65 | 66 | public Integer getLimit() { 67 | return limit; 68 | } 69 | 70 | public void setLimit(Integer limit) { 71 | this.limit = limit; 72 | } 73 | 74 | public String getOid() { 75 | return oid; 76 | } 77 | 78 | public void setOid(String oid) { 79 | this.oid = oid; 80 | } 81 | 82 | public String getUname() { 83 | return uname; 84 | } 85 | 86 | public void setUname(String uname) { 87 | this.uname = uname; 88 | } 89 | 90 | public String getUsex() { 91 | return usex; 92 | } 93 | 94 | public void setUsex(String usex) { 95 | this.usex = usex; 96 | } 97 | 98 | public String getUphone() { 99 | return uphone; 100 | } 101 | 102 | public void setUphone(String uphone) { 103 | this.uphone = uphone; 104 | } 105 | 106 | public String getBirthday() { 107 | return birthday; 108 | } 109 | 110 | public void setBirthday(String birthday) { 111 | this.birthday = birthday; 112 | } 113 | 114 | public String getOdatetime() { 115 | return odatetime; 116 | } 117 | 118 | public void setOdatetime(String odatetime) { 119 | this.odatetime = odatetime; 120 | } 121 | 122 | public String getId() { 123 | return id; 124 | } 125 | 126 | public void setId(String id) { 127 | this.id = id; 128 | } 129 | 130 | public String getPackagename() { 131 | return packagename; 132 | } 133 | 134 | public void setPackagename(String packagename) { 135 | this.packagename = packagename; 136 | } 137 | 138 | public String getStatus() { 139 | return status; 140 | } 141 | 142 | public void setStatus(String status) { 143 | this.status = status; 144 | } 145 | 146 | public String getAllproject() { 147 | return allproject; 148 | } 149 | 150 | public void setAllproject(String allproject) { 151 | this.allproject = allproject; 152 | } 153 | 154 | public String getType() { 155 | return type; 156 | } 157 | 158 | public void setType(String type) { 159 | this.type = type; 160 | } 161 | 162 | public String getAdduser() { 163 | return adduser; 164 | } 165 | 166 | public void setAdduser(String adduser) { 167 | this.adduser = adduser; 168 | } 169 | 170 | public String getAddtime() { 171 | return addtime; 172 | } 173 | 174 | public void setAddtime(String addtime) { 175 | this.addtime = addtime; 176 | } 177 | 178 | public Order1(Order1 order1){ 179 | this.oid = order1.oid; 180 | 181 | this.uname = order1.uname; 182 | 183 | this.usex = order1.usex; 184 | 185 | this.uphone = order1.uphone; 186 | 187 | this.birthday = order1.birthday; 188 | 189 | this.odatetime = order1.odatetime; 190 | 191 | this.pid = order1.pid; 192 | 193 | this.pname = order1.pname; 194 | 195 | this.id = order1.id; 196 | 197 | this.packagename = order1.packagename; 198 | 199 | this.allproject = order1.allproject; 200 | 201 | this.type = order1.type; 202 | 203 | this.adduser = order1.adduser; 204 | 205 | this.addtime = order1.addtime; 206 | } 207 | 208 | public Order1() { 209 | // TODO Auto-generated constructor stub 210 | } 211 | 212 | 213 | 214 | } 215 | -------------------------------------------------------------------------------- /WebContent/layui/lay/modules/laypage.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?''+a.prev+"":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push(''+(a.first||1)+"");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r2&&e.push('');r<=u;r++)r===a.curr?e.push('"+r+""):e.push(''+r+"");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1…'),0!==t&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:function(){return a.next?''+a.next+"":""}(),count:'共 '+a.count+" 条",limit:function(){var e=['"}(),refresh:['','',""].join(""),skip:function(){return['到第','','页',""].join("")}()};return['
',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"
"].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;oi.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)}); -------------------------------------------------------------------------------- /src/com/service/impl/RoleServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import com.constant.SysConstant; 10 | import com.entity.Menu; 11 | import com.entity.Role; 12 | import com.github.pagehelper.Page; 13 | import com.github.pagehelper.PageHelper; 14 | import com.mapper.MenuMapper; 15 | import com.mapper.RoleMapper; 16 | import com.service.RoleService; 17 | import com.utils.DataGridView; 18 | import com.utils.TreeNode; 19 | import com.vo.RoleVo; 20 | 21 | /** 22 | * 角色管理的服务接口 23 | * 24 | * @date 2021/9/10 25 | */ 26 | @Service 27 | public class RoleServiceImpl implements RoleService { 28 | 29 | @Autowired 30 | private RoleMapper roleMapper; 31 | 32 | @Autowired 33 | private MenuMapper menuMapper; 34 | 35 | /** 36 | * 查询所有菜单返回 37 | * @param roleVo 38 | * @return 39 | */ 40 | @Override 41 | public List queryAllRoleForList(RoleVo roleVo) { 42 | return roleMapper.queryAllRole(roleVo); 43 | } 44 | 45 | /** 46 | * @param roleVo 47 | * @param userId 48 | * @return 49 | */ 50 | @Override 51 | public List queryRoleByUserIdForList(RoleVo roleVo, Integer userId) { 52 | return roleMapper.queryAllRole(roleVo); 53 | } 54 | 55 | /** 56 | * 查询所有角色列表 57 | * @param roleVo 58 | * @return 59 | */ 60 | @Override 61 | public DataGridView queryAllRole(RoleVo roleVo) { 62 | Page page = PageHelper.startPage(roleVo.getPage(),roleVo.getLimit()); 63 | List data = this.roleMapper.queryAllRole(roleVo); 64 | return new DataGridView(page.getTotal(),data); 65 | } 66 | 67 | /** 68 | * 添加角色 69 | * @param roleVo 70 | */ 71 | @Override 72 | public void addRole(RoleVo roleVo) { 73 | this.roleMapper.insertSelective(roleVo); 74 | } 75 | 76 | /** 77 | * 更新角色 78 | * @param roleVo 79 | */ 80 | @Override 81 | public void updateRole(RoleVo roleVo) { 82 | this.roleMapper.updateByPrimaryKeySelective(roleVo); 83 | } 84 | 85 | 86 | /** 87 | * 根据角色roleid单个删除角色 88 | * @param roleid 89 | */ 90 | @Override 91 | public void deleteRole(Integer roleid) { 92 | //删除角色表的数据 93 | this.roleMapper.deleteByPrimaryKey(roleid); 94 | //根据角色id删除sys_role_menu里面的数据 95 | this.roleMapper.deleteRoleMenuByRid(roleid); 96 | //根据角色id删除sys_role_user里面的数据 97 | this.roleMapper.deleteRoleUserByRid(roleid); 98 | 99 | } 100 | 101 | /** 102 | * 根据前台页面传来的数组批量删除角色 103 | * @param ids 104 | */ 105 | @Override 106 | public void deleteBatchRole(Integer[] ids) { 107 | for (Integer rid : ids){ 108 | deleteRole(rid); 109 | } 110 | } 111 | 112 | @Override 113 | public DataGridView initRoleMenuTreeJson(String roleid) { 114 | //查询所有的可用的菜单 115 | Menu menu = new Menu(); 116 | menu.setAvailable(SysConstant.AVAILABLE_TRUE); 117 | List allMenu = menuMapper.queryAllMenu(menu); 118 | //根据角色ID查询当前角色拥有的菜单 119 | List roleMenu = menuMapper.queryMenuByRoleId(SysConstant.AVAILABLE_TRUE,roleid); 120 | 121 | List data = new ArrayList<>(); 122 | for (Menu m1 : allMenu) { 123 | String checkArr = SysConstant.CODE_ZERO+""; 124 | for (Menu m2 : roleMenu) { 125 | if (m1.getId()==m2.getId()){ 126 | checkArr=SysConstant.CODE_ONE+""; 127 | break; 128 | } 129 | } 130 | Integer id = m1.getId(); 131 | Integer pid = m1.getPid(); 132 | String title = m1.getTitle(); 133 | Boolean spread = m1.getSpread()==SysConstant.SPREAD_TRUE?true:false; 134 | data.add(new TreeNode(id,pid,title,spread,checkArr)); 135 | } 136 | 137 | return new DataGridView(data); 138 | } 139 | 140 | @Override 141 | public void saveRoleMenu(RoleVo roleVo) { 142 | Integer rid=roleVo.getRoleid(); 143 | Integer [] mids=roleVo.getIds(); 144 | //根据rid删除sys_role_menu里面的所有数据 145 | this.roleMapper.deleteRoleMenuByRid(rid); 146 | //保存角色和菜单的关系 147 | for (Integer mid : mids) { 148 | this.roleMapper.insertRoleMenu(rid,mid); 149 | } 150 | } 151 | } 152 | -------------------------------------------------------------------------------- /src/com/mapper/Order1Mapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | oid, uname, usex, uphone, birthday, odatetime, pid, pname, id, packagename,status,allproject, type, adduser, addtime 23 | 24 | 37 | 42 | 47 | 48 | delete from order1 49 | where oid = #{id,jdbcType=VARCHAR} 50 | 51 | 52 | update order1 set status = "1" 53 | where oid = #{id,jdbcType=VARCHAR} 54 | 55 | 56 | update order1 set status = "-1" 57 | where oid = #{id,jdbcType=VARCHAR} 58 | 59 | 60 | insert into order1 ( uname, usex, uphone, birthday, 61 | odatetime, pid, pname, id, packagename, status, allproject, type, adduser, addtime) 62 | values ( #{uname,jdbcType=VARCHAR}, #{usex,jdbcType=VARCHAR}, 63 | #{uphone,jdbcType=VARCHAR}, #{birthday,jdbcType=VARCHAR}, #{odatetime,jdbcType=VARCHAR}, 64 | #{pid,jdbcType=VARCHAR}, #{pname,jdbcType=VARCHAR}, #{id,jdbcType=VARCHAR}, #{packagename,jdbcType=VARCHAR}, 65 | "0",#{allproject,jdbcType=VARCHAR},#{type,jdbcType=VARCHAR},#{adduser,jdbcType=VARCHAR}, 66 | #{addtime,jdbcType=VARCHAR}) 67 | 68 | 69 | update order1 70 | 71 | 72 | uname = #{uname,jdbcType=VARCHAR}, 73 | 74 | 75 | birthday = #{birthday,jdbcType=VARCHAR}, 76 | 77 | 78 | odatetime = #{odatetime,jdbcType=VARCHAR}, 79 | 80 | 81 | pid = #{pid,jdbcType=VARCHAR}, 82 | 83 | 84 | id = #{id,jdbcType=VARCHAR}, 85 | 86 | 87 | allproject = #{allproject,jdbcType=VARCHAR}, 88 | 89 | 90 | where oid = #{oid,jdbcType=VARCHAR} 91 | 92 | 93 | update order1 94 | set status= #{status,jdbcType=VARCHAR} 95 | where oid = #{oid,jdbcType=VARCHAR} 96 | 97 | 102 | 103 | 108 | 109 | -------------------------------------------------------------------------------- /src/com/mapper/RoleMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | roleid, rolename, roledesc, available 12 | 13 | 19 | 20 | delete from sys_role 21 | where roleid = #{roleid,jdbcType=INTEGER} 22 | 23 | 24 | insert into sys_role (roleid, rolename, roledesc, 25 | available) 26 | values (#{roleid,jdbcType=INTEGER}, #{rolename,jdbcType=VARCHAR}, #{roledesc,jdbcType=VARCHAR}, 27 | #{available,jdbcType=INTEGER}) 28 | 29 | 30 | insert into sys_role 31 | 32 | 33 | roleid, 34 | 35 | 36 | rolename, 37 | 38 | 39 | roledesc, 40 | 41 | 42 | available, 43 | 44 | 45 | 46 | 47 | #{roleid,jdbcType=INTEGER}, 48 | 49 | 50 | #{rolename,jdbcType=VARCHAR}, 51 | 52 | 53 | #{roledesc,jdbcType=VARCHAR}, 54 | 55 | 56 | #{available,jdbcType=INTEGER}, 57 | 58 | 59 | 60 | 61 | update sys_role 62 | 63 | 64 | rolename = #{rolename,jdbcType=VARCHAR}, 65 | 66 | 67 | roledesc = #{roledesc,jdbcType=VARCHAR}, 68 | 69 | 70 | available = #{available,jdbcType=INTEGER}, 71 | 72 | 73 | where roleid = #{roleid,jdbcType=INTEGER} 74 | 75 | 76 | update sys_role 77 | set rolename = #{rolename,jdbcType=VARCHAR}, 78 | roledesc = #{roledesc,jdbcType=VARCHAR}, 79 | available = #{available,jdbcType=INTEGER} 80 | where roleid = #{roleid,jdbcType=INTEGER} 81 | 82 | 83 | 84 | 100 | 101 | 102 | 103 | delete from sys_role_menu where rid=#{value} 104 | 105 | 106 | 107 | 108 | delete from sys_role_user where rid=#{value} 109 | 110 | 111 | 112 | 113 | insert into sys_role_menu(rid, mid) values(#{rid},#{mid}) 114 | 115 | 116 | 117 | 118 | delete from sys_role_user where uid=#{value} 119 | 120 | 121 | 122 | 125 | 126 | -------------------------------------------------------------------------------- /src/com/controller/SysController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | import com.constant.SysConstant; 7 | import com.utils.WebUtils; 8 | import com.vo.UserVO; 9 | 10 | /** 11 | * 页面跳转控制器 12 | */ 13 | @Controller 14 | @RequestMapping("sys") 15 | public class SysController { 16 | 17 | /** 18 | * @return 跳转到菜单管理 19 | */ 20 | @RequestMapping("toMenuManager") 21 | public String toMenuManager(){ 22 | return "system/menu/menuManager"; 23 | } 24 | 25 | /** 26 | * 跳转到菜单管理的左边的菜单树页面 27 | * @return 28 | */ 29 | @RequestMapping("toMenuRight") 30 | public String toMenuRight(){ 31 | return "system/menu/MenuRight"; 32 | } 33 | 34 | /** 35 | * 跳转到菜单管理的右边的菜单树页面 36 | * @return 37 | */ 38 | @RequestMapping("toMenuLeft") 39 | public String toMenuLeft(){ 40 | return "system/menu/MenuLeft"; 41 | } 42 | /** 43 | * 跳转到角色管理 44 | * @return 45 | */ 46 | @RequestMapping("toRoleManager") 47 | public String toRoleManager(){ 48 | return "system/role/roleManager"; 49 | } 50 | 51 | /** 52 | * 跳转到用户管理页面 53 | * @return 54 | */ 55 | @RequestMapping("toUserManager") 56 | public String toUserManager(){ 57 | return "system/user/userManager"; 58 | } 59 | 60 | 61 | 62 | /** 63 | * 跳转到体检人员管理 64 | * @return 65 | */ 66 | @RequestMapping("toTJUserManager") 67 | public String toTJUserManager(){ 68 | return "system/user/tjuserManager"; 69 | } 70 | /** 71 | * 跳转到医生人员管理 72 | * @return 73 | */ 74 | @RequestMapping("toDoctorManager") 75 | public String toDoctorManager(){ 76 | return "system/user/doctorManager"; 77 | } 78 | /** 79 | * 跳转到体检项目管理 80 | * @return 81 | */ 82 | @RequestMapping("toProjectManager") 83 | public String toProjectManager(){ 84 | return "system/project/projectManager"; 85 | } 86 | /** 87 | * 跳转到套餐管理 88 | * @return 89 | */ 90 | @RequestMapping("toPackageManager") 91 | public String toPackageManager(){ 92 | return "system/pack/packageManager"; 93 | } 94 | /** 95 | * 跳转到个人预约管理 96 | * @return 97 | */ 98 | @RequestMapping("toOrder1Manager") 99 | public String toOrder1Manager(){ 100 | return "system/order/order1Manager"; 101 | } 102 | /** 103 | * 跳转到单位预约管理 104 | * @return 105 | */ 106 | @RequestMapping("toOrder2Manager") 107 | public String toOrder2Manager(){ 108 | return "system/order/order2Manager"; 109 | } 110 | /** 111 | * 跳转到个人信息页面 112 | * @return 113 | */ 114 | @RequestMapping("toUserInfoManager") 115 | public String toUserInfoManager(){ 116 | UserVO user = (UserVO) WebUtils.getHttpSession().getAttribute("user"); 117 | if (SysConstant.USER_TYPE_ADMIN.equals(user.getType())) {//管理员 118 | return "system/user/adminInfoManager"; 119 | } else if (SysConstant.USER_TYPE_DOCTOR.equals(user.getType())) { 120 | return "system/user/doctorInfoManager"; 121 | }else if (SysConstant.USER_TYPE_USER.equals(user.getType())) { 122 | return "system/user/userInfoManager"; 123 | } 124 | return "system/main/login"; 125 | } 126 | 127 | @RequestMapping("toChangePwdManager") 128 | public String toChangePwdManager(){ 129 | return "system/user/changePwdManager"; 130 | } 131 | 132 | @RequestMapping("toCheckOneOrderManager") 133 | public String toCheckOneOrderManager(){ 134 | return "system/order/checkOneOrderManager"; 135 | } 136 | 137 | @RequestMapping("toCheckOrderManager") 138 | public String toCheckOrderManager(){ 139 | return "system/order/checkOrderManager"; 140 | } 141 | @RequestMapping("toAnalyseManager") 142 | public String toAnalyseManager(){ 143 | return "system/analyse/toAnalyseManage"; 144 | } 145 | 146 | /** 147 | * 跳转到体检小知识页面 148 | * @return 149 | */ 150 | @RequestMapping("toCheckKnowledge") 151 | public String toCheckKnowledge(){ 152 | 153 | return "system/news/checkKnowledge"; 154 | } 155 | 156 | /** 157 | * 跳转到体检小知识页面 158 | * @return 159 | */ 160 | @RequestMapping("toOrderTeamManager") 161 | public String toOrderTeamManager(){ 162 | 163 | return "system/order/orderTeamManager"; 164 | } 165 | 166 | /** 167 | * 跳转到用户反馈页面 168 | * @return 169 | */ 170 | @RequestMapping("toUserFeedback") 171 | public String toUserFeedback(){ 172 | 173 | return "system/analyse/userFeeddback"; 174 | } 175 | /** 176 | * 跳转到医生的用户反馈页面 177 | * @return 178 | */ 179 | @RequestMapping("toDoctorFeedback") 180 | public String toDoctorFeedback(){ 181 | 182 | return "system/analyse/doctorFeeddback"; 183 | } 184 | 185 | /** 186 | * 跳转到查看体检小知识的页面 187 | * @return 188 | */ 189 | @RequestMapping("toViewCheckKnowledge") 190 | public String toViewCheckKnowledge(String id){ 191 | WebUtils.getHttpSession().setAttribute("checkKnowledgeId",id); 192 | return "system/news/viewCheckKnowledge"; 193 | } 194 | } 195 | --------------------------------------------------------------------------------