diff --git a/pom.xml b/pom.xml index 796669bbb47468f01a5898acfc57d3e786f141d4..4c7f134b7bcdb14d4a0406e76bcdf5be25784bdc 100644 --- a/pom.xml +++ b/pom.xml @@ -95,6 +95,20 @@ spring-boot-starter-thymeleaf + + org.springframework.boot + spring-boot-starter + + + org.thymeleaf + thymeleaf-spring5 + + + org.thymeleaf.extras + thymeleaf-extras-java8time + + + diff --git a/src/main/java/com/sixteam/irs/bbwendang/wendang b/src/main/java/com/sixteam/irs/bbwendang/wendang new file mode 100644 index 0000000000000000000000000000000000000000..d11616fd7059ba413aff6a3fb585edf7207be48c --- /dev/null +++ b/src/main/java/com/sixteam/irs/bbwendang/wendang @@ -0,0 +1,194 @@ +8.16头脑风暴: +内容:模块 +交流模块/公告模块/在线聊天 +公告:哪块要人 +社保管理/资源管理 +首先有登陆注册,管理员通过ip登录,不需要进行普通登录 +人才市场:安博内部 +管理员每次生成密钥/邀请码,如果没有邀请码,进入不了注册系统,完成不了注册信息因为是安博内部招聘 +具有筛选功能:薪资空间 +管理有个管理后台,后台里有管理用户,管理岗位,公告 +聊天需要两个表,聊天记录还有中间表 +如果老板看中求职者的简历,可以与其进行线上面试 +8.17头脑风暴:x +客服页面 + 对简历的审核(人工审核) +先进行脏话过滤然后进行人工审核如果与求职信息无关直接打回 +岗位之上有个部门系统,因为好几个部门有同一样的岗位' +上传简历的同时可以同时上传视频,15秒的自我介绍 +每个岗位介绍上都有自己部门的视频,介绍自己部门的坏境 +岗位的状态:招人/缺人 +别的人可以看到这个岗位有多少人已经投简历 +内推:内推码(一个企业发两套招聘,一个是需要内推码,一个不需要) +广告系统:每个部门可以买热度,热度高这个部门位置越靠上 +热门部门推荐:热搜 + +数据库设计说明: +1. 数据库环境说明 +使用软件: mysql,navicat +配置: mysql5.5.40 +2. 数据库的命名规则 +数据库的前缀相同,都为:irs,每个单词之间用下划线链接.中间表都是两个下划线,标识出哪两个表的中间表. +本数据库的前缀为内部招聘的英文缩写. +3. 逻辑设计 +提示:数据库设计人员根据需求文档,创建与数据库相关的那部分实体关系图(ERD)。如果采用面向对象方法(OOAD),这里实体相当于类(class)。 + + +4. 物理设计 +提示: +(1)主要是设计表结构。一般地,实体对应于表,实体的属性对应于表的列,实体之间的关系成为表的约束。逻辑设计中的实体大部分可以转换成物理设计中的表,但是它们并不一定是一一对应的。 +(2)对表结构进行规范化处理(第三范式)。 +4.0 表汇总 +表名 功能说明 +irs_enterprise 企业表(企业id,企业姓名,企业介绍,企业成立时间,企业类型,企业创始人) +irs_jurisdiction 权限表(权限id,权限名字) +irs_jurisdiction_role 权限与角色中间表(权限外键, 角色外键, 状态(启用,禁用,强制启用,强制禁用) +irs_resume 简历表(主键, 用户外键, 技能证书, 荣誉证书, 校内实践, 自我评价, 求职意向) +irs_role 权限表(主键, 角色名, 基础类型(学员,企业人员,管理员), 角色描述) +irs_station 岗位表(岗位主键, 岗位名, 岗位工资, 岗位工作, 部门名, 岗位所需人数, 学历要求, 工作天数, 生活补助, 五险一金) +irs_station_resume 岗位和简历的中间表(岗位外键, 简历外键, 接收状态(未读,已读,未通过,通过)) +irs_user 用户表(用户主键, 用户名, 邮箱, 电话, 密码, 性别, 生日) +irs_user_role 用户和权限的中间表(用户外键,权限外键) + +4.1 表irs_enterprise +表名 irs_enterprise +列名 数据类型(精度范围) 空/非空 约束条件 +e_id Varchar(10) 非空 +e_name Varchar(30) +e_introduce Varchar(100) +e_start Varchar(50) +e_type Varchar(10) +e_founder Varchar(10) +补充说明 + +4.2 表irs_jurisdiction +表名 irs_jurisdiction +列名 数据类型(精度范围) 空/非空 约束条件 +j_id Varchar(50) 非空 +j_name Varchar(100) +补充说明 +4.3 表irs_jurisdiction_role +表名 irs_jurisdiction_role +列名 数据类型(精度范围) 空/非空 约束条件 +jr_id Varchar(10) 非空 +j_id Varchar(10) +r_id Varchar(10) +jr_status Varchar(100) +补充说明 +4.4 表irs_resume +表名 irs_resume +列名 数据类型(精度范围) 空/非空 约束条件 +re_id Varchar(10) 非空 +u_id Varchar(10) +re_skill Varchar(10) +re_honor Varchar(10) +re_campus_practice Varchar(10) +re_self_evaluation Varchar(10) +re_job_intention Varchar(10) +补充说明 +4.5 表irs_role +表名 irs_role +列名 数据类型(精度范围) 空/非空 约束条件 +r_id Varchar(100) 非空 +r_name Varchar(100) +r_base_type Varchar(100) +r_describe Varchar(100) +补充说明 +4.6 表irs_station +表名 irs_station +列名 数据类型(精度范围) 空/非空 约束条件 +s_id Varchar(10) 非空 +s_name Varchar(10) +s_wages Varchar(30) +s_work Varchar(30) +s_department Varchar(10) +s_number Varchar(30) +s_education Varchar(20) +s_workdays Varchar(20) +s_subsidy Varchar(20) +s_gold Varchar(10) +补充说明 +4.7 表irs_station_resume +表名 irs_station_resume +列名 数据类型(精度范围) 空/非空 约束条件 +sr_id Varchar(10) 非空 +s_id Varchar(10) +re_id Varchar(10) +sr_status Varchar(100) +补充说明 + +4.8 表irs_user +表名 irs_user +列名 数据类型(精度范围) 空/非空 约束条件 +u_id Varchar(100) 非空 +u_name Varchar(100) +u_email Varchar(100) +u_phone Varchar(100) +u_password Varchar(100) +u_sex Varchar(100) +u_birth_date Varchar(100) +补充说明 +4.9 表irs_user_role +表名 irs_user_role +列名 数据类型(精度范围) 空/非空 约束条件 +ur_id Varchar(10) 非空 +u_id Varchar(10) +r_id Varchar(10) +补充说明 + +5. 安全性设计 +系统根据用户标识鉴定用户身份,合法用户才准许进入计算机系统 +数据库管理系统进行存取控制,只允许用户执行合法操作 +操作系统有自己的保护措施 +数据以密码形式存储到数据库中 +5.1 防止用户直接操作数据库的方法 +做一个中间层,放在服务器运行,客户端程序向中间层程序申请数据。 +为用户分组,在数据库中对用户进行权限设置。 +写存储过程,用存储过程访问数据库数据,然后对存储过程设置权限。 +5.2 用户帐号密码的加密方法 +Md5加密: +$.md5(password);//普通加密 +$.md5(password,128);//128位md5加密,该加密结果无法解密 + +测试方法说明: +1. 测试范围与主要内容 + 针对软件产品系统进行的测试: + 功能性:是否符合需求规格,功能设计,用户满足度 + 非功能性:容错性,稳定性,异常处理能力,高强度输入处理功能,可用性,性能 +系统测试计划:完成系统测试计划。软件产品的需求规格确定后编写。 +系统测试设计:完成系统方案。软件概要设计文档确定后编写。 +系统测试实现:完成系统测试用例、脚本。 +系统测试执行:执行测试用例、发现问题并回归测试、提交系统测试日报、提交系统测试报告 +2. 测试方法 + 1.集成测试 + 按照模块上下集的关系,进行从上到下或者从下的集成测试方法进行集成测试,单元测试与集成测试主要考虑功能性测试.同时也要对各个模块或者集成模块进行非功能性的抽样测试. + 2.系统测试 + 对整合系统进行整合测试,这时的测试主要测试系统的整体功能和全部非功能性的需求 + 3.验收测试 + 首先进行正规性的测试,即由测试人员模拟各用户环境,以用户的身份进行安装和测试工作,然后进行非正规测试alpha测试和bate测试 + 4.功能测试 + 测试软件各个功能模块是否正确,逻辑是否正确. + 5.UI测试 + 用户界面的风格是否满足客户要求,文字是否正确,页面美工是否好看,文字,图片组合是否完美,背景是否美观,操作是否友好 + 6.性能测试 + 测试软件的性能,包括负载测试,强度测试,容量测试. + 7.安全性测试 + 应用程序级别的安全性,包括对数据或业务功能的访问. +3. 测试环境与测试辅助工具 +测试环境 脚本要分开、gui文件要合并、批调用回放验证、可移植回放验证 + +测试辅助工具 WinRunner MercuryInteractive:TestDirector +4. 测试完成准则 +(1)功能性测试用例通过率达到100%; +(2)非功能性测试用例通过率达到95% +(3)根据的是特定的测试用例设计技术。(解释:根据特定情况设计的所有测试用例最终都没有找到错误) +(4)以确切的数量来描述结束测试的条件。(解释:通过具体方法可以大致预测出错误的数量) +(5)测试过程中记录每个单位时间内发现错误的数量,绘制成曲线图,观察错误数量的趋势。(解释:观察曲线图趋势,根据经验判断结束时间) +5. 人员与任务表 +人员 角色 职责、任务 时间 +冯玮钦 组长 +杨浩 组员 +李霆伟 组员 +宋海龙 副组长 +郝春丁 组员 +白冰 组员 diff --git a/src/main/java/com/sixteam/irs/controller/EncyclopediaController.java b/src/main/java/com/sixteam/irs/controller/EncyclopediaController.java index bddcbdcb2dcb513554a1da5ca9683b544e627799..d0db8378ced08ea4d51aa5f493b2b4ade57d01a6 100644 --- a/src/main/java/com/sixteam/irs/controller/EncyclopediaController.java +++ b/src/main/java/com/sixteam/irs/controller/EncyclopediaController.java @@ -6,6 +6,7 @@ import com.sixteam.irs.entity.Encyclopedia; import com.sixteam.irs.service.EncyclopediaService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; @@ -15,32 +16,34 @@ import javax.servlet.http.HttpServletRequest; import java.util.List; @Controller -@RequestMapping(value = "/ee") +@RequestMapping( "/ee") public class EncyclopediaController { @Autowired private EncyclopediaService encyclopediaService; - @RequestMapping(value = "/list") - public String list(ModelMap map, @RequestParam(defaultValue="1",required=true,value="pageNo") Integer pageNo) { - Integer pageSize=4;//每页显示记录数 + + @RequestMapping( "/list") + public String list(Model model,@RequestParam(defaultValue = "1", required = true, value = "pageNo") Integer pageNo) { + + Integer pageSize = 4;//每页显示记录数 //分页查询 PageHelper.startPage(pageNo, pageSize); List encyclopediaList = encyclopediaService.findAllEncyclopedias();//获取所有用户信息 - PageInfo pageInfo=new PageInfo(encyclopediaList); - map.addAttribute("pageInfo", pageInfo); - - return "encyclopedia/encyclopediaList"; + PageInfo pageInfo = new PageInfo(encyclopediaList); + model.addAttribute("pageInfo", pageInfo); + return "/test/encyclopedia/职场百科页面.html"; } - @RequestMapping(value = "/toAdd") + @RequestMapping( "/toAdd") public String toAdd(Integer encId, HttpServletRequest request) { System.out.println(encId); - return "encyclopedia/add"; + return "/test/encyclopedia/添加公告页面.html"; } - @RequestMapping(value = "/add") + + @RequestMapping( "/add") public ModelAndView add(Encyclopedia encyclopedia) { ModelAndView nav = new ModelAndView(); @@ -52,12 +55,13 @@ public class EncyclopediaController { nav.setViewName("redirect:/ee/list"); } else { nav.addObject("msg", "添加公告失败"); - nav.setViewName("message"); + nav.setViewName("/test/错误页面.html"); } return nav; } - @RequestMapping(value = "/del") + + @RequestMapping( "/del") public String del(Integer encId, HttpServletRequest request) { int res = encyclopediaService.delEncyclopedia(encId); @@ -67,44 +71,50 @@ public class EncyclopediaController { return "redirect:/ee/list"; } else { request.setAttribute("msg", "删除公告失败"); - return "encyclopedia/message.jsp"; + return "/test/错误页面.html"; } } - @RequestMapping(value = "/toUpdate") + + @RequestMapping( "/toUpdate") public String toUpdate(Integer encId, HttpServletRequest request) { Encyclopedia encyclopedia = encyclopediaService.findById(encId); request.setAttribute("encyclopedia", encyclopedia); - return "encyclopedia/updateEncyclopedia"; + return "/test/encyclopedia/修改公告页面.html"; } - @RequestMapping(value = "/update") + + @RequestMapping( "/update") public String update(Encyclopedia encyclopedia, HttpServletRequest request) { + int res = encyclopediaService.updateEncyclopedia(encyclopedia); + if (res > 0) { return "redirect:/ee/list"; } else { request.setAttribute("msg", "修改公告失败"); - return "encyclopedia/message.jsp"; + return "/test/错误页面.html"; } } - @RequestMapping(value = "/like") + + @RequestMapping( "/like") public String like(ModelMap map, - @RequestParam(defaultValue="1",required=true,value="pageNo") Integer pageNo,String encTitle) { + @RequestParam(defaultValue = "1", required = true, value = "pageNo") Integer pageNo, String encTitle) { - Integer pageSize=4;//每页显示记录数 + Integer pageSize = 4;//每页显示记录数 //分页查询 PageHelper.startPage(pageNo, pageSize); List encyclopediaList = encyclopediaService.findEncyclopediaByLike(encTitle);//获取所有用户信息 - PageInfo pageInfo=new PageInfo(encyclopediaList); + PageInfo pageInfo = new PageInfo(encyclopediaList); + map.addAttribute("pageInfo", pageInfo); - return "encyclopedia/encyclopediaList"; + return "/test/encyclopedia/职场百科页面.html"; } - } +} diff --git a/src/main/java/com/sixteam/irs/controller/EnterpriseController.java b/src/main/java/com/sixteam/irs/controller/EnterpriseController.java index 144496b010f544eac5be53ae94fe3d982ecae788..37617c173d7924f7a2fa022afff9cde765011ddd 100644 --- a/src/main/java/com/sixteam/irs/controller/EnterpriseController.java +++ b/src/main/java/com/sixteam/irs/controller/EnterpriseController.java @@ -1,8 +1,10 @@ package com.sixteam.irs.controller; import com.sixteam.irs.entity.Enterprise; +import com.sixteam.irs.entity.User; import com.sixteam.irs.service.EnterpriseService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -19,20 +21,66 @@ public class EnterpriseController { //查询所有企业 @RequestMapping("/getAllEnterprise") - public List getAllEnterprise(HttpServletRequest request){ + public String getAllEnterprise(HttpServletRequest request){ List getAllEnterprise = enterpriseService.getAllEnterprise(); request.setAttribute("getAllEnterprise",getAllEnterprise); System.out.println(getAllEnterprise); - return getAllEnterprise; + return "/test/enterprise/企业列表页面.html"; } - @GetMapping("/addEnterprise") - public void addEnterprise(Enterprise enterprise,HttpServletRequest request){ + @RequestMapping("/toAddEnterprise") + public String toAddEnterprise(){ + + return "/test/enterprise/添加企业页面.html"; + } + + @RequestMapping("/addEnterprise") + public String addEnterprise(Enterprise enterprise,HttpServletRequest request){ int res=enterpriseService.addEnterprise(enterprise); if (res>0) { System.out.println("添加企业成功"); + return "redirect:/enterprise/getAllEnterprise"; }else { System.out.println("添加企业失败"); + request.setAttribute("errorMessage", "添加错误"); + return "/test/错误页面"; } } + + + @RequestMapping(value = "/delEnterprise") + public String delEnterprise(Enterprise enterprise, Model model) { + + if (enterpriseService.delEnterprise(enterprise)>0) { + + return "redirect:/enterprise/getAllEnterprise"; + } else { + + model.addAttribute("errorMessage", "删除错误"); + return "/test/错误页面"; + } + } + + + @RequestMapping("/toUpdateEnterprise") + public String toUpdateEnterprise(Enterprise enterprise, Model model, Integer id) { + + Enterprise enterprise1 = enterpriseService.findById(enterprise); + model.addAttribute("enterprise1", enterprise1); + + return "/test/enterprise/修改企业页面.html"; + } + + @RequestMapping(value = "/updateEnterprise") + public String updateUser(Enterprise enterprise, Model model) { + if (enterpriseService.updateEnterprise(enterprise)>0) { + + return "redirect:/enterprise/getAllEnterprise"; + } else { + + model.addAttribute("errorMessage", "修改错误"); + return "/test/错误页面"; + } + } + } diff --git a/src/main/java/com/sixteam/irs/controller/JurisdictionController.java b/src/main/java/com/sixteam/irs/controller/JurisdictionController.java index 85a7f416fc7b9972ef99c464311eed43a398276f..3f3975b32572d190194c064ab104281f85f1ae97 100644 --- a/src/main/java/com/sixteam/irs/controller/JurisdictionController.java +++ b/src/main/java/com/sixteam/irs/controller/JurisdictionController.java @@ -16,33 +16,33 @@ public class JurisdictionController { private JurisdictionService jurisdictionService; @RequestMapping("/find/findAll") - public void findAllJurisdiction(HttpServletRequest request){ + public String findAllJurisdiction(HttpServletRequest request) { List all = jurisdictionService.findAll(); - System.out.println(all); - + request.setAttribute("all", all); + return "/test/jurisdiction/权限列表页面.html"; } @RequestMapping("/find/findId") - public String findJurisdictionId(String id,HttpServletRequest request){ - Jurisdiction ij = jurisdictionService.getJurisdictionById("1"); - if (ij !=null){ - System.out.println(ij); + public String findJurisdictionId(String id, HttpServletRequest request) { + Jurisdiction ij = jurisdictionService.getJurisdictionById(id); + if (ij != null) { + request.setAttribute("ij", ij); return "成功"; + } else { + request.setAttribute("errorMessage", "查询错误"); + return "/test/错误页面"; } - else - return "失败"; } @RequestMapping("/find/findName") - public String findJurisdictionName(String name,HttpServletRequest request){ - List ij = jurisdictionService.getJurisdictionByName("温"); - if(ij !=null){ - System.out.println(ij); - return "成功"; + public String findJurisdictionName(String name, HttpServletRequest request) { + List ij = jurisdictionService.getJurisdictionByName(name); + if (ij != null) { + request.setAttribute("ij", ij); + return "/test/jurisdiction/权限列表页面.html"; + } else { + request.setAttribute("errorMessage", "查询错误"); + return "/test/错误页面"; } - else - return "失败"; } - - } diff --git a/src/main/java/com/sixteam/irs/controller/JurisdictionRoleController.java b/src/main/java/com/sixteam/irs/controller/JurisdictionRoleController.java new file mode 100644 index 0000000000000000000000000000000000000000..8f494c44b2c36c15900c0dfbd62dde16e4ea2802 --- /dev/null +++ b/src/main/java/com/sixteam/irs/controller/JurisdictionRoleController.java @@ -0,0 +1,28 @@ +package com.sixteam.irs.controller; + +import com.sixteam.irs.entity.JurisdictionRole; +import com.sixteam.irs.mapper.JurisdictionRoleMapper; +import com.sixteam.irs.service.JurisdictionRoleService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.stereotype.Repository; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; + +import java.util.List; + +@RequestMapping("/") +@Controller +public class JurisdictionRoleController { + @Autowired + private JurisdictionRoleService jurisdictionRoleService; + + @RequestMapping("/jurisdictionRoleList") + public String jurisdictionRoleList(Model model){ + List list = jurisdictionRoleService.findAll(); + System.out.println(list); + model.addAttribute("list",list); + return "/一个网址"; + } + +} diff --git a/src/main/java/com/sixteam/irs/controller/ResumeController.java b/src/main/java/com/sixteam/irs/controller/ResumeController.java index ae727ca1ed4c8f43ff1d4c9e0654467f82f92816..f5fef9f7461b4b97c3d86cf059dbabe6b7f4367f 100644 --- a/src/main/java/com/sixteam/irs/controller/ResumeController.java +++ b/src/main/java/com/sixteam/irs/controller/ResumeController.java @@ -1,11 +1,14 @@ package com.sixteam.irs.controller; import com.sixteam.irs.entity.Resume; +import com.sixteam.irs.entity.User; import com.sixteam.irs.service.Impl.ResumeServiceImpl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpSession; import java.util.List; @Controller @@ -16,12 +19,26 @@ public class ResumeController { private ResumeServiceImpl resumeService; @RequestMapping("/findAllResume") - public void findAllResume(){ + public String findAllResume(){ List resumeList = null; resumeList=resumeService.findAllResume(); - System.out.println(resumeList); +// System.out.println(resumeList); + return null; + } + + @RequestMapping("/findResumeByUid") + public String findResumeByUid(HttpSession session, HttpServletRequest request){ + User user=null; +// user =(User)session.getAttribute("user"); + user=new User(); + user.setuId("5"); + List resumeList =resumeService.findResumeByUid(user.getuId()); + + request.setAttribute("resumeList",resumeList); +// System.out.println(resumeList); + return "/test/resume/学员简历列表"; } } diff --git a/src/main/java/com/sixteam/irs/controller/RoleController.java b/src/main/java/com/sixteam/irs/controller/RoleController.java new file mode 100644 index 0000000000000000000000000000000000000000..02224dd1b92012d4bba34d18bd76344032fe6cdd --- /dev/null +++ b/src/main/java/com/sixteam/irs/controller/RoleController.java @@ -0,0 +1,26 @@ +package com.sixteam.irs.controller; + +import com.sixteam.irs.entity.Role; +import com.sixteam.irs.service.RoleService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpRequest; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; + +import javax.servlet.http.HttpServletRequest; +import java.util.List; + +@RequestMapping("/") +@Controller +public class RoleController { + @Autowired + private RoleService roleService; + + @RequestMapping("/findAllRole") + public String findAllRole(HttpServletRequest request){ + List roleList = roleService.findAll(); + System.out.println(roleList); + request.setAttribute("roleList",roleList); + return "roleList.html"; + } +} diff --git a/src/main/java/com/sixteam/irs/controller/StationController.java b/src/main/java/com/sixteam/irs/controller/StationController.java index 43d212d0171bd2e0ab127874ce73f6ecc94793fd..7436df9a67d5c7b1a2220bd851ccdd5d1be5d61b 100644 --- a/src/main/java/com/sixteam/irs/controller/StationController.java +++ b/src/main/java/com/sixteam/irs/controller/StationController.java @@ -3,14 +3,13 @@ package com.sixteam.irs.controller; import com.sixteam.irs.entity.Station; import com.sixteam.irs.service.StationService; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; import java.util.List; -@RestController +@Controller @RequestMapping("/station") public class StationController { @Autowired @@ -18,36 +17,75 @@ public class StationController { //查询所有岗位 @RequestMapping("/getAllStation") - public List getAllStation(HttpServletRequest request){ + public String getAllStation(HttpServletRequest request){ List getAllStation = stationService.getAllStation(); request.setAttribute("getAllStation",getAllStation); System.out.println(getAllStation); - return getAllStation; + return "/test/station/企业的岗位列表.html"; } - @GetMapping("/addStation") - public void addStation(Station station,HttpServletRequest request){ + //查询所有岗位和企业 + @RequestMapping("/getAllSAE") + public List getAllSAE(HttpServletRequest request){ + List getAllSAE = stationService.getAllSAE(); + request.setAttribute("getAllStation",getAllSAE); + System.out.println(getAllSAE); + return getAllSAE; + } + @RequestMapping("/toAddStation") + public String toAddStation(){ + + return "/test/station/添加岗位.html"; + } + @RequestMapping("/addStation") + public String addStation(Station station,HttpServletRequest request){ int res=stationService.addStation(station); if (res>0) { System.out.println("添加企业成功"); + return "/test/station/getAllStation"; }else { System.out.println("添加企业失败"); + request.setAttribute("errorMessage", "添加错误"); + return "/test/错误页面"; } } //修改 - @GetMapping("/updateStation") + @RequestMapping("/updateStation") public void updateStation(Station station,HttpServletRequest request) { int i = stationService.updateStation(station); if(i>0){ - System.out.println("修改企业成功"); + System.out.println("修改岗位成功"); }else { - System.out.println("修改企业失败"); + System.out.println("修改岗位失败"); } } //按名称查询 - @GetMapping("/stationName") + @RequestMapping("/stationName") public String findStationByName(String stationName,HttpServletRequest request) { - return null; - // TODO: 2022/8/16 + List findStationByName = stationService.findStationByName(stationName); + if (findStationByName!=null && findStationByName.size()>0){ + request.setAttribute("findStationByName",findStationByName); + System.out.println("模糊查询成功"+findStationByName); + return "/test/station/findStationByName"; + }else{ + request.setAttribute("errorMessage", "查询不到该关键字"); + return "/test/错误页面"; + } + } + //通过企业id查询企业的岗位 + @RequestMapping("/findStationById") + public String findStationById(String stationId,HttpServletRequest request) { + + String eid = "1"; + List findStationByEIdlist = stationService.findStationByEId(eid); + if (findStationByEIdlist != null && findStationByEIdlist.size()>0){ + request.setAttribute("findStationByEIdlist",findStationByEIdlist); + System.out.println("模糊查询成功"+findStationByEIdlist); + return "/test/station/企业的岗位列表"; + }else{ + System.out.println("模糊查询失败"); + request.setAttribute("errorMessage", "查询不到该企业ID"); + return "/test/错误页面"; + } } } diff --git a/src/main/java/com/sixteam/irs/controller/UserController.java b/src/main/java/com/sixteam/irs/controller/UserController.java index d220e4cb524c8726db469506884e41936efa466a..d01ae629e9c692c5cc86be119d1703a615908cb4 100644 --- a/src/main/java/com/sixteam/irs/controller/UserController.java +++ b/src/main/java/com/sixteam/irs/controller/UserController.java @@ -3,8 +3,6 @@ package com.sixteam.irs.controller; import com.sixteam.irs.entity.User; import com.sixteam.irs.service.UserService; -import com.sun.org.apache.xpath.internal.operations.Mod; -import org.apache.ibatis.annotations.Insert; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; @@ -22,76 +20,179 @@ public class UserController { @Autowired private UserService userService; - @RequestMapping("") + @RequestMapping("/") public String start(){ System.out.println("启动"); return "/test/index.html"; } - @RequestMapping("/findAllUser") - public String findAllUser(Model model){ - List userList = userService.findAllUser(); - System.out.println(userList); - model.addAttribute("userList",userList); - return "userList.html"; + //前往管理员主页 + @RequestMapping("/admin") + public String goToAdminIndex(){ + return "/test/admin/管理员首页.html"; } - - @RequestMapping("/findUserByName") - public String findUserByName(Model model,User user){ - List userList = userService.findUserByName(user); - model.addAttribute("userList",userList); - return "redirect:/user/findAllUser"; + //前往管理员主页 + @RequestMapping("/user") + public String goToUser(){ + return "/test/user/用户首页.html"; } + //前往用户管理列表页面 + @RequestMapping("/userList") + public String userList(Model model){ + //这里需要查询所有用户,包括角色,包括权限,返回到用户管理列表页面 + List userList = userService.findAllUser(); + System.out.println(userList); + model.addAttribute("userList",userList); + return "/test/user/用户列表.html"; + } - @RequestMapping(value = "/addUser") - public String addUser(User user, Model model) { - if (userService.addUser(user)>0) { - - return "redirect:/user/findAllUser"; - } else { - - model.addAttribute("errorMessage", "注册错误"); - return "error"; - } + //用于ajax,暂时不用管 + @RequestMapping("/getUserList") + @ResponseBody + public String getUserList(){ + //ajax获取页面列表 + return null; } + //删除用户功能 + @RequestMapping("/delUser") + public String delUser(String id){ + //获取前台传来的用户id,删除该用户 - @RequestMapping(value = "/delUser") - public String delUser(User user, Model model) { - if (userService.delUser(user)>0) { + int i = userService.delUser(id); + //返回前端 + + return "redirect:/userList"; - return "redirect:/user/findAllUser"; - } else { - model.addAttribute("errorMessage", "删除错误"); - return "error"; - } } + @RequestMapping("/addUser") + public String addUser(){ + //获取前台传来的用户 + //将用户添加 + return "redirect:/userList"; + } + //用户修改功能前的查询单个用户回显网页 @RequestMapping("/toUpdateUser") - public String toUpdateUser(User user, Model model, Integer id) { - - User user1 = userService.findById(user); - model.addAttribute("user1", user1); - - return "updateUser"; + public String toUpdateUser(String id,HttpServletRequest request){ + //获取前台传来的用户id,查询此用户 + User user = userService.findById(id); + request.setAttribute("user",user); + System.out.println(user); + //将数据传到修改页面 + return "/test/user/修改用户.html"; } + //用户修改功能 + @RequestMapping("/updateUser") + public String updateUser(HttpServletRequest request,User user){ + //获取前台数据 + int i = userService.updateUser(user); + //修改用户 + if (i>0){ + return "redirect:/userList"; + }else { + request.setAttribute("data","暂无数据更改"); + return "redirect:/userList"; + } + //返回列表页 - @RequestMapping(value = "/updateUser") - public String updateUser(User user, Model model) { - if (userService.updateUser(user)>0) { - - return "redirect:/user/findAllUser"; - } else { - - model.addAttribute("errorMessage", "修改错误"); - return "error"; + } + //用户登录 + @RequestMapping("/loginUser") + public String loginUser(User user,HttpServletRequest request){ + User u = userService.loginUser(user); + if (u!=null) { + request.setAttribute("admin", user.getuName()); + return "bb:/loginUser1"; + }else { + request.setAttribute("msg","登陆失败"); + return "bb:/message"; + } + } + //用户注册 + @RequestMapping("/registerUser") + public String registerUser(User user,HttpServletRequest request){ + int u =userService.addUser(user); + if (u>0){ + request.setAttribute("msg","添加成功"); + return "bb:/message"; + }else{ + request.setAttribute("msg","添加失败"); + return "bb:/message"; } } + +// @RequestMapping("/findAllUser") +// public String findAllUser(Model model){ +// List userList = userService.findAllUser(); +// System.out.println(userList); +// model.addAttribute("userList",userList); +// return "userList.html"; +// } +// +// +// @RequestMapping("/findUserByName") +// public String findUserByName(Model model,User user){ +// List userList = userService.findUserByName(user); +// model.addAttribute("userList",userList); +// return "redirect:/user/findAllUser"; +// } +// +// +// +// @RequestMapping(value = "/addUser") +// public String addUser(User user, Model model) { +// if (userService.addUser(user)>0) { +// +// return "redirect:/user/findAllUser"; +// } else { +// +// model.addAttribute("errorMessage", "注册错误"); +// return "error"; +// } +// } +// +// +// @RequestMapping(value = "/delUser") +// public String delUser(User user, Model model) { +// +// if (userService.delUser(user)>0) { +// +// return "redirect:/user/findAllUser"; +// } else { +// +// model.addAttribute("errorMessage", "删除错误"); +// return "error"; +// } +// } +// +// +// @RequestMapping("/toUpdateUser") +// public String toUpdateUser(User user, Model model, Integer id) { +// +// User user1 = userService.findById(user); +// model.addAttribute("user1", user1); +// +// return "updateUser"; +// } +// +// @RequestMapping("/updateUser") +// public String updateUser(User user, Model model) { +// if (userService.updateUser(user)>0) { +// +// return "redirect:/user/findAllUser"; +// } else { +// +// model.addAttribute("errorMessage", "修改错误"); +// return "error"; +// } +// } + } diff --git a/src/main/java/com/sixteam/irs/entity/Resume.java b/src/main/java/com/sixteam/irs/entity/Resume.java index ca95565fd8e27df8d09cc9e0a8af4f9365ec30d4..589ebaa4f44f618a75ba530b9329b64e0e18aaef 100644 --- a/src/main/java/com/sixteam/irs/entity/Resume.java +++ b/src/main/java/com/sixteam/irs/entity/Resume.java @@ -12,6 +12,9 @@ public class Resume { private String reSelfEvaluation; private String reJobIntention; + //连接中间表的状态 + private String srStatus; + @Override public String toString() { return "Resume{" + diff --git a/src/main/java/com/sixteam/irs/entity/Station.java b/src/main/java/com/sixteam/irs/entity/Station.java index 109da83a9e62783948dfae1d9b27a3e4a29d646f..2dc352fce2e7bddd0f281d9b1ee6b3af868cfd8d 100644 --- a/src/main/java/com/sixteam/irs/entity/Station.java +++ b/src/main/java/com/sixteam/irs/entity/Station.java @@ -1,5 +1,7 @@ package com.sixteam.irs.entity; +import java.util.List; + public class Station { private String sId; @@ -13,20 +15,9 @@ public class Station { private String sSubsidy;//生活补助 private String sGold;//五险一金 - public Station() { - } + private Enterprise enterprise; - public Station(String sId, String sName, String sWages, String sWork, String sDepartment, String sNumber, String sEducation, String sWorkdays, String sSubsidy, String sGold) { - this.sId = sId; - this.sName = sName; - this.sWages = sWages; - this.sWork = sWork; - this.sDepartment = sDepartment; - this.sNumber = sNumber; - this.sEducation = sEducation; - this.sWorkdays = sWorkdays; - this.sSubsidy = sSubsidy; - this.sGold = sGold; + public Station() { } public String getsId() { @@ -109,6 +100,14 @@ public class Station { this.sGold = sGold; } + public Enterprise getEnterprise() { + return enterprise; + } + + public void setEnterprise(Enterprise enterprise) { + this.enterprise = enterprise; + } + @Override public String toString() { return "Station{" + @@ -122,6 +121,7 @@ public class Station { ", sWorkdays='" + sWorkdays + '\'' + ", sSubsidy='" + sSubsidy + '\'' + ", sGold='" + sGold + '\'' + + ", enterprise=" + enterprise + '}'; } } diff --git a/src/main/java/com/sixteam/irs/entity/User.java b/src/main/java/com/sixteam/irs/entity/User.java index e0ae7c82bc08f3cce867b83916c9652707fde720..dae98ce29eec7ffd0d4c22d01b01e00e62664cbf 100644 --- a/src/main/java/com/sixteam/irs/entity/User.java +++ b/src/main/java/com/sixteam/irs/entity/User.java @@ -9,7 +9,7 @@ public class User { private String uPhone;//电话 private String uPassword;//密码 private String uSex;//性别 - private Integer uBirthDate;//生日 + private String uBirthDate;//生日 private List roleList;//(平时为空,在管理用户角色时嵌套查询role->Jurisdiction) private List jurisdictionRoleList;//(查询用户时应嵌套查询此列,用于拦截) @@ -22,7 +22,7 @@ public class User { ", uPhone='" + uPhone + '\'' + ", uPassword='" + uPassword + '\'' + ", uSex='" + uSex + '\'' + - ", uBirthDate=" + uBirthDate + + ", uBirthDate='" + uBirthDate + '\'' + ", roleList=" + roleList + ", jurisdictionRoleList=" + jurisdictionRoleList + '}'; @@ -32,7 +32,7 @@ public class User { super(); } - public User(String uId, String uName, String uEmail, String uPhone, String uPassword, String uSex, Integer uBirthDate, List roleList, List jurisdictionRoleList) { + public User(String uId, String uName, String uEmail, String uPhone, String uPassword, String uSex, String uBirthDate, List roleList, List jurisdictionRoleList) { this.uId = uId; this.uName = uName; this.uEmail = uEmail; @@ -92,11 +92,11 @@ public class User { this.uSex = uSex; } - public Integer getuBirthDate() { + public String getuBirthDate() { return uBirthDate; } - public void setuBirthDate(Integer uBirthDate) { + public void setuBirthDate(String uBirthDate) { this.uBirthDate = uBirthDate; } diff --git a/src/main/java/com/sixteam/irs/mapper/EncyclopediaMapper.java b/src/main/java/com/sixteam/irs/mapper/EncyclopediaMapper.java index 74b23f4897b9eaa57bea390745a3c37e7ae78d80..54cc63b5077e6792fe84b015ba9f7bcf7e713500 100644 --- a/src/main/java/com/sixteam/irs/mapper/EncyclopediaMapper.java +++ b/src/main/java/com/sixteam/irs/mapper/EncyclopediaMapper.java @@ -10,16 +10,16 @@ import java.util.List; @Mapper public interface EncyclopediaMapper { - @Insert("INSERT INTO t_enc VALUES (NULL, #{encTitle}, #{encContent}, NULL)") + int add(Encyclopedia encyclopedia); - @Delete("delete from t_enc where encId = #{encId}") + int del(Integer encId); - @Update("update t_enc set encTitle = #{encTitle}, encContext = #{encContext}, time =#{encTime} where encId = #{encId} ") + int update(Encyclopedia encyclopedia); - @Select("select * from t_enc where encId = #{encId}") + Encyclopedia getById(Integer encId); - @Select("select * from t_enc") + List getAllEncyclopedias(); - @Select("select * from t_enc where encTitle like '%' #{encTitle} '%' ") + List getEncyclopediaByLike(String encTitle); } diff --git a/src/main/java/com/sixteam/irs/mapper/JurisdictionRoleMapper.java b/src/main/java/com/sixteam/irs/mapper/JurisdictionRoleMapper.java index 84355b736301c80f5a095e854714bd6310dcab8a..5ceda2769f9fd4d7ead1af6f6ed525cf118feace 100644 --- a/src/main/java/com/sixteam/irs/mapper/JurisdictionRoleMapper.java +++ b/src/main/java/com/sixteam/irs/mapper/JurisdictionRoleMapper.java @@ -1,10 +1,13 @@ package com.sixteam.irs.mapper; +import com.sixteam.irs.entity.JurisdictionRole; import org.apache.ibatis.annotations.Mapper; import org.springframework.stereotype.Repository; +import java.util.List; + @Mapper @Repository public interface JurisdictionRoleMapper { - + List findAll(); } diff --git a/src/main/java/com/sixteam/irs/mapper/ResumeMapper.java b/src/main/java/com/sixteam/irs/mapper/ResumeMapper.java index ed451bcc61ef7c7f39345156a2a3c0e10370c473..e3c8e8f96ea8752c1045492e3561fb1cf39cdf76 100644 --- a/src/main/java/com/sixteam/irs/mapper/ResumeMapper.java +++ b/src/main/java/com/sixteam/irs/mapper/ResumeMapper.java @@ -10,4 +10,5 @@ import java.util.List; @Repository public interface ResumeMapper { List findAllResume(); + List findResumeByUid(String uId); } diff --git a/src/main/java/com/sixteam/irs/mapper/RoleMapper.java b/src/main/java/com/sixteam/irs/mapper/RoleMapper.java index 23942a7a981443af6b777dec2350ef2f804c318a..7cf17668489975ca7f543bebbacf0da9626f0a39 100644 --- a/src/main/java/com/sixteam/irs/mapper/RoleMapper.java +++ b/src/main/java/com/sixteam/irs/mapper/RoleMapper.java @@ -1,9 +1,13 @@ package com.sixteam.irs.mapper; +import com.sixteam.irs.entity.Role; import org.apache.ibatis.annotations.Mapper; import org.springframework.stereotype.Repository; +import java.util.List; + @Mapper @Repository public interface RoleMapper { + List findAll(); } diff --git a/src/main/java/com/sixteam/irs/mapper/StationMapper.java b/src/main/java/com/sixteam/irs/mapper/StationMapper.java index 52d5bcad3539dd7119088874174c7497660358e8..d6a6fba1cd86396cf25909a0c9de8538a28ef024 100644 --- a/src/main/java/com/sixteam/irs/mapper/StationMapper.java +++ b/src/main/java/com/sixteam/irs/mapper/StationMapper.java @@ -2,15 +2,27 @@ package com.sixteam.irs.mapper; import com.sixteam.irs.entity.Station; import org.apache.ibatis.annotations.*; +import org.springframework.stereotype.Repository; import java.util.List; @Mapper +@Repository public interface StationMapper { + + //查询岗位 @Select("select * from irs_station") List getAllStation(); + //添加 @Insert("INSERT INTO irs_station(s_id,s_name,s_wages,s_work,s_department,s_number,s_education,s_workdays,s_subsidy,s_gold)" + - " VALUES ('2','软件测试','6000-10000元/月','测试代码运维','测试部门','5','硕士','5天/周','有生活补助','有五险一金')") + " VALUES (#{sId},#{sName},#{sWages},#{sWork},#{sDepartment},#{sNumber},#{sEducation},#{sWorkdays},#{sSubsidy},#{sGold})") int addStation(Station station); + @Update("update irs_station set s_name=#{sName},s_wages=#{sWages},s_work=#{sWork},s_department=#{sDepartment},s_number=#{sNumber},s_education=#{sEducation},s_workdays=#{sWorkdays},s_subsidy=#{sSubsidy},s_gold=#{sGold} where s_id = 1") int updateStation(Station station); + //查询岗位且企业 + List getAllSAE(); + //模糊查岗位名 + List findStationByName(String stationName); + //通过企业id查询企业的岗位 + List findStationByEId(String eid); } diff --git a/src/main/java/com/sixteam/irs/mapper/UserMapper.java b/src/main/java/com/sixteam/irs/mapper/UserMapper.java index 9d4a58a378d823ef1b0381c3b991efdee8df6d85..d444658aee5e26de2d1939c6b09a8009e8928f74 100644 --- a/src/main/java/com/sixteam/irs/mapper/UserMapper.java +++ b/src/main/java/com/sixteam/irs/mapper/UserMapper.java @@ -14,11 +14,13 @@ public interface UserMapper { List findUserByName(User user); - User findById(User user); + User findById(String id); int addUser(User user); - int delUser(User user); + int delUser(String id); int updateUser(User user); + + User loginUser(User user); } diff --git a/src/main/java/com/sixteam/irs/service/Impl/JurisdictionRoleServiceImpl.java b/src/main/java/com/sixteam/irs/service/Impl/JurisdictionRoleServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..9cf49d4e0eacc394bf66f6a1a54afa8598315334 --- /dev/null +++ b/src/main/java/com/sixteam/irs/service/Impl/JurisdictionRoleServiceImpl.java @@ -0,0 +1,21 @@ +package com.sixteam.irs.service.Impl; + + +import com.sixteam.irs.entity.JurisdictionRole; +import com.sixteam.irs.mapper.JurisdictionRoleMapper; +import com.sixteam.irs.service.JurisdictionRoleService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class JurisdictionRoleServiceImpl implements JurisdictionRoleService { + @Autowired + private JurisdictionRoleMapper jurisdictionRoleMapper; + + public List findAll(){ + return jurisdictionRoleMapper.findAll(); + + } +} diff --git a/src/main/java/com/sixteam/irs/service/Impl/ResumeServiceImpl.java b/src/main/java/com/sixteam/irs/service/Impl/ResumeServiceImpl.java index 3bbfd835bc3c8a6385c2927f47b5bacec9ae1db9..c27fbbcfe5fe4119a56bf7d4746d9136cf91bcf0 100644 --- a/src/main/java/com/sixteam/irs/service/Impl/ResumeServiceImpl.java +++ b/src/main/java/com/sixteam/irs/service/Impl/ResumeServiceImpl.java @@ -18,4 +18,10 @@ public class ResumeServiceImpl implements ResumeService { public List findAllResume() { return mapper.findAllResume(); } + + @Override + public List findResumeByUid(String getuId) { + return mapper.findResumeByUid(getuId); + + } } diff --git a/src/main/java/com/sixteam/irs/service/Impl/RoleServiceImpl.java b/src/main/java/com/sixteam/irs/service/Impl/RoleServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..b8e9ddeb1a2c74d1df1adde808733f98935e1256 --- /dev/null +++ b/src/main/java/com/sixteam/irs/service/Impl/RoleServiceImpl.java @@ -0,0 +1,19 @@ +package com.sixteam.irs.service.Impl; + +import com.sixteam.irs.entity.Role; +import com.sixteam.irs.mapper.RoleMapper; +import com.sixteam.irs.service.RoleService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class RoleServiceImpl implements RoleService { + @Autowired + private RoleMapper roleMapper; + + public List findAll() { + return roleMapper.findAll(); + } +} diff --git a/src/main/java/com/sixteam/irs/service/Impl/StationServiceImpl.java b/src/main/java/com/sixteam/irs/service/Impl/StationServiceImpl.java index 1bd6a7b269487111dc789cb5c2f8c8799efe11b1..6c060746a60fb4366b4d1df4f69d4e8065d5034b 100644 --- a/src/main/java/com/sixteam/irs/service/Impl/StationServiceImpl.java +++ b/src/main/java/com/sixteam/irs/service/Impl/StationServiceImpl.java @@ -28,4 +28,19 @@ public class StationServiceImpl implements StationService { public int updateStation(Station station) { return stationMapper.updateStation(station); } + + @Override + public List getAllSAE() { + return stationMapper.getAllSAE(); + } + //模糊查岗位名 + @Override + public List findStationByName(String stationName) { + return stationMapper.findStationByName(stationName); + } + //通过企业id查询企业的岗位 + @Override + public List findStationByEId(String eid) { + return stationMapper.findStationByEId(eid); + } } diff --git a/src/main/java/com/sixteam/irs/service/Impl/UserServiceImpl.java b/src/main/java/com/sixteam/irs/service/Impl/UserServiceImpl.java index 8d9a3592233321f68d5876ef058ee60dbc4e0385..37909b185fb107c39598c0a56e04a9115e868cfd 100644 --- a/src/main/java/com/sixteam/irs/service/Impl/UserServiceImpl.java +++ b/src/main/java/com/sixteam/irs/service/Impl/UserServiceImpl.java @@ -27,8 +27,8 @@ public class UserServiceImpl implements UserService { } @Override - public User findById(User user) { - return userMapper.findById(user); + public User findById(String id) { + return userMapper.findById(id); } @Override @@ -38,8 +38,8 @@ public class UserServiceImpl implements UserService { } @Override - public int delUser(User user) { - return userMapper.delUser(user); + public int delUser(String id) { + return userMapper.delUser(id); } @Override @@ -47,5 +47,8 @@ public class UserServiceImpl implements UserService { return userMapper.updateUser(user); } + @Override + public User loginUser(User user) { return userMapper.loginUser(user); } + } diff --git a/src/main/java/com/sixteam/irs/service/JurisdictionRoleService.java b/src/main/java/com/sixteam/irs/service/JurisdictionRoleService.java new file mode 100644 index 0000000000000000000000000000000000000000..0902348627400a07dbdba18d22a84e3808133732 --- /dev/null +++ b/src/main/java/com/sixteam/irs/service/JurisdictionRoleService.java @@ -0,0 +1,9 @@ +package com.sixteam.irs.service; + +import com.sixteam.irs.entity.JurisdictionRole; + +import java.util.List; + +public interface JurisdictionRoleService { + List findAll(); +} diff --git a/src/main/java/com/sixteam/irs/service/ResumeService.java b/src/main/java/com/sixteam/irs/service/ResumeService.java index 640f53e4b8cc5d15048280c5489c7afe302e669b..fe86bd60c39eb06d4c0afe8396a5e3c077d0e593 100644 --- a/src/main/java/com/sixteam/irs/service/ResumeService.java +++ b/src/main/java/com/sixteam/irs/service/ResumeService.java @@ -7,4 +7,6 @@ import java.util.List; public interface ResumeService { public List findAllResume(); + + List findResumeByUid(String getuId); } diff --git a/src/main/java/com/sixteam/irs/service/RoleService.java b/src/main/java/com/sixteam/irs/service/RoleService.java new file mode 100644 index 0000000000000000000000000000000000000000..252855e99652a866a781dbd37fa67f504777287c --- /dev/null +++ b/src/main/java/com/sixteam/irs/service/RoleService.java @@ -0,0 +1,9 @@ +package com.sixteam.irs.service; + +import com.sixteam.irs.entity.Role; + +import java.util.List; + +public interface RoleService { + List findAll(); +} diff --git a/src/main/java/com/sixteam/irs/service/StationService.java b/src/main/java/com/sixteam/irs/service/StationService.java index 1e6adbcc76f48dd208da6893f5ce7dee1c15745d..1e3bfb71706b455be6a50fae391f6a009c0d9abc 100644 --- a/src/main/java/com/sixteam/irs/service/StationService.java +++ b/src/main/java/com/sixteam/irs/service/StationService.java @@ -10,4 +10,10 @@ public interface StationService { int addStation(Station station); int updateStation(Station station); + //查岗位和企业 + List getAllSAE(); + //模糊查岗位 + List findStationByName(String stationName); + //通过企业id查询企业的岗位 + List findStationByEId(String eid); } diff --git a/src/main/java/com/sixteam/irs/service/UserService.java b/src/main/java/com/sixteam/irs/service/UserService.java index a5387752fc6ad0a4c04a6893202b00ec410d2215..d4d2f8d036560999304a26688e69d5d26744955e 100644 --- a/src/main/java/com/sixteam/irs/service/UserService.java +++ b/src/main/java/com/sixteam/irs/service/UserService.java @@ -11,11 +11,13 @@ public interface UserService { List findUserByName(User user); - User findById(User user); + User findById(String id); int addUser(User user); - int delUser(User user); + int delUser(String id); int updateUser(User user); + + User loginUser(User user); } diff --git a/src/main/java/com/sixteam/irs/sql/shujuku b/src/main/java/com/sixteam/irs/sql/shujuku index cb3328c2f3e56e6729f3ae5569524054aec8d5bb..ff83ddcfb286a0a01978ab08e9d35a3bebabd6d1 100644 --- a/src/main/java/com/sixteam/irs/sql/shujuku +++ b/src/main/java/com/sixteam/irs/sql/shujuku @@ -364,4 +364,111 @@ CREATE TABLE `irs_user_role` ( -- Records of irs_user_role -- ---------------------------- +/* +Navicat MySQL Data Transfer + +Source Server : irs +Source Server Version : 50540 +Source Host : 49.232.158.16:3306 +Source Database : irs + +Target Server Type : MYSQL +Target Server Version : 50540 +File Encoding : 65001 + +Date: 2022-08-17 19:08:05 +*/ + +SET FOREIGN_KEY_CHECKS=0; + +-- ---------------------------- +-- Table structure for `irs_enterprise_role` +-- ---------------------------- +DROP TABLE IF EXISTS `irs_enterprise_role`; +CREATE TABLE `irs_enterprise_role` ( + `er_id` varchar(64) NOT NULL, + `r_id` varchar(64) DEFAULT NULL, + `e_id` varchar(64) DEFAULT NULL, + PRIMARY KEY (`er_id`), + KEY `FK_er_r` (`r_id`), + KEY `FK_er_e` (`e_id`), + CONSTRAINT `FK_er_e` FOREIGN KEY (`e_id`) REFERENCES `irs_enterprise` (`e_id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `FK_er_r` FOREIGN KEY (`r_id`) REFERENCES `irs_role` (`r_id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- ---------------------------- +-- Records of irs_enterprise_role +-- ---------------------------- + + + +/* +Navicat MySQL Data Transfer + +Source Server : irs +Source Server Version : 50540 +Source Host : 49.232.158.16:3306 +Source Database : irs + +Target Server Type : MYSQL +Target Server Version : 50540 +File Encoding : 65001 + +Date: 2022-08-17 19:09:15 +*/ + +SET FOREIGN_KEY_CHECKS=0; + +-- ---------------------------- +-- Table structure for `irs_user_student` +-- ---------------------------- +DROP TABLE IF EXISTS `irs_user_student`; +CREATE TABLE `irs_user_student` ( + `us_id` varchar(64) NOT NULL, + `st_id` varchar(64) DEFAULT NULL, + `u_id` varchar(64) DEFAULT NULL, + PRIMARY KEY (`us_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +-- ---------------------------- +-- Records of irs_user_student +-- ---------------------------- +INSERT INTO `irs_user_student` VALUES ('1', '01', '5'); + + +/* +Navicat MySQL Data Transfer + +Source Server : irs +Source Server Version : 50540 +Source Host : 49.232.158.16:3306 +Source Database : irs + +Target Server Type : MYSQL +Target Server Version : 50540 +File Encoding : 65001 + +Date: 2022-08-17 19:08:55 +*/ + +SET FOREIGN_KEY_CHECKS=0; + +-- ---------------------------- +-- Table structure for `irs_student` +-- ---------------------------- +DROP TABLE IF EXISTS `irs_student`; +CREATE TABLE `irs_student` ( + `st_id` varchar(64) NOT NULL, + `st_work_status` varchar(64) DEFAULT NULL, + `st_employment_status` varchar(64) DEFAULT NULL, + `st_school` varchar(64) DEFAULT NULL, + `st_major` varchar(64) DEFAULT NULL, + `u_id` varchar(64) DEFAULT NULL, + `st_graduation_year` varchar(64) DEFAULT NULL, + PRIMARY KEY (`st_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- ---------------------------- +-- Records of irs_student +-- ---------------------------- +INSERT INTO `irs_student` VALUES ('01', '待入职', '随便看看', '八厕大学', '奥里给专业', '5', '2022'); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index bfbf38d44c7b969156bbff5ac020d8630645cc8c..986aa49e6e1bf98891c6cb533d08b56337d67917 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -4,7 +4,7 @@ spring: datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://49.232.158.16:3306/irs?serverTimezone=UTC - username: irsFWQ + username: irsHCD password: 666 thymeleaf: @@ -16,6 +16,8 @@ spring: mybatis: configuration: map-underscore-to-camel-case: true - + #�����շ�ʽ mapper-locations: classpath:mapper/*.xml type-aliases-package: com.sixteam.irs.entity + + diff --git a/src/main/resources/com/sixteam/irs/mapper/EncyclopediaMapper.xml b/src/main/resources/com/sixteam/irs/mapper/EncyclopediaMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..cb927763c3aeb0e9d6850e0f4688d42975f576dd --- /dev/null +++ b/src/main/resources/com/sixteam/irs/mapper/EncyclopediaMapper.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + insert into irs_encyclopedia (enc_id,enc_title,enc_context,enc_time) + values (#{encId},#{encTitle},#{encContext},#{encTime}) + + + + delete from irs_encyclopedia where enc_id = #{encId} + + + + update irs_encyclopedia + + enc_title = #{encTitle}, + enc_context = #{encContext}, + enc_time = #{encTime}, + + where enc_id = #{encId} + + \ No newline at end of file diff --git a/src/main/resources/com/sixteam/irs/mapper/JurisdictionRoleMapper.xml b/src/main/resources/com/sixteam/irs/mapper/JurisdictionRoleMapper.xml index bdba165758df4858504888ca6bfe12ff3c978a36..a65076815aea39587e7cdf5f259ebc63251a1538 100644 --- a/src/main/resources/com/sixteam/irs/mapper/JurisdictionRoleMapper.xml +++ b/src/main/resources/com/sixteam/irs/mapper/JurisdictionRoleMapper.xml @@ -1,10 +1,21 @@ - + + + + + - \ No newline at end of file + + + + diff --git a/src/main/resources/com/sixteam/irs/mapper/ResumeMapper.xml b/src/main/resources/com/sixteam/irs/mapper/ResumeMapper.xml index 4ef37db2df84f33779cc602a9a2a0d1febe1adaa..70a046355a0013440cb485eb56e7564173448545 100644 --- a/src/main/resources/com/sixteam/irs/mapper/ResumeMapper.xml +++ b/src/main/resources/com/sixteam/irs/mapper/ResumeMapper.xml @@ -2,7 +2,7 @@ - + @@ -13,7 +13,11 @@ - select * from irs_resume + \ No newline at end of file diff --git a/src/main/resources/com/sixteam/irs/mapper/RoleMapper.xml b/src/main/resources/com/sixteam/irs/mapper/RoleMapper.xml index c98d1d0b3bda7aae7c09be861af012367f16aa34..c408bb3ee1d14f0c777cd802874d94bf3099c109 100644 --- a/src/main/resources/com/sixteam/irs/mapper/RoleMapper.xml +++ b/src/main/resources/com/sixteam/irs/mapper/RoleMapper.xml @@ -1,10 +1,22 @@ - + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/com/sixteam/irs/mapper/StationMapper.xml b/src/main/resources/com/sixteam/irs/mapper/StationMapper.xml index 5d48c0e0a890de1855a1d0d927590bf099b161b0..bd67e113556b9093efe92f7fa9734582ad2e7b91 100644 --- a/src/main/resources/com/sixteam/irs/mapper/StationMapper.xml +++ b/src/main/resources/com/sixteam/irs/mapper/StationMapper.xml @@ -12,5 +12,38 @@ + + + + + + + + + + + + + + + + diff --git a/src/main/resources/com/sixteam/irs/mapper/UserMapper.xml b/src/main/resources/com/sixteam/irs/mapper/UserMapper.xml index 7d10075a711ab6661ababd8318b1d4ad2a0c0bda..db767ac10a5b547ba4bf939543c8120fb4cb1f5a 100644 --- a/src/main/resources/com/sixteam/irs/mapper/UserMapper.xml +++ b/src/main/resources/com/sixteam/irs/mapper/UserMapper.xml @@ -4,14 +4,33 @@ - + + + + + + + + + + + + + + - insert into irs_user (u_id,u_name,u_eamil,u_phone,u_password,u_sex,u_birth_date) + insert into irs_user (u_id,u_name,u_email,u_phone,u_password,u_sex,u_birth_date) values (#{uId},#{uName},#{uEmail},#{uPhone},#{uPassword},#{uSex},#{uBirthDate}); - + delete from irs_user where u_id = #{uId} @@ -35,7 +59,7 @@ update irs_user u_name = #{uName}, - u_eamil = #{uEmail}, + u_email = #{uEmail}, u_phone = #{uPhone}, u_password = #{uPassword}, u_sex = #{uSex}, @@ -43,4 +67,7 @@ where u_id = #{uId} + \ No newline at end of file diff --git "a/src/main/resources/templates/test/admin/\347\256\241\347\220\206\345\221\230\351\246\226\351\241\265.html" "b/src/main/resources/templates/test/admin/\347\256\241\347\220\206\345\221\230\351\246\226\351\241\265.html" new file mode 100644 index 0000000000000000000000000000000000000000..86c116ab1b982aa280d52a4bb0b21cf675840e0d --- /dev/null +++ "b/src/main/resources/templates/test/admin/\347\256\241\347\220\206\345\221\230\351\246\226\351\241\265.html" @@ -0,0 +1,21 @@ + + + + + 管理员首页 + + +

管理员首页

+

功能列表:

+
    +

    权限管理系统模块

    +
  • 用户管理
  • 这里可以查看用户的基础信息,用户拥有的角色,以及角色拥有的权限,可以管理用户,以及增删用户的角色

    +
  • 角色管理
  • 这里可以查看角色基础信息,以及角色拥有的权限,可以管理角色,以及开启禁用某角色的某权限

    + + +

    管理员业务模块

    +
  • 企业管理
  • +
  • 学员管理
  • +
+ + \ No newline at end of file diff --git a/src/main/resources/templates/test/bb/indexuser.html b/src/main/resources/templates/test/bb/indexuser.html new file mode 100644 index 0000000000000000000000000000000000000000..334fe881fe477d3264fd4a59c9377b1b5869be64 --- /dev/null +++ b/src/main/resources/templates/test/bb/indexuser.html @@ -0,0 +1,14 @@ + + + + + Title + + +
+ 电话/邮箱:
+ 密码:
+ +
+ + \ No newline at end of file diff --git a/src/main/resources/templates/test/bb/loginUser1.html b/src/main/resources/templates/test/bb/loginUser1.html new file mode 100644 index 0000000000000000000000000000000000000000..c20659f15c15ac6e3309aa966bc3e22c1f66d5ad --- /dev/null +++ b/src/main/resources/templates/test/bb/loginUser1.html @@ -0,0 +1,10 @@ + + + + + Title + + +{{admin}}欢迎您 + + \ No newline at end of file diff --git a/src/main/resources/templates/test/bb/message.html b/src/main/resources/templates/test/bb/message.html new file mode 100644 index 0000000000000000000000000000000000000000..96c246df3c9fb6cb67c109785267626ed74e8995 --- /dev/null +++ b/src/main/resources/templates/test/bb/message.html @@ -0,0 +1,10 @@ + + + + + Title + + +{{msg}} + + \ No newline at end of file diff --git a/src/main/resources/templates/test/bb/updateUser.html b/src/main/resources/templates/test/bb/updateUser.html new file mode 100644 index 0000000000000000000000000000000000000000..e2d3eba0ec3a403ae37b2d8b47bc45459e1645e9 --- /dev/null +++ b/src/main/resources/templates/test/bb/updateUser.html @@ -0,0 +1,18 @@ + + + + + Title + + +
+ 用户姓名:
+ 用户邮箱:
+ 用户电话:
+ 用户密码:
+ 用户性别:
+ 用户出生年月:
+ +
+ + \ No newline at end of file diff --git "a/src/main/resources/templates/test/encyclopedia/\344\277\256\346\224\271\345\205\254\345\221\212\351\241\265\351\235\242.html" "b/src/main/resources/templates/test/encyclopedia/\344\277\256\346\224\271\345\205\254\345\221\212\351\241\265\351\235\242.html" new file mode 100644 index 0000000000000000000000000000000000000000..233b1da777c4fb3a0be5e184d329b1c064ed33d7 --- /dev/null +++ "b/src/main/resources/templates/test/encyclopedia/\344\277\256\346\224\271\345\205\254\345\221\212\351\241\265\351\235\242.html" @@ -0,0 +1,19 @@ + + + + + Title + + +

修改公告页面

+ +
+ + 标题:
+ 内容:
+ 时间:
+ +
+ + + \ No newline at end of file diff --git "a/src/main/resources/templates/test/encyclopedia/\346\267\273\345\212\240\345\205\254\345\221\212\351\241\265\351\235\242.html" "b/src/main/resources/templates/test/encyclopedia/\346\267\273\345\212\240\345\205\254\345\221\212\351\241\265\351\235\242.html" new file mode 100644 index 0000000000000000000000000000000000000000..3d0c57a82115209b9e6c951017f0a44f9a67b79c --- /dev/null +++ "b/src/main/resources/templates/test/encyclopedia/\346\267\273\345\212\240\345\205\254\345\221\212\351\241\265\351\235\242.html" @@ -0,0 +1,17 @@ + + + + + Title + + +

添加公告

+
+ Id:
+ 标题:
+ 内容:
+ 时间:
+ +
+ + \ No newline at end of file diff --git "a/src/main/resources/templates/test/encyclopedia/\350\201\214\345\234\272\347\231\276\347\247\221\351\241\265\351\235\242.html" "b/src/main/resources/templates/test/encyclopedia/\350\201\214\345\234\272\347\231\276\347\247\221\351\241\265\351\235\242.html" new file mode 100644 index 0000000000000000000000000000000000000000..34c33476f6cfd04f0089166ad0981ad6bf91269e --- /dev/null +++ "b/src/main/resources/templates/test/encyclopedia/\350\201\214\345\234\272\347\231\276\347\247\221\351\241\265\351\235\242.html" @@ -0,0 +1,39 @@ + + + + + 职场百科 + + +

这个是职场百科(公告)列表页面

+ + 添加公告 + + +
+ 查询:
+ +
+ + + + + + + + + + + + + + + + +
id标题内容时间操作
id(遍历的值)标题(遍历的值)内容(遍历的值)时间(遍历的值) + 删除 + 修改 +
+ + + \ No newline at end of file diff --git "a/src/main/resources/templates/test/enterprise/\344\274\201\344\270\232\345\210\227\350\241\250\351\241\265\351\235\242.html" "b/src/main/resources/templates/test/enterprise/\344\274\201\344\270\232\345\210\227\350\241\250\351\241\265\351\235\242.html" new file mode 100644 index 0000000000000000000000000000000000000000..c6bd1f727eff5438a73d518e2f4473379da23870 --- /dev/null +++ "b/src/main/resources/templates/test/enterprise/\344\274\201\344\270\232\345\210\227\350\241\250\351\241\265\351\235\242.html" @@ -0,0 +1,37 @@ + + + + + Title + + +

企业列表页面

+ + 添加企业 + + + + + + + + + + + + + + + + + + + + +
id企业名企业介绍企业成立时间企业类型企业创始人操作
id(遍历的值)企业名(遍历的值)企业介绍(遍历的值)企业成立时间(遍历的值)企业类型(遍历的值)企业创始人(遍历的值) + 删除 + 修改 +
+ + + \ No newline at end of file diff --git "a/src/main/resources/templates/test/enterprise/\344\277\256\346\224\271\344\274\201\344\270\232\351\241\265\351\235\242.html" "b/src/main/resources/templates/test/enterprise/\344\277\256\346\224\271\344\274\201\344\270\232\351\241\265\351\235\242.html" new file mode 100644 index 0000000000000000000000000000000000000000..3b753d832eed59876fa7495da090a3329244ec5b --- /dev/null +++ "b/src/main/resources/templates/test/enterprise/\344\277\256\346\224\271\344\274\201\344\270\232\351\241\265\351\235\242.html" @@ -0,0 +1,21 @@ + + + + + Title + + +

修改企业页面

+ +
+ + 公司名:
+ 公司介绍:
+ 公司起始时间:
+ 公司类型:
+ 公司创始人:
+ +
+ + + \ No newline at end of file diff --git "a/src/main/resources/templates/test/enterprise/\346\267\273\345\212\240\344\274\201\344\270\232\351\241\265\351\235\242.html" "b/src/main/resources/templates/test/enterprise/\346\267\273\345\212\240\344\274\201\344\270\232\351\241\265\351\235\242.html" new file mode 100644 index 0000000000000000000000000000000000000000..20a2db1e7bc7f2e8e041301d0442257f39a2979d --- /dev/null +++ "b/src/main/resources/templates/test/enterprise/\346\267\273\345\212\240\344\274\201\344\270\232\351\241\265\351\235\242.html" @@ -0,0 +1,21 @@ + + + + + Title + + +

添加企业页面

+ +
+ + 公司名:
+ 公司介绍:
+ 公司起始时间:
+ 公司类型:
+ 公司创始人:
+ +
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/test/index.html b/src/main/resources/templates/test/index.html index bfd132e01df27df4d4c708224e813246fd24ae30..6abb7794b5f905d7ff2690ead27e392a41ac1504 100644 --- a/src/main/resources/templates/test/index.html +++ b/src/main/resources/templates/test/index.html @@ -1,10 +1,15 @@ - + Title

首页

+ 职场百科列表 + 企业列表 + 权限列表 +去管理员页面 +去用户页面 \ No newline at end of file diff --git "a/src/main/resources/templates/test/jurisdiction/\346\235\203\351\231\220\345\210\227\350\241\250\351\241\265\351\235\242.html" "b/src/main/resources/templates/test/jurisdiction/\346\235\203\351\231\220\345\210\227\350\241\250\351\241\265\351\235\242.html" new file mode 100644 index 0000000000000000000000000000000000000000..635a9553df25506d092120dadfbff2378be0a77f --- /dev/null +++ "b/src/main/resources/templates/test/jurisdiction/\346\235\203\351\231\220\345\210\227\350\241\250\351\241\265\351\235\242.html" @@ -0,0 +1,27 @@ + + + + + Title + + +

权限列表页面

+ + +
+ 查询:
+ +
+ + + + + + + + + + +
id权限名
id(遍历的值)权限名(遍历的值)
+ + \ No newline at end of file diff --git "a/src/main/resources/templates/test/resume/\345\255\246\345\221\230\347\256\200\345\216\206\345\210\227\350\241\250.html" "b/src/main/resources/templates/test/resume/\345\255\246\345\221\230\347\256\200\345\216\206\345\210\227\350\241\250.html" new file mode 100644 index 0000000000000000000000000000000000000000..aeab5ce7c206a748df96755610de6589849e688f --- /dev/null +++ "b/src/main/resources/templates/test/resume/\345\255\246\345\221\230\347\256\200\345\216\206\345\210\227\350\241\250.html" @@ -0,0 +1,20 @@ + + + + + 学员简历列表 + + +

+
+ + 内容 + 操作 + + + + + +
+ + \ No newline at end of file diff --git "a/src/main/resources/templates/test/station/\344\274\201\344\270\232\347\232\204\345\262\227\344\275\215\345\210\227\350\241\250.html" "b/src/main/resources/templates/test/station/\344\274\201\344\270\232\347\232\204\345\262\227\344\275\215\345\210\227\350\241\250.html" new file mode 100644 index 0000000000000000000000000000000000000000..46d0408fbf901a3bd93f5f01e0b3b74eaa4c3fbd --- /dev/null +++ "b/src/main/resources/templates/test/station/\344\274\201\344\270\232\347\232\204\345\262\227\344\275\215\345\210\227\350\241\250.html" @@ -0,0 +1,61 @@ + + + + + 企业的岗位列表 + + +

根据企业显示岗位的所有数据

+

传递ID

+

操作: 删除 + 修改

+
+ + 添加岗位 + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + +
+ + 序号岗位名岗位工资岗位工作部门名岗位所需人数学历要求工作天数生活补助五险一金所属企业操作
+ + + 删除用户 + 修改用户 +
+ + \ No newline at end of file diff --git "a/src/main/resources/templates/test/station/\346\267\273\345\212\240\345\262\227\344\275\215.html" "b/src/main/resources/templates/test/station/\346\267\273\345\212\240\345\262\227\344\275\215.html" new file mode 100644 index 0000000000000000000000000000000000000000..29bb3d27467b62a46aa8e525a3f41f5bdfa36cd3 --- /dev/null +++ "b/src/main/resources/templates/test/station/\346\267\273\345\212\240\345\262\227\344\275\215.html" @@ -0,0 +1,67 @@ + + + + + 添加企业岗位 + + +

添加岗位的页面

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+
+ + + + + \ No newline at end of file diff --git "a/src/main/resources/templates/test/user/\344\277\256\346\224\271\347\224\250\346\210\267.html" "b/src/main/resources/templates/test/user/\344\277\256\346\224\271\347\224\250\346\210\267.html" new file mode 100644 index 0000000000000000000000000000000000000000..9efed07cd5ccb77722a99003ad6d657236241e4a --- /dev/null +++ "b/src/main/resources/templates/test/user/\344\277\256\346\224\271\347\224\250\346\210\267.html" @@ -0,0 +1,56 @@ + + + + + 修改用户 + + +

修改用户页面

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ 用户名: +
+ 邮箱: +
+ 电话: +
+ 密码: +
+ 性别: +
+ 生日: +
+ +
+
+
+ + + + + \ No newline at end of file diff --git "a/src/main/resources/templates/test/user/\345\242\236\345\212\240\347\224\250\346\210\267.html" "b/src/main/resources/templates/test/user/\345\242\236\345\212\240\347\224\250\346\210\267.html" new file mode 100644 index 0000000000000000000000000000000000000000..c47d4d9c7afd9da2013730e98e7ff36ab5ae54d5 --- /dev/null +++ "b/src/main/resources/templates/test/user/\345\242\236\345\212\240\347\224\250\346\210\267.html" @@ -0,0 +1,15 @@ + + + + + 增加用户 + + +

增加用户

+
+

输入用户数据

+

选择用户的角色,暂时不用实现

+ 去添加用户 +
+ + \ No newline at end of file diff --git "a/src/main/resources/templates/test/user/\347\224\250\346\210\267\345\210\227\350\241\250.html" "b/src/main/resources/templates/test/user/\347\224\250\346\210\267\345\210\227\350\241\250.html" new file mode 100644 index 0000000000000000000000000000000000000000..9aff511771cc9c8c8a82d0811dc917041aa4c514 --- /dev/null +++ "b/src/main/resources/templates/test/user/\347\224\250\346\210\267\345\210\227\350\241\250.html" @@ -0,0 +1,88 @@ + + + + + 用户列表 + + +

这里是用户权限管理的用户列表页

+

这里显示后台带来的用户列表

+ + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + +
    + +
  • 角色1
  • +
  • 角色2
  • +
+ +

这里显示的优先级别为:强制禁用,强制启用,禁用,启用

+
    +
  • 权限1:状态:强制启用
  • +
  • 权限2:状态:未启用
  • +
+ + + +
+ + 姓名邮箱电话性别出生日期角色操作
+ + + + + + + + + + + 删除用户 + 修改用户 + 添删用户的角色 +
+ + \ No newline at end of file diff --git "a/src/main/resources/templates/test/user/\347\224\250\346\210\267\351\246\226\351\241\265.html" "b/src/main/resources/templates/test/user/\347\224\250\346\210\267\351\246\226\351\241\265.html" new file mode 100644 index 0000000000000000000000000000000000000000..3da8aba09a3076805c8b07ad63a1e08bf1a9532b --- /dev/null +++ "b/src/main/resources/templates/test/user/\347\224\250\346\210\267\351\246\226\351\241\265.html" @@ -0,0 +1,17 @@ + + + + + 用户首页 + + +

用户首页

+ 岗位列表 + + + 作为企业查看自己的岗位列表 + 作为企业查看自己的岗位列表 + 作为企业查看自己的岗位列表作为企业查看自己的岗位列表 + + + \ No newline at end of file diff --git "a/src/main/resources/templates/test/\351\224\231\350\257\257\351\241\265\351\235\242.html" "b/src/main/resources/templates/test/\351\224\231\350\257\257\351\241\265\351\235\242.html" new file mode 100644 index 0000000000000000000000000000000000000000..e8018bda1697c7e83c4404de5a567436c8bfb1da --- /dev/null +++ "b/src/main/resources/templates/test/\351\224\231\350\257\257\351\241\265\351\235\242.html" @@ -0,0 +1,10 @@ + + + + + Title + + +

错误信息

+ + \ No newline at end of file