TaskHeaderService.java 1.74 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.config.location.domain.Location;
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<TaskHeader> sendTaskToWcs(Integer[] taskIds);

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

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

    Integer UncompleteCount(String containerCode);

    AjaxResult cancelTask(Integer[] taskIds) ;


    /**
     * 容器收货上架
     * @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, Integer taskStatus);

    List<MobileTask> mobileFindTransferTask(String containerCode);

    AjaxResult setLocationCode(Integer taskId, Integer high);

    int getUncompleteTaskInNear(Location location);

    AjaxResult createAutoEmptyOut(String warehouseCode);

    public List<TaskHeader> remoteList();

}