ContainerService.java 2.03 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 com.huaheng.pc.receipt.receiptContainerHeader.domain.ReceiptContainerView;

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 zoneCode, String containerCode, String locationCode,String locationType, String warehouseCode);

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

    void updateLocationCodeAndStatus(String containerCode, String locationCode,
                                     String status, String warehouseCode);

    boolean updateStatus(String containerCode, String status, String wareohuseCode);

    void removeContainer(String containType, String containCode);

    Container getContainerByCode(String containCode);

    Container getContainerByCode(String containCode, String warehouseCode);

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



    Container findContainerByCodeType(String containerCode, String containerType, String warehouseCode);

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

    public List<Container> selectEmptyList(Container container);

    public Container selectFirstEntity(Container condition);

    public List<Container> selectListEntityByEqual(Container condition);

    public ReceiptContainerView check(ReceiptContainerView receiptContainerView, Container container);
}