From 60edff747d52eb42aadb036e3fbd580252de4c05 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期四, 28 八月 2025 08:15:54 +0800 Subject: [PATCH] 1 --- zy-acs-manager/src/main/java/com/zy/acs/manager/manager/service/TaskService.java | 31 ++++++++++++++++++++++++++++--- 1 files changed, 28 insertions(+), 3 deletions(-) diff --git a/zy-acs-manager/src/main/java/com/zy/acs/manager/manager/service/TaskService.java b/zy-acs-manager/src/main/java/com/zy/acs/manager/manager/service/TaskService.java index 9a93dd6..e82ab18 100644 --- a/zy-acs-manager/src/main/java/com/zy/acs/manager/manager/service/TaskService.java +++ b/zy-acs-manager/src/main/java/com/zy/acs/manager/manager/service/TaskService.java @@ -1,26 +1,51 @@ package com.zy.acs.manager.manager.service; import com.baomidou.mybatisplus.extension.service.IService; +import com.zy.acs.manager.common.domain.BaseParam; +import com.zy.acs.manager.common.domain.PageParam; +import com.zy.acs.manager.common.domain.PageResult; +import com.zy.acs.manager.core.domain.Lane; import com.zy.acs.manager.manager.entity.Task; import com.zy.acs.manager.manager.enums.TaskStsType; +import com.zy.acs.manager.system.entity.User; import java.util.List; import java.util.Map; public interface TaskService extends IService<Task> { - void buildActionList(Task task); + PageResult<Task> pageRel(PageParam<Task, BaseParam> pageParam); + + String generateSeqNum(); Task pick(TaskStsType taskStsType); Task selectByUuid(String uuid); + Task selectBySeqNum(String seqNum); + List<Task> selectBySts(TaskStsType taskStsType); List<Task> selectInSts(Long agvId, TaskStsType... taskStsTypes); - void operateTaskSts(Integer taskId, Boolean finish); - List<Map<String, Object>> selectStatByLastSevenDays(); + Boolean complete(Long taskId, Long userId); + + Boolean cancel(Long taskId, Long userId); + + Boolean cancelCheckTaskSts(Long taskId, Long userId); + + Lane checkoutOriginLane(Task task); + + Lane checkoutDestinationLane(Task task); + + List<Task> findRunningTasksByLaneHash(String laneHash); + + List<Task> findTransportTasksByAgv(Long agvId); + + Integer findTransportTasksCountByAgv(Long agvId); + + Task findLatestTask(Long agvId, TaskStsType taskSts); + } -- Gitblit v1.9.1