五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

springboot+vue前后端分離實現(xiàn)企業(yè)人事管理系統(tǒng)

2022-04-20 19:49 作者:指南針畢業(yè)設(shè)計  | 我要投稿

作者主頁:編程指南針

作者簡介:Java領(lǐng)域優(yōu)質(zhì)創(chuàng)作者、CSDN博客專家 、掘金特邀作者、多年架構(gòu)師設(shè)計經(jīng)驗、騰訊課堂常駐講師

主要內(nèi)容:Java項目、畢業(yè)設(shè)計、簡歷模板、學(xué)習(xí)資料、面試題庫、技術(shù)互助

文末獲取源碼?

一,項目簡介

系統(tǒng)是前后端分離的項目,直接啟動Springboot應(yīng)用程序類后,再啟動前端工程訪問即可。主要實現(xiàn)?了企業(yè)的人事管理功能,主要包含員工管理、薪資管理、職位管理、權(quán)限管理、網(wǎng)盤文件分享管理等模塊。

系統(tǒng)亮點:使用REDIS進行數(shù)據(jù)緩存,優(yōu)化查詢性能;使用分布式文件系統(tǒng)進行文件存儲服務(wù);基于Springboot+vue實現(xiàn)前后端分離開發(fā)

二,環(huán)境介紹

語言環(huán)境:Java:? jdk1.8

數(shù)據(jù)庫:Mysql: mysql5.7

應(yīng)用服務(wù)器:Tomcat:? tomcat8.5.31

開發(fā)工具:IDEA或eclipse

開發(fā)技術(shù):Element UI 、Vue、Axios、SpringBoot、MyBatis、MySQL、Redis、FastDFS(或OSS)、Tomcat8.5.31


三,系統(tǒng)展示

?下面展示一下系統(tǒng)的基本功能:

用戶登陸:


系統(tǒng)主界面:


員工管理:


高級搜索


員工獎懲管理


添加獎懲


工資套賬(工資標準)管理



員工工資管理




系統(tǒng)管理—部門管理


系統(tǒng)管理--職位管理


系統(tǒng)管理—職稱管理


文件管理:將文件存儲在分布式文件服務(wù)Fastdfs或阿里云OSS上,可以在系統(tǒng)中自行配置



以上是本系統(tǒng)的基本功能功能展示,本系統(tǒng)所使用技術(shù)比較先進,功能比較完整,界面美觀大方,適合畢業(yè)設(shè)計使用。

四,核心代碼展示

