zhoushihao
2 天以前 4e3b8155722b66e25df3c6fd42cc586b68dea391
hangzhoumesParent/moduleService/CacheGlassModule/src/main/java/com/mes/edgstoragecage/service/EdgStorageCageService.java
@@ -1,37 +1,66 @@
package com.mes.edgstoragecage.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.yulichang.base.MPJBaseService;
import com.mes.edgstoragecage.entity.EdgStorageCage;
import com.mes.glassinfo.entity.GlassInfo;
import com.mes.edgstoragecage.entity.EdgStorageCageDetails;
import com.mes.edgstoragecage.entity.vo.EdgSlotRemainVO;
import com.mes.edgstoragecage.entity.vo.EdgStorageCageVO;
import java.util.List;
import java.util.Map;
/**
 * <p>
 *  服务类
 * 服务类
 * </p>
 *
 * @author zhoush
 * @since 2024-04-07
 */
public interface EdgStorageCageService extends IService<EdgStorageCage> {
public interface EdgStorageCageService extends MPJBaseService<EdgStorageCage> {
    //查询笼内空格
    public List<EdgStorageCage> selectCacheEmpty();
    /**
     * 查询笼内离指定格子最近空格
     * flag :是否为直通
     *
     * @return
     */
    EdgStorageCage selectNearestEmpty(Integer currentCell, int deviceId, boolean flag);
    //查询笼内出片顺序详情
    public List<EdgStorageCage> selectCacheOut();
    /**
     * 按照设备号返回对应的笼内详情数据
     * @param deviceId
     * @return
     */
    List<EdgStorageCageVO> selectEdgStorageCagesByDeviceId(int deviceId);
    //查询笼内详情
    public List<Map> selectCacheInfos();
    //添加理片笼信息  传入glassid
    public boolean insertCacheInfo(String glassid);
    /**
     * 修改理片笼信息
     *
     * @param edgStorageCage
     * @return
     */
    boolean updateEdgStorageCage(EdgStorageCage edgStorageCage);
    //修改理片笼内信息
    public boolean updateCacheInfo(String cacheId);
    /**
     * 更新理片笼详情信息
     *
     * @param edgStorageCageId
     * @param edgStorageCageDetails
     * @return
     */
    boolean updateEdgStorageCageDetails(int edgStorageCageId, EdgStorageCageDetails edgStorageCageDetails);
    //删除理片笼内信息
    public boolean deleteCacheInfo(String cacheId);
    /**
     * 相同尺寸可以放下的格子
     *
     * @param deviceId
     * @param width
     * @param height
     * @param slot
     * @return
     */
    EdgStorageCage getEdgStorageCageBySize(int deviceId, double width, double height, int slot);
    void resetSlotRemainWidth(List<EdgSlotRemainVO> edgSlotRemainVOS);
}