google建网站,镇江网站推广优化,安徽省建设工程造价管理总站网站,公司网站 模板一、#x1f4dd;功能介绍 基于SpringBoot Vue员工管理系统
角色#xff1a;管理员、用户
管理员#xff1a;管理员进入主页面#xff0c;主要功能包括系统首页、个人中心、员工管理、部门管理、请假申请管理、出勤记录管理、奖惩信息管理、工资信息管理等进行操作。
员…一、功能介绍 基于SpringBoot Vue员工管理系统
角色管理员、用户
管理员管理员进入主页面主要功能包括系统首页、个人中心、员工管理、部门管理、请假申请管理、出勤记录管理、奖惩信息管理、工资信息管理等进行操作。
员工员工登录系统后可以对系统首页、个人中心、请假申请管理、出勤记录管理、奖惩信息管理、工资信息管理等功能进行操作 二、技术介绍
开发语言Java
后端 SpringBootMybatis-Plus
前端Vue ElementUI Vue Router Axios 三、环境需要
开发工具IDEAEclipse,Myeclipse都可以。推荐IDEAvscode JDK版本1.8
数据库: MySQL5.7/MySQL8.0版本以上
项目管理Maven Node版本14 四、运行截图
1.文档截图 2.项目截图 五、项目相关代码 本项目是前后端分离开发可以学习拓展等等 /*** 上传文件映射表*/
RestController
RequestMapping(file)
SuppressWarnings({unchecked,rawtypes})
public class FileController{Autowiredprivate ConfigService configService;/*** 上传文件*/RequestMapping(/upload)IgnoreAuthpublic R upload(RequestParam(file) MultipartFile file,String type) throws Exception {if (file.isEmpty()) {throw new EIException(上传文件不能为空);}String fileExt file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(.)1);File path new File(ResourceUtils.getURL(classpath:static).getPath());if(!path.exists()) {path new File();}File upload new File(path.getAbsolutePath(),/upload/);if(!upload.exists()) {upload.mkdirs();}String fileName new Date().getTime().fileExt;File dest new File(upload.getAbsolutePath()/fileName);file.transferTo(dest);/*** 如果使用idea或者eclipse重启项目发现之前上传的图片或者文件丢失将下面一行代码注释打开* 请将以下的D:\\springbootq33sd\\src\\main\\resources\\static\\upload替换成你本地项目的upload路径* 并且项目路径不能存在中文、空格等特殊字符*/
// FileUtils.copyFile(dest, new File(D:\\springbootq33sd\\src\\main\\resources\\static\\upload/fileName)); /**修改了路径以后请将该行最前面的//注释去掉**/if(StringUtils.isNotBlank(type) type.equals(1)) {ConfigEntity configEntity configService.selectOne(new EntityWrapperConfigEntity().eq(name, faceFile));if(configEntitynull) {configEntity new ConfigEntity();configEntity.setName(faceFile);configEntity.setValue(fileName);} else {configEntity.setValue(fileName);}configService.insertOrUpdate(configEntity);}return R.ok().put(file, fileName);}/*** 下载文件*/IgnoreAuthRequestMapping(/download)public ResponseEntitybyte[] download(RequestParam String fileName) {try {File path new File(ResourceUtils.getURL(classpath:static).getPath());if(!path.exists()) {path new File();}File upload new File(path.getAbsolutePath(),/upload/);if(!upload.exists()) {upload.mkdirs();}File file new File(upload.getAbsolutePath()/fileName);if(file.exists()){/*if(!fileService.canRead(file, SessionManager.getSessionUser())){getResponse().sendError(403);}*/HttpHeaders headers new HttpHeaders();headers.setContentType(MediaType.APPLICATION_OCTET_STREAM); headers.setContentDispositionFormData(attachment, fileName); return new ResponseEntitybyte[](FileUtils.readFileToByteArray(file),headers, HttpStatus.CREATED);}} catch (IOException e) {e.printStackTrace();}return new ResponseEntitybyte[](HttpStatus.INTERNAL_SERVER_ERROR);}}