Computer graduation project Java enterprise employee salary management system

Posted by mwgi2005 on Sun, 09 Jan 2022 14:14:01 +0100

Operating environment:

Development tools: IDEA /Eclipse
Database: mysql5 seven
Application service: Tomcat7/Tomcat8
Using framework: java+jsp

Project introduction

This subject is a management system based on JSP. The salary management system of College employees based on JSP is developed by using JSP and Mysql tools under the environment of Windows7 system. The University employee salary management system based on JSP is divided into two modules: administrator and ordinary user. Among them, the managers in the University employee salary management system based on JSP can manage the personnel type information, employee information, salary information, attendance information, allowance information and modify their personal password in the system after logging in. Employee users mainly view their salary and attendance information, allowance information and modify personal password.
Attendance management

Starting from different user roles, the system is divided into two parts: administrator and employee. The specific functions are as follows.

Some functions of employees:

  1. Employee login: employee users log in to the system through their own account and password

  2. Salary query: employees can query their own salary information

  3. Attendance information management enables employees to view their personal attendance information

  4. View allowance information. Employees can view their own allowance method information

  5. To change the password, employees can change their personal password

Some functions of administrator

  1. The administrator can log in to the system through his own account and password to manage the system

  2. Employee information management: managers can manage employee information in the system

  3. Salary information management: the administrator can manage the salary information of employees, including adding, deleting, modifying and querying employee information

  4. Attendance information management: administrators can manage employee attendance information

  5. Allowance Management: administrators can manage employee allowance information

  6. To change the password, the administrator can change his personal password

design sketch



Controller class
/**
 * Login related
 */
@RequestMapping("config")
@RestController
public class ConfigController{
	
	@Autowired
	private ConfigService configService;

	/**
     * list
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,ConfigEntity config){
        EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
    	PageUtils page = configService.queryPage(params);
        return R.ok().put("data", page);
    }
    
	/**
     * list
     */
    @IgnoreAuth
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,ConfigEntity config){
        EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
    	PageUtils page = configService.queryPage(params);
        return R.ok().put("data", page);
    }

    /**
     * information
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") String id){
        ConfigEntity config = configService.selectById(id);
        return R.ok().put("data", config);
    }
    
    /**
     * details
     */
    @IgnoreAuth
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") String id){
        ConfigEntity config = configService.selectById(id);
        return R.ok().put("data", config);
    }
    
    /**
     * Get information by name
     */
    @RequestMapping("/info")
    public R infoByName(@RequestParam String name){
        ConfigEntity config = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));
        return R.ok().put("data", config);
    }
    
    /**
     * preservation
     */
    @PostMapping("/save")
    public R save(@RequestBody ConfigEntity config){
//    	ValidatorUtils.validateEntity(config);
    	configService.insert(config);
        return R.ok();
    }

    /**
     * modify
     */
    @RequestMapping("/update")
    public R update(@RequestBody ConfigEntity config){
//        ValidatorUtils.validateEntity(config);
        configService.updateById(config);//Update all
        return R.ok();
    }

    /**
     * delete
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
    	configService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
}

catalogue
Summary I
Abstracts I
Directory I
Chapter 1 Introduction 1
1.1 subject background 1
1.2 research significance 1
1.3 research contents 2
Chapter 2 technical introduction 2
2.1 related technologies 3
2.2 Java technology 3
2.3 MySQL database 4
2.4 introduction to Tomcat 4
2.5 ssm frame5
Chapter 3 demand analysis 5
3.1 demand analysis overview 6
3.2 feasibility analysis 6
3.2.1 economic feasibility 6
3.2.2 technical feasibility 7
3.3 system function design 7
Chapter 4 system design 7
4.1 system structure design 7
4.2 database design 8
4.2.1 entity ER figure 8
4.2.2 data sheet 10
Chapter 5 system implementation 14
5.1 administrator function module 14
5.2 front page function module 18
5.3 user function module 18
Chapter 6 system test 23
6.1 test definition and purpose 23
6.2 test methods 23
6.3 test module 24
6.4 test results 25
Conclusion 26
Thanks 27
References 28

Topics: Java Eclipse intellij-idea