gaoluyang
2026-09-30 3fe4995d397ddba927f50807f2ac1a1d7fb7c0b2
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
52
53
54
55
package com.ruoyi.basic.controller;
 
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.Result;
import com.ruoyi.basic.pojo.Laboratory;
import com.ruoyi.basic.service.LaboratoryService;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.*;
 
import jakarta.annotation.Resource;
 
/**
 * 实验室管理(LaboratoryController)表控制层
 */
@Tag(name = "场所或设施")
 
@RestController
@RequestMapping("/laboratoryScope")
public class LaboratoryController {
 
    @Resource
    private LaboratoryService laboratoryService;
 
    @Operation(summary = "查询实验室管理列表")
    @PostMapping("/selectItemParameter")
    public Result selectItemParameter(Page page ,Laboratory itemParameter) {
        return Result.success(laboratoryService.selectItemParameter(page, itemParameter));
    }
 
    @Operation(summary = "添加实验室参数")
    @PostMapping("/addParameter")
    public Result addParameter(@RequestBody Laboratory itemParameter) {
        return Result.success(laboratoryService.addParameter(itemParameter));
    }
 
    @Operation(summary = "删除实验室参数")
    @PostMapping("/delParameter")
    public Result<?> delParameter(Integer id) {
        return Result.success(laboratoryService.delParameter(id));
    }
 
    @Operation(summary = "修改实验室参数")
    @PostMapping("/upParameter")
    public Result<?> upParameter(@RequestBody Laboratory itemParameter) {
        return Result.success(laboratoryService.upParameter(itemParameter));
    }
 
    @Operation(summary = "获取实验室名称")
    @GetMapping("/obtainItemParameterList")
    public Result obtainItemParameterList() {
        return Result.success(laboratoryService.obtainItemParameterList());
    }
}