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
56
57
58
59
60
61
62
63
64
65
66
package com.mes.edgstoragecage.service;
 
import com.github.yulichang.base.MPJBaseService;
import com.mes.edgstoragecage.entity.EdgStorageCage;
import com.mes.edgstoragecage.entity.EdgStorageCageDetails;
import com.mes.edgstoragecage.entity.vo.EdgSlotRemainVO;
import com.mes.edgstoragecage.entity.vo.EdgStorageCageVO;
 
import java.util.List;
 
/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zhoush
 * @since 2024-04-07
 */
public interface EdgStorageCageService extends MPJBaseService<EdgStorageCage> {
 
    /**
     * 查询笼内离指定格子最近空格
     * flag :是否为直通
     *
     * @return
     */
    EdgStorageCage selectNearestEmpty(Integer currentCell, int deviceId, boolean flag);
 
    /**
     * 按照设备号返回对应的笼内详情数据
     * @param deviceId
     * @return
     */
    List<EdgStorageCageVO> selectEdgStorageCagesByDeviceId(int deviceId);
 
 
    /**
     * 修改理片笼信息
     *
     * @param edgStorageCage
     * @return
     */
    boolean updateEdgStorageCage(EdgStorageCage edgStorageCage);
 
    /**
     * 更新理片笼详情信息
     *
     * @param edgStorageCageId
     * @param edgStorageCageDetails
     * @return
     */
    boolean updateEdgStorageCageDetails(int edgStorageCageId, EdgStorageCageDetails edgStorageCageDetails);
 
    /**
     * 相同尺寸可以放下的格子
     *
     * @param deviceId
     * @param width
     * @param height
     * @param slot
     * @return
     */
    EdgStorageCage getEdgStorageCageBySize(int deviceId, double width, double height, int slot);
 
    void resetSlotRemainWidth(List<EdgSlotRemainVO> edgSlotRemainVOS);
}