zouyu
2 天以前 2ea3b36a810adcb639f4d3c72c860f722f601927
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.ruoyi.inspect.controller;
 
import com.ruoyi.common.core.domain.Result;
import com.ruoyi.inspect.dto.StaffCompetencyLevelEvaluateRecordDTO;
import com.ruoyi.inspect.service.StaffCompetencyLevelEvaluateRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import javax.servlet.http.HttpServletResponse;
 
/**
 * 人员能力-等级评定
 */
@Api("人员能力-等级评定")
@RestController
@RequestMapping("/StaffCompetencyLevelEvaluateRecord")
public class StaffCompetencyLevelEvaluateRecordController {
 
    @Autowired
    private StaffCompetencyLevelEvaluateRecordService recordService;
 
    /**
     * 获取用户等级评定列表
     */
    @ApiModelProperty("获取用户等级评定列表")
    @GetMapping("/getPageList")
    public Result getPageList(StaffCompetencyLevelEvaluateRecordDTO record){
        return Result.success(recordService.getPageList(record));
    }
 
    /**
     * 修改用户等级
     */
    @ApiModelProperty("修改用户等级")
    @PostMapping("/changeLevel")
    public Result changeLevel(@RequestBody StaffCompetencyLevelEvaluateRecordDTO recordDTO){
        return Result.success(recordService.saveOrUpdate(recordDTO));
    }
 
    /**
     * 导出人员能力列表
     */
    @ApiModelProperty("导出人员能力列表")
    @GetMapping("/exportRecords")
    public void exportRecords(HttpServletResponse response,StaffCompetencyLevelEvaluateRecordDTO recordDTO){
        recordService.exportRecords(response,recordDTO);
    }
 
}