TaskHeaderService.java 2.6 KB
package com.huaheng.pc.task.taskHeader.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huaheng.framework.web.domain.AjaxResult;
import com.huaheng.pc.task.taskHeader.domain.MobileTask;
import com.huaheng.pc.task.taskHeader.domain.ShipmentTaskCreateModel;
import com.huaheng.pc.task.taskHeader.domain.TaskHeader;

import java.util.List;

public interface TaskHeaderService extends IService<TaskHeader>{


    AjaxResult createTaskFromShipmentContainers(ShipmentTaskCreateModel shipmentTaskCreateModel) ;

    AjaxResult<TaskHeader> sendTaskToWcs(Integer[] taskIds);

    AjaxResult completeTaskByWMS(Integer[] taskIds, String[] weight);

    AjaxResult completeReceiptTask(TaskHeader task) throws Exception;

    /**
     * 移动端创建入库任务
     * @param containerCode 容器编码
     * @param sourceLocation 目的库位
     * @return
     */
    AjaxResult mobileCreateReceiptTask(String containerCode, String sourceLocation);

//    List<Map<String, Object>> getReceiptTask(@Param("taskId") Integer taskId);

    /**
     * 创建移库任务
     * @param sourceLocation
     * @param destinationLocation
     * @return
     */
    AjaxResult createTransferTask(String sourceLocation, String destinationLocation);

    AjaxResult createCheckOutTask(String[] ids);

    /**
     * 完成
     * 出库查看
     * 更新状态即可
     */
    AjaxResult completeSeeOutTask(TaskHeader taskHeader);

    AjaxResult completeCycleCountTask(TaskHeader taskHeader);

    AjaxResult createReceiptTask(List<Integer> ids);

    void completeShipmentTask(TaskHeader task) ;

    Integer UncompleteCount(String containerCode);

    AjaxResult cancelTask(Integer[] taskIds) ;

    /**
     * 创建空托入库
     * @param containerCode 容器编码
     * @param destinationLocation 目的库位
     * @param companyCode 货主编码
     * @return
     */
    AjaxResult createEmptyIn(String containerCode, String destinationLocation, String companyCode);

    /**
     * 容器收货上架
     * @param containerCode
     * @return
     */
    AjaxResult createQuickTask(String containerCode);

    List<TaskHeader> preferenceRealize (List<TaskHeader> taskHeaderList);

    List<TaskHeader>  getTasksStatus(Short lastStatus);

    /**
     * 根据库位完成任务
     * @param locationCode
     * @return
     * @throws Exception
     */
    AjaxResult completeTask(String locationCode) throws Exception;

    AjaxResult createReplenishTask(String containerCode, Short taskStatus);

    List<MobileTask> mobileFindTransferTask(String containerCode);

    AjaxResult completeEmptyOut(TaskHeader taskHeader);
}