wangfei
2025-04-10 91a453198edfc4450ecc91adfcccee6ccf25a3f0
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
package com.mes.hollow.controller;
 
 
import com.mes.hollow.entity.dto.HollowBigStorageAndDetailsDTO;
import com.mes.hollow.entity.vo.HollowBigStorageDetailsQueryVO;
import com.mes.hollow.service.HollowBigStorageCageService;
import com.mes.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
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.List;
 
/**
 * (HollowBigStorageCage)表控制层
 *
 * @author makejava
 * @since 2024-11-21 09:22:39
 */
@Api(tags = "中空理片笼详情")
@RestController
@RequestMapping("hollowBigStorageCage")
public class HollowBigStorageCageController {
    @Resource
    HollowBigStorageCageService hollowBigStorageCageService;
 
    @ApiOperation("按照查询条件(设备id、流程卡、膜系)获取设备对应的笼子玻璃信息")
    @PostMapping("/queryHollowBigStorageCageDetail")
    public Result<List<HollowBigStorageAndDetailsDTO>> queryHollowBigStorageCageDetail(@RequestBody HollowBigStorageDetailsQueryVO query) {
        return Result.build(200, "查询成功", hollowBigStorageCageService.queryHollowBigStorageCageDetail(query));
    }
 
    @ApiOperation("复位:重置理片笼基础信息1、清除笼内状态为0的脏数据;2将空格子的尺寸置为初始尺寸 3、将不在笼内的流程卡的关系表重置")
    @PostMapping("/resetCage")
    public Result<Boolean> resetCage() {
        return Result.build(200, "重置成功", hollowBigStorageCageService.resetCage());
    }
}