Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize employee performance Management system by Java

Shulou Source: shulou.com Published: 2022-06-02 04:27:59 10月01日 Update

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

Tags: Employee Administration role validation seniority method background Page legal entity Unification Information content Field processing system form Management system performance Controller Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Technology Redmi Shulou Information MySQL