zss
2025-03-11 eeb8d7faa8d25b3ca9fe75ef28f035c49af5b06d
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
package com.ruoyi.performance.controller;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.Result;
import com.ruoyi.common.utils.JackSonUtil;
import com.ruoyi.performance.pojo.Evaluate;
import com.ruoyi.performance.service.EvaluateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
 
@Api(tags = "绩效管理-人员考评")
@RestController
@RequestMapping("/evaluate")
public class EvaluateController {
 
 
    @Resource
    private EvaluateService evaluateService;
 
    @ApiOperation(value = "查询考评")
    @GetMapping("/page")
    @PreAuthorize("@ss.hasPermi('staffEvaluate:evaluation:list')")
    public Result page(Page page , Evaluate evaluate) throws Exception {
        return Result.success(evaluateService.getPage(page, evaluate));
    }
 
    @ApiOperation(value = "导出考评")
    @PostMapping("/exportEvaluate")
    public void exportEvaluate(@RequestParam("month") String month, @RequestParam("name") String name, @RequestParam("departLims") String departLims, HttpServletResponse response) throws IOException {
        evaluateService.export(month, name, departLims, response);
    }
 
}