ZengTao
2025-03-17 f87f14a9aea395831edb8fb2e709ceaf274aa632
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
package com.mes.bigstorage.controller;
 
import com.mes.bigstorage.entity.dto.BigStorageAndDetailsDTO;
import com.mes.bigstorage.entity.vo.BigStorageDetailsQueryVO;
import com.mes.bigstorage.service.BigStorageCageService;
import com.mes.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author zhoush
 * @since 2024-03-27
 */
@Api(tags = "理片笼信息")
@RestController
@RequestMapping("/bigStorageCage")
public class BigStorageCageController {
 
    @Autowired
    private BigStorageCageService bigStorageCageService;
 
    @ApiOperation("理片笼启用禁用")
    @GetMapping("/updateStorageCageDisabled")
    public Result updateStorageCageDisabled(int slot, int enableState) {
        bigStorageCageService.updateStorageCageDisabled(slot, enableState);
        return Result.build(200, "启用/禁用成功", 1);
    }
 
    @ApiOperation("按照查询条件(设备id、流程卡、膜系)获取设备对应的笼子玻璃信息")
    @PostMapping("/querybigStorageCageDetail")
    public Result<List<BigStorageAndDetailsDTO>> querybigStorageCageDetail(@RequestBody BigStorageDetailsQueryVO query) {
        return Result.build(200, "查询成功", bigStorageCageService.querybigStorageCageDetail(query));
    }
    @ApiOperation("复位:重置理片笼基础信息1清除笼内状态为0的脏数据、2将空格子的尺寸置为初始尺寸")
    @PostMapping("/resetCage")
    public Result<Boolean> resetCage() {
        return Result.build(200, "查询成功", bigStorageCageService.resetCage());
    }
 
 
}