aijinhui
2023-10-06 4f2c5503851eb6a02fedcb7ddc9f35702550810c
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
package com.ruoyi.statistical.controller;
 
import com.ruoyi.statistical.service.StatisticalService;
import com.ruoyi.utils.result.Results;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
import java.util.Map;
 
/**
 * @author Administrator
 */
@RestController
@RequestMapping("statistical")
@Api(tags = "数据统计")
public class StatisticalController {
 
    @Resource
    private StatisticalService statisticalService;
 
    /**
     * 厂区介绍存储
     */
    @PreAuthorize("@ss.hasPermi('minio:event:export')")
    @ApiOperation("根据权限获取设备列表")
    @PostMapping("factory/save")
    public Results factorySave(@RequestBody Map<String,String> map){
        return statisticalService.factorySave(map);
    }
 
}