| | |
| | | import com.zy.asrs.wms.asrs.entity.enums.TaskStsType;
|
| | | import com.zy.asrs.wms.asrs.service.*;
|
| | | import lombok.extern.slf4j.Slf4j;
|
| | | import org.slf4j.Logger;
|
| | | import org.slf4j.LoggerFactory;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.scheduling.annotation.Scheduled;
|
| | | import org.springframework.stereotype.Component;
|
| | |
| | | @Slf4j
|
| | | @Component
|
| | | public class TaskTimer {
|
| | | public static Logger logger = LoggerFactory.getLogger(TaskTimer.class);
|
| | |
|
| | | @Autowired
|
| | | private TaskService taskService;
|
| | |
| | | throw new CoolException("库位不存在");
|
| | | }
|
| | | if (loc.getLocStsId() != LocStsType.R.val()) {
|
| | | logger.error("库位:" + loc.getLocNo() + ",状态不处于R.出库预约");
|
| | | throw new CoolException("库位状态不处于R.出库预约");
|
| | | }
|
| | | List<TaskDetl> taskDetls = taskDetlService.getTaskDetlByTaskId(task.getId());
|