IDEA+SpringBoot+mybatis+SSM+layui+Mysql学生就业信息管理系统
一、系统介绍
本系统实现了学生就业信息管理系统,管理端实现了管理员登录、就业信息管理、添加就业信息、编辑就业信息、就业信息统计、用户管理、添加用户、编辑用户
1.环境配置
JDK版本:1.8
Mysql:5.7
二、系统展示
1. 管理员登录
账号:admin 密码:123456
2.就业信息管理
3.添加就业信息
4.编辑就业信息
5.就业信息统计
6.用户管理
7.添加用户
8.编辑用户
三、部分代码
UserMapper.java
package com.bjpowernode.employment.mapper;
import com.bjpowernode.employment.mapper.entity.User;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface UserMapper {
List<User> getAllUsers(User user);
User getUserById(String userId);
User getUserByAccount(String userAccount);
int addUser(User user);
int updateUser(User user);
int deleteUser(String userId);
}
UserController.java
package com.bjpowernode.employment.controller;
import com.bjpowernode.employment.mapper.entity.User;
import com.bjpowernode.employment.service.UserService;
import com.bjpowernode.employment.common.CommonResult;
import com.bjpowernode.employment.util.MD5Util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.List;
import java.util.UUID;
@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);
}
}
User.java
package com.bjpowernode.employment.mapper.entity;
public class User {
private String userId;
private String userAccount;
private String userName;
private String userPwd;
private String userType;
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getUserAccount() {
return userAccount;
}
public void setUserAccount(String userAccount) {
this.userAccount = userAccount;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getUserPwd() {
return userPwd;
}
public void setUserPwd(String userPwd) {
this.userPwd = userPwd;
}
public String getUserType() {
return userType;
}
public void setUserType(String userType) {
this.userType = userType;
}
}
四、其他
获取源码
点击以下链接获取源码。
IDEA+SpringBoot+mybatis+SSM+layui+Mysql学生就业信息管理系统源码
IDEA+springboot+jpa+Layui+Mysql销售考评系统源码
IDEA+Spring + Spring MVC + MyBatis+Bootstrap+Mysql酒店管理系统源码
IDEA+spring boot+mybatis+spring mvc+bootstrap+Mysql停车位管理系统源码