Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize employee performance Management system by Java

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you how Java implements employee performance management system. The content is simple and easy to understand. It is clearly organized. I hope it can help you solve your doubts. Let Xiaobian lead you to study and learn this article "How Java implements employee performance management system".

Employee Performance Management System Based on SSM+Mysql+Maven+HTML. The system has only background pages, and the background front-end framework uses the layui official website recommended background interface.

Roles are divided into administrator and employee

Administrator functions are: employee management, position management, department management, post management, salary management, seniority management, attendance management, salary management.

Employee functions: attendance management, salary management, personal information.

Operating environment:jdk1.8, tomcat7.0\8.5, maven3.5\3.6, eclipse, mysql5.x.

Background Employee Management Controller Code:

/** * Background Employee Management Controller * @author Administrator * */@RequestMapping("/admin/staff")@Controllerpublic class StaffController { @Autowired private StaffService staffService; @Autowired private JobTitleService jobTitleService; @Autowired private RoleService roleService; @Autowired private PositionService positionService; @Autowired private DepartmentService departmentService; @Autowired private OperaterLogService operaterLogService; @Autowired private AttendanceService attendanceService; /** * Employee List Page * @param model * @param staff * @param pageBean * @return */ @RequestMapping(value="/list") public String list(Model model, Staff staff, PageBean pageBean){ model.addAttribute("title", "employee list"); model.addAttribute("jobNumber", staff.getJobNumber()==null? "":staff.getJobNumber()); model.addAttribute("pageBean", staffService.findList(staff, pageBean)); return "admin/staff/list"; } /** * New Employee Page * @param model * @return */ @RequestMapping(value="/add",method=RequestMethod.GET) public String add(Model model){ model.addAttribute("roles", roleService.findAll()); model.addAttribute("educationEnum",EducationEnum.values()); model.addAttribute("jobTitleList",jobTitleService.findAll()); model.addAttribute("positionList",positionService.findAll()); model.addAttribute("departmentList",departmentService.findAll()); return "admin/staff/add"; } /** * Employee Add Form Submission Processing * @param staff * @return */ @RequestMapping(value="/add",method=RequestMethod.POST) @ResponseBody public Result add(Staff staff){ //Verify legality with uniform verification entity method CodeMsg validate = ValidateEntityUtil.validate(staff); if(validate.getCode() != CodeMsg.SUCCESS.getCode()){ return Result.error(validate); } if(staff.getRole() == null || staff.getRole().getId() == null){ return Result.error(CodeMsg.ADMIN_STAFF_ROLE_ERROR); } if(! StringUtil.isMobile(staff.getMobile())){ return Result.error(CodeMsg.ADMIN_STAFF_MOBILE_ERROR); } if(! StringUtil.isMobile(staff.getEmergencyMobile())){ return Result.error(CodeMsg.ADMIN_STAFF_EMERGENCY_MOBILE_ERROR); } //Automatically generate job number int maxId = staffService.findMaxId()+1; String jobNumber = DateUtil.getCurrentDateTime("yyyyMMdd"); if(maxId

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report