ShipmentContainerHeaderService.java 1.67 KB
package com.huaheng.pc.shipment.shipmentContainerHeader.service;

import com.huaheng.framework.web.domain.AjaxResult;
import com.huaheng.pc.shipment.shipmentContainerDetail.domain.ShipmentContainerDetail;
import com.huaheng.pc.shipment.shipmentContainerHeader.domain.ShipmentCombinationModel;
import com.huaheng.pc.shipment.shipmentContainerHeader.domain.ShipmentContainerHeader;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huaheng.pc.shipment.shipmentDetail.domain.ShipmentDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ShipmentContainerHeaderService extends IService<ShipmentContainerHeader>{

    Map<String,Integer> getShipmentContainerMaxAndMinStatusByShipmentID(@Param("shipmentId") int shipmentId);


    //出库保存组盘
    ShipmentContainerHeader combination(ShipmentCombinationModel shipmentCombination);

    //取消组盘
    AjaxResult cancelCombinationDetail(List<Integer> detailIds) ;

    AjaxResult cancelCombinationDetailInner(List<ShipmentContainerDetail> shipmentContainerDetails) ;

    AjaxResult cancelCombination(List<Integer> shipmentContainerIds) ;


    AjaxResult autoCombination(String shipmentCode);

    AjaxResult autoCombination(List<ShipmentDetail> shipmentDetailList);

    AjaxResult checkForCancelCombination(List<Integer> shipmentContainerIds);

    AjaxResult createTask(List<Integer> idList);

    boolean cancelShipment(Integer combineHeaderId);

    AjaxResult getShipmentInfoByCode(String code);

    // 获得没有组盘完成的数量
    int getUnCompleteCombineNumber(String containerCode);

    List<ShipmentContainerHeader> getUnCompleteCombineList();
}