AgvTaskCSService.java 1.62 KB
package com.huaheng.api.acs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huaheng.api.acs.domain.AgvTaskCS;
import com.huaheng.framework.web.domain.AjaxResult;
import com.huaheng.pc.task.taskHeader.domain.TaskHeader;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public interface AgvTaskCSService extends IService<AgvTaskCS> {
    /**
     * AGV创建任务
     * @param agvtask
     * @return
     */
    AjaxResult createAGVTask(AgvTaskCS agvtask);
    AjaxResult createAGVTaskJLK(AgvTaskCS agvTask);
    /**
     * AGV创建任务
     * @param agvTaskIds
     * @return
     */
    AjaxResult sendTaskToAGV(Integer[] agvTaskIds,boolean flag);
    /**
     * 删除任务
     * @param agvTaskIds
     * @return
     */
    AjaxResult cancelAGVTask(Integer[] agvTaskIds);
    /**
     * 删除AGV任务
     * @param id
     * @param warehouseCode
     * @param area
     * @return
     */
    AjaxResult cancelTask(Integer id, String warehouseCode, String area);
    /**
     * 更新AGV任务状态
     * @param map
     * @return
     */
    AjaxResult notifyAGVTask(Map map);

    AgvTaskCS getAgvTaskByHeaderId(TaskHeader taskHeader, Integer taskType);

    AgvTaskCS saveAGVTaskByTask(TaskHeader taskHeader);

    AgvTaskCS saveAGVTaskByTaskReturn(TaskHeader taskHeader,AgvTaskCS agvTaskCS);

    AjaxResult setLKPort(TaskHeader taskHeader);

    TaskHeader setJLKPort(TaskHeader taskHeader);
    AjaxResult setAgvPort(TaskHeader taskHeader);

    AjaxResult excuteAgvContainer(String containerCode);
    AgvTaskCS saveAgvTaskBySimpleAgv(TaskHeader task,AgvTaskCS agvtask);
}