源码获取:俺的博客首页 "资源" 里下载!
项目介绍
基于SpringBoot Vue的就业信息管理系统
角色:管理员、用户
前台功能:进入系统可以实现首页,招聘信息,交流论坛,公告资讯,个人中心,后台管理等功能进行操作。
后台由管理员,学生,企业和导师,主要功能包括首页,个人中心,学生管理,导师管理,企业管理,招聘信息管理,应聘信息管理,面试邀请管理,就业指导管理,交流论坛,系统管理等。
环境需要
1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。
2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;
3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;
4.数据库:MySql 5.7/8.0版本均可;
5.是否Maven项目:是;
技术栈
后端:SpringBoot+Mybaits
前端:layui+Vue+ELementUI
使用说明
项目运行:
1. 使用Navicat或者其它工具,在mysql中创建对应sql文件名称的数据库,并导入项目的sql文件;
2. 使用IDEA/Eclipse/MyEclipse导入项目,导入成功后请执行maven clean;maven install命令,然后运行;
3. 将项目中application.yml配置文件中的数据库配置改为自己的配置;
4. 运行项目,前台访问地址:
http://localhost:8080/springboote71hf/front/index.html
后台访问地址:
http://localhost:8080/springboote71hf/admin/dist/index.html
管理员用户名密码:abo/abo
学生用户名密码:学生账号1/123456
导师用户名密码:导师账号1/123456
企业用户名密码:企业账号1/123456
用户管理控制层:
@Controller
public class UserController {
@Autowired
UserService userService;
@RequestMapping("/employment/usermanage")
public String index(){
return "system/usermanage/usermanage";
}
@ResponseBody
@RequestMapping("/employment/getallusers")
public CommonResult<List<User>> getAllUsers(User user, @RequestParam("limit") int pageSize, @RequestParam("page") int pageNum){
List<User> result = userService.getAllUsers(user, pageNum, pageSize);
return CommonResult.generateSuccessResult(result.size(), result);
}
@ResponseBody
@RequestMapping("/employment/getuserbyaccount/{userAccount}")
public CommonResult<User> getUserByAccount(@PathVariable("userAccount") String userAccount){
return CommonResult.generateSuccessResult(1, userService.getUserByAccount(userAccount));
}
@ResponseBody
@RequestMapping("/employment/adduser")
public CommonResult<Integer> addUser(User user){
user.setUserId(UUID.randomUUID().toString());
user.setUserPwd(MD5Util.getMD5(user.getUserPwd()));
userService.addUser(user);
return CommonResult.generateSuccessResult(1, 1);
}
@ResponseBody
@RequestMapping("/employment/updateuser")
public CommonResult<Integer> updateUser(User user){
userService.updateUser(user);
return CommonResult.generateSuccessResult(1, 1);
}
@ResponseBody
@RequestMapping("/employment/deluser/{userId}")
public CommonResult<Integer> delInfo(@PathVariable("userId") String userId){
userService.deleteUser(userId);
return CommonResult.generateSuccessResult(1, 1);
}
}
工作信息管理控制层:
@Controller
public class EmploymentInfoController {
@Autowired
EmploymentInfoService employmentInfoService;
@RequestMapping({"/employment/index", "/employment/employmentinfo"})
public String index(){
return "system/employmentinfo/employmentinfo";
}
@ResponseBody
@RequestMapping("/employment/getallinfo")
public CommonResult<List<EmploymentInfo>> getAllInfo(EmploymentInfo employmentInfo, @RequestParam("limit") int pageSize, @RequestParam("page") int pageNum){
List<EmploymentInfo> infoList = employmentInfoService.getAllEmploymentInfo(employmentInfo, pageNum, pageSize);
CommonResult<List<EmploymentInfo>> rtInfoResult = CommonResult.generateSuccessResult(infoList.size(), infoList);
return rtInfoResult;
}
@ResponseBody
@RequestMapping("/employment/getinfo")
public CommonResult<List<EmploymentInfo>> getinfo(EmploymentInfo info, @RequestParam("limit") int pageSize, @RequestParam("page") int pageNum){
List<EmploymentInfo> infoList = employmentInfoService.getEmploymentInfo(info, pageNum, pageSize);
CommonResult<List<EmploymentInfo>> rtInfoResult = CommonResult.generateSuccessResult(infoList.size(), infoList);
return rtInfoResult;
}
@ResponseBody
@RequestMapping("/employment/addinfo")
public CommonResult<Integer> addInfo(EmploymentInfo info){
info.setInformationId(UUID.randomUUID().toString());
employmentInfoService.addEmploymentInfo(info);
return CommonResult.generateSuccessResult(1, 1);
}
@ResponseBody
@RequestMapping("/employment/updateinfo")
public CommonResult<Integer> updateInfo(EmploymentInfo info){
employmentInfoService.updateEmploymentInfo(info);
return CommonResult.generateSuccessResult(1, 1);
}
@ResponseBody
@RequestMapping("/employment/delinfo/{infoId}")
public CommonResult<Integer> delInfo(@PathVariable("infoId") String infoId){
employmentInfoService.deleteEmploymentInfo(infoId);
return CommonResult.generateSuccessResult(1, 1);
}
}
就业统计管理控制层:
@Controller
public class EmploymentStatisticController {
@Autowired
EmploymentInfoService employmentInfoService;
@RequestMapping("/employment/statistic")
public String index(){
return "system/employmentstatistic/employmentstatistic";
}
@ResponseBody
@RequestMapping("/employment/statistic/{fieldName}")
public CommonResult<List<Map<String, String>>> getStatisticData(@PathVariable("fieldName") String fieldName,
@RequestParam("limit") int pageSize, @RequestParam("page") int pageNum){
List<Map<String, String>> statisticResult = employmentInfoService.getStudentCount(fieldName, pageNum, pageSize);
return CommonResult.generateSuccessResult(statisticResult.size(), statisticResult);
}
}
源码获取:俺的博客首页 "资源" 里下载!