ContainerService.java 1.22 KB
package com.huaheng.pc.config.container.service;

import com.huaheng.framework.web.domain.AjaxResult;
import com.huaheng.pc.config.container.domain.Container;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huaheng.pc.config.location.domain.Location;

import java.util.List;

public interface ContainerService extends IService<Container>{

    AjaxResult<List<Container>> insertContainer(String type, Integer quantity);

    String importContainer(List<Container> containerList, Boolean updateSupport, String operName);

    List<Location> getEmptyContainerInLocation(String containerCode, String locationCode, String warehouseCode);

    /**
     * 更新库位和状态
     * @param containerCode 容器编码
     * @param locationCode 库位编码
     * @param status 状态
     */
    void updateLocationCodeAndStatus(String containerCode, String locationCode, String status);

    boolean updateStatus(String containerCode, String status);

    void removeContainer(String containType, String containCode);

    Container getContainerByCode(String containCode);


    //获得空货架编号
    List<Container> selectListShelf();

    /**
     * 获取空容器
     * @return
     */
    Container emptyContainer();
}