aijinhui
2023-10-06 4bf8db5a3d574e5175f8e08a76d08effd3b31a9e
ard-work/src/main/java/com/ruoyi/statistical/controller/StatisticalController.java
@@ -5,10 +5,7 @@
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 org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.Map;
@@ -27,11 +24,19 @@
    /**
     * 厂区介绍存储
     */
    @PreAuthorize("@ss.hasPermi('minio:event:export')")
    @ApiOperation("根据权限获取设备列表")
    @ApiOperation("厂区介绍存储")
    @PostMapping("factory/save")
    public Results factorySave(@RequestBody Map<String,String> map){
        return statisticalService.factorySave(map);
    }
    /**
     * 厂区介绍查询
     */
    @ApiOperation("厂区介绍查询")
    @GetMapping("factory/select")
    public Results factorySelect(){
        return statisticalService.factorySelect();
    }
}