In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you "how to implement the employee management system in Java". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn this article "how to implement the employee management system in Java".
I. brief introduction of the project
The functions of the system include: it is divided into front-end and back-end parts, including users, distinguishing Jintong users and Yuli users, including home page display, department management, personnel management, staff management and so on.
II. Project operation
Environment configuration: Jdkl. 8 + Tomcats. 5 + Mysql + HBuilderX (Webstorm is also fine) + Eclispe (IntelliJ IDEA,Eclispe, MyEclispe, Sts are all supported).
Project technology: html + css + js + vue + v-charts + electron + springboot + mybatis + Mysql + Maven and so on.
Employee operation code: / * * @ author yy * / @ RestController@RequestMapping ("/ employee") @ CrossOrigin@Slf4jpublic class EmployeeController {@ Autowired private EmployeeService employeeService; @ Autowired private DepartmentService departmentService; @ Autowired private JobService jobService; @ Autowired private EduLevelMapper eduLevelMapper; @ Autowired private EmployeeMapper employeeMapper / * * search interface * / @ GetMapping ("/ search") public Result search (@ RequestParam (name = "name", required = false,defaultValue = "") String name, @ RequestParam (name = "current", required = false,defaultValue = "1") Integer current, @ RequestParam (name = "size", required = false DefaultValue = "10") Integer size) {return employeeService.list (current, size, name) } / * paging query interface * * @ param current * @ param size * @ return * / @ GetMapping ("/ list") public Result list (@ RequestParam (name = "current", required = false, defaultValue = "1") Integer current, @ RequestParam (name = "size", required = false DefaultValue = "10") Integer size) {return employeeService.list (current, size, null) } / * obtain employee details according to id * @ param id * @ return * / @ GetMapping ("/ getUserById") public EmployeeDTO getUserAllInfoById (@ RequestParam (name = "id") Integer id) {return employeeService.getUserById (id) } / * obtain information from employees * @ param id * @ return * / @ GetMapping ("/ getEmployeeById") public Employee getUserById (@ RequestParam (name = "id") Integer id) {return employeeMapper.selectById (id) } / * add employee interface * * @ param employee * @ return * / @ PostMapping ("/ add") public Map addUser (@ RequestBody Employee employee) {log.info (employee.toString ()); return employeeService.add (employee) } / * Update user * @ param employee * @ return * / @ PostMapping ("/ update") public Map updateUser (@ RequestBody Employee employee) {log.info (employee.toString ()); return employeeService.update (employee) } / * * Delete user * @ param id * @ return * / @ GetMapping ("/ delete") public Result deleteEmployeeById (@ RequestParam (name = "id") Integer id) {return employeeService.deleteEmployeeById (id) Employee dismissal * * @ param id * @ return * / @ GetMapping ("/ dismiss") public Map dismissEmployeeById (@ RequestParam (name = "id") Integer id) {return employeeService.dismissEmployeeById (id) } / * get all job, department, education information * * @ return * / @ GetMapping ("/ otherInfo") public Result getAllOtherInfo () {Map info = new HashMap (); info.put ("departments", departmentService.selectAll ()); info.put ("jobs", jobService.selectAll ()); info.put ("eduLevels", eduLevelMapper.selectList (null)) Return Result.success (info);} @ GetMapping ("/ map") public Result getMap () {return employeeService.getMap ();}} these are all the contents of the article "how to implement the employee Management system in Java". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.