ShipmentDetailService.java 1.58 KB
package com.huaheng.pc.shipment.shipmentDetail.service;

import com.huaheng.framework.web.domain.AjaxResult;
import com.huaheng.pc.shipment.lockingWorkOrder.domain.LockingWorkOrder;
import com.huaheng.pc.shipment.shipmentDetail.domain.ShipmentDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huaheng.pc.shipment.shipmentHeader.domain.ShipmentHeader;
import com.huaheng.pc.task.taskDetail.domain.TaskDetail;

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

public interface ShipmentDetailService extends IService<ShipmentDetail>{

    /**
     * 新增出库明细
     *
     * @param shipmentDetail
     * @return
     */
    AjaxResult insertDetail(ShipmentDetail shipmentDetail);

    AjaxResult deleteDetail(String id);

    Integer countUnCompleted(Integer shipmentId);

    //选中的单据加入波次
    void saveWave(String ids,String code);

    Map<String,Integer> selectStatus(Integer id);

    //获取7天内的出库量
    List<TaskDetail> getShipmentQtyLast7Days();

    //以仓库维度获取入库量
    List<TaskDetail> getWarehouseShipment();

    //以货主维度获取入库量
    List<TaskDetail> getCompanyShipment();

    Boolean insertDetails(List<ShipmentDetail> shipmentDetails);

    AjaxResult updateShipmentHeader(ShipmentHeader shipmentHeader);

    String insertExcelData(List<ShipmentDetail> list, boolean updateSupport, String operName);

    ShipmentDetail createShipmentDetail(ShipmentHeader header, LockingWorkOrder lockingWorkOrder) throws Exception;

    List<ShipmentDetail> getListByShipmentHeaderId(Integer id,String warehouseCode);
}