package com.me.controller;import com.me.pojo.Department;import com.me.pojo.RespBean;import com.me.service.DepartmentService;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.*;import java.util.List;@RestControllerpublic class DepartmentController { ? ?@Autowired ? ?DepartmentService departmentService; ? ?@GetMapping("/dep/deps") ? ?public RespBean getAllDepartments() { ? ? ? ?List<Department> list = departmentService.getAllDepartments();// ? ? ? ?for (Department department : list) {// ? ? ? ? ? ?System.out.println(department);// ? ? ? ?} ? ? ? ?return RespBean.ok("AllDepartments", list); ? ?} ? ?@PostMapping("/dep/add") ? ?public RespBean addDep(@RequestBody Department dep) { ? ? ? ?System.out.println(dep); ? ? ? ?departmentService.addDep(dep); ? ? ? ?if (dep.getResult() == 1) { ? ? ? ? ? ?return RespBean.ok("添加成功", dep); ? ? ? ?} ? ? ? ?return RespBean.error("添加失敗"); ? ?} ? ?@DeleteMapping("/dep/{id}") ? ?public RespBean deleteDepById(@PathVariable Integer id) { ? ? ? ?Department dep = new Department(); ? ? ? ?dep.setId(id); ? ? ? ?departmentService.deleteDepById(dep); ? ? ? ?if (dep.getResult() == -2) { ? ? ? ? ? ?return RespBean.error("該部門下有子部門,刪除失敗"); ? ? ? ?} else if (dep.getResult() == -1) { ? ? ? ? ? ?return RespBean.error("該部門下有員工,刪除失敗"); ? ? ? ?} else if (dep.getResult() == 1) { ? ? ? ? ? ?return RespBean.ok("刪除成功"); ? ? ? ?} ? ? ? ?return RespBean.error("刪除失敗"); ? ?} }

package com.me.controller;import com.fasterxml.jackson.annotation.JsonFormat;import com.me.pojo.*;import com.me.service.DepartmentService;import com.me.service.EmployeeService;import com.me.service.JobLevelService;import com.me.service.PositionService;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.*;import java.util.Date;import java.util.List;@RestControllerpublic class EmpController { ? ?@Autowired ? ?EmployeeService employeeService; ? ?@Autowired ? ?PositionService positionService; ? ?@GetMapping("/emp/query") ? ?public RespPageBean getEmployeeByPage(@RequestParam(defaultValue = "1") Integer page, @RequestParam(defaultValue = "10") Integer size, Employee employee, ?Date[] beginDateScope) {// ? ? ? ?System.out.println(employee); ? ? ? ?return employeeService.getEmployeeByPage(page, size, employee, beginDateScope); ? ?} ? ?@PostMapping("/emp/add") ? ?public RespBean addEmp(@RequestBody Employee employee) {// ? ? ? ?System.out.println(employee); ? ? ? ?if (employeeService.addEmp(employee) == 1) { ? ? ? ? ? ?return RespBean.ok("添加成功!"); ? ? ? ?} ? ? ? ?return RespBean.error("添加失敗!"); ? ?} ? ?@PutMapping("/emp/update") ? ?public RespBean updateEmp(@RequestBody Employee employee) {// ? ? ? ?System.out.println(employee); ? ? ? ?if (employeeService.updateEmp(employee) == 1) { ? ? ? ? ? ?return RespBean.ok("更新成功!"); ? ? ? ?} ? ? ? ?return RespBean.error("更新失敗!"); ? ?} ? ?@DeleteMapping("/emp/delete/{id}") ? ?public RespBean deleteEmpByEid(@PathVariable Integer id) { ? ? ? ?if (employeeService.deleteEmpByEid(id) == 1) { ? ? ? ? ? ?return RespBean.ok("刪除成功!"); ? ? ? ?} ? ? ? ?return RespBean.error("刪除失敗!"); ? ?} ? ?@GetMapping("/emp/getAllPositions") ? ?public RespBean getAllPositions() { ? ? ? ?return RespBean.ok("positions-",positionService.getAllPositions()) ; ? ?} ? ?@GetMapping("/emp/nations") ? ?public RespBean getAllNations() { ? ? ? ?return RespBean.ok("nations-",employeeService.getAllNations()); ? ?} ? ?@GetMapping("/emp/politicsstatus") ? ?public RespBean getAllPoliticsstatus() { ? ? ? ?return RespBean.ok("politicsss-",employeeService.getAllPoliticsstatus()) ; ? ?} ? ?@Autowired ? ?private JobLevelService jobLevelService; ? ?@GetMapping("/emp/joblevels") ? ?public RespBean getAllJobLevels() { ? ? ? ?return RespBean.ok("joblevels-",jobLevelService.getAllJobLevels()); ? ?} ? ?@Autowired ? ?private DepartmentService departmentService; ? ?@GetMapping("/emp/deps") ? ?public RespBean getAllDepartments() { ? ? ? ?List<Department> list = departmentService.getAllDepartments();// ? ? ? ?for (Department department : list) {// ? ? ? ? ? ?System.out.println(department);// ? ? ? ?} ? ? ? ?return RespBean.ok("AllDepartments", list); ? ?} }

package com.me.controller;import com.me.pojo.Employee;import com.me.pojo.Employeeec;import com.me.pojo.RespBean;import com.me.pojo.RespPageBean;import com.me.service.EmployeeecService;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.*;@RestControllerpublic class EmployeeecController { ? ?@Autowired ? ?EmployeeecService employeeecService; ? ?@GetMapping("/ec/{keyword}") ? ?public RespBean selectByNameOrWorkId(@PathVariable String keyword){ ? ? ? ?System.out.println(keyword); ? ? ? ?return RespBean.ok("獲取到-",employeeecService.selectByNameOrWorkId(keyword)); ? ?} ? ?@DeleteMapping("/ec/{id}") ? ?public RespBean deleteById(@PathVariable int id){ ? ? ? ?System.out.println(id); ? ? ? ?if(employeeecService.deleteById(id)==1){ ? ? ? ? ? ?return RespBean.ok("刪除成功"); ? ? ? ?} ? ? ? ?return RespBean.error("失敗"); ? ?} ? ?@PostMapping("/ec/add") ? ?public RespBean add(@RequestBody Employeeec employeeec){ ? ? ? ?System.out.println(employeeec); ? ? ? ?if(employeeecService.insertEc(employeeec)==1){ ? ? ? ? ? ?return RespBean.ok("添加成功"); ? ? ? ?} ? ? ? ?return RespBean.error("失敗"); ? ?} ? ?@PutMapping("/ec/update") ? ?public RespBean put(@RequestBody Employeeec employeeec){ ? ? ? ?System.out.println(employeeec); ? ? ? ?if(employeeecService.updateEc(employeeec)==1){ ? ? ? ? ? ?return RespBean.ok("添加成功"); ? ? ? ?} ? ? ? ?return RespBean.error("失敗"); ? ?} }


package com.me.controller;import com.me.pojo.RespBean;import com.me.service.FileService;import com.me.util.MD5Util;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.data.redis.core.StringRedisTemplate;import org.springframework.web.bind.annotation.*;import org.springframework.web.multipart.MultipartFile;import javax.servlet.http.HttpServletRequest;@RestControllerpublic class FileController { ? ?@Autowired ? ?FileService fileService; ? ?@Autowired ? ?private StringRedisTemplate stringRedisTemplate; ? ?@PostMapping("/file/upload") ? ?public RespBean updateFile(MultipartFile file,int id) { ? ? ? ?System.out.println(id); ? ? ? ?System.out.println(MD5Util.getMultiFileMd5(file)); ? ? ? ?if(fileService.uploadFile(file,id)){ ? ? ? ? ? ?return RespBean.ok("上傳成功"); ? ? ? ?} ? ? ? ?return RespBean.error("圖片過大或者格式不對"); ? ?} ? ?@DeleteMapping("/file/{id}") ? ?public RespBean deleteById(@PathVariable int id){// ? ? ? ?System.out.println(id); ? ? ? ?if(fileService.deleteById(id)){ ? ? ? ? ? ?return RespBean.ok("刪除成功"); ? ? ? ?} ? ? ? ?return RespBean.error("刪除失敗"); ? ?} ? ?@GetMapping("/file/getAll/{id}") ? ?public RespBean getAll(@PathVariable String id){ ? ? ? ?return RespBean.ok("files-",fileService.getAllHrFiles(id)); ? ?} ? ?@GetMapping("/file/getLoginHrId") ? ?public RespBean getHrId(HttpServletRequest request){ ? ? ? ?String token = request.getHeader("token"); ? ? ? ?String s = stringRedisTemplate.opsForValue().get("id"+token); ? ? ? ?return RespBean.ok("獲取到用戶id",s); ? ?} }

package com.me.controller;import com.me.pojo.Hr;import com.me.pojo.RespBean;import com.me.service.HrService;import org.csource.fastdfs.StorageClient1;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.data.redis.core.StringRedisTemplate;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.*;import org.springframework.web.multipart.MultipartFile;import javax.servlet.http.HttpServletRequest;import java.util.Map;@RestControllerpublic class HrController { ? ?@Autowired ? ?private StringRedisTemplate stringRedisTemplate; ? ?@Autowired ? ?private HrService hrService; ? ?@GetMapping("/hr/getLoginUser") ? ?public RespBean getLoginUser(HttpServletRequest request){ ? ? ? ?String token = request.getHeader("token"); ? ? ? ?String s = stringRedisTemplate.opsForValue().get(token);// ? ? ? ?System.out.println("getLoginUser"+s); ? ? ? ?Hr hr = hrService.loadUserByUsername(s); ? ? ? ?return RespBean.ok("獲取到用戶",hr); ? ?} ? ?@PutMapping("/hr/pass") ? ?public RespBean updateHrPasswd(@RequestBody Map<String, Object> info,HttpServletRequest request) { ? ? ? ?String oldpass = (String) info.get("oldpass"); ? ? ? ?String pass = (String) info.get("pass"); ? ? ? ?Integer hrid = (Integer) info.get("hrid"); ? ? ? ?System.out.println(hrid+pass); ? ? ? ?if (hrService.updateHrPasswd(oldpass, pass, hrid)) { ? ? ? ? ? ?//修改密碼后需要重新登錄 ? ? ? ? ? ?String token = request.getHeader("token"); ? ? ? ? ? ?Boolean b = stringRedisTemplate.delete(token); ? ? ? ? ? ?return RespBean.ok("更新成功!請重新登錄!"); ? ? ? ?} ? ? ? ?return RespBean.error("更新失敗!"); ? ?} ? ?@PutMapping("/hr/info") ? ?public RespBean updateHr(@RequestBody Hr hr) { ? ? ? ?if (hrService.updateHr(hr) == 1) { ? ? ? ? ? ?return RespBean.ok("更新成功!"); ? ? ? ?} ? ? ? ?return RespBean.error("更新失敗!"); ? ?} ? ?@PostMapping("/hr/userface") ? ?public RespBean updateHrUserface(MultipartFile file, Integer id) { ? ? ? ?System.out.println("face ? ?"+id); ? ? ? if(hrService.updateHrUserface(file,id)){ ? ? ? ? ? return RespBean.ok("更新成功!"); ? ? ? } ? ? ? return RespBean.error("圖片過大或者格式不對"); ? ?} }

五,項目總結(jié)

? ?項目采用springboot+vue實現(xiàn)前后端分離的項目開發(fā),功能簡潔大方,另外使用了redis緩存數(shù)據(jù)庫和oss分布式文件存儲服務(wù),是項目的一大亮點。


springboot+vue前后端分離實現(xiàn)企業(yè)人事管理系統(tǒng)的評論 (共 條)

分享到微博請遵守國家法律
花莲市| 许昌市| 莱阳市| 武山县| 当涂县| 望都县| 湘潭县| 桓台县| 赤峰市| 台中县| 昌江| 民乐县| 嘉义县| 卢氏县| 桐城市| 屯昌县| 册亨县| 尚义县| 常德市| 永德县| 民勤县| 桂平市| 昌宁县| 昭觉县| 竹溪县| 绍兴市| 延庆县| 道真| 娄底市| 梨树县| 工布江达县| 兴宁市| 宁海县| 青铜峡市| 大关县| 江安县| 洞口县| 会昌县| 辽宁省| 原平市| 高雄市|