| New file |
| | |
| | | package com.vincent.rsf.server.manager.schedules; |
| | | |
| | | import com.vincent.rsf.server.manager.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; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | /** |
| | | * @author Munch D. Luffy |
| | | * @date 2026/01/15 |
| | | * 缓存区域任务自动触发 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class TaskCacheLocSchedules { |
| | | |
| | | public static Logger logger = LoggerFactory.getLogger(TaskCacheLocSchedules.class); |
| | | |
| | | @Autowired |
| | | private TaskService taskService; |
| | | |
| | | |
| | | /** |
| | | * @author Munch D. Luffy |
| | | * @date 2026/01/15 |
| | | * @description: 缓存区域自动生成移库任务 |
| | | * @version 1.0 |
| | | */ |
| | | @Scheduled(cron = "0/3 * * * * ?") |
| | | public void startCacheInLocStock() throws Exception { |
| | | |
| | | } |
| | | |
| | | /** |
| | | * @author Munch D. Luffy |
| | | * @date 2026/01/15 |
| | | * @description: 缓存区域自动生成空货架出库任务 |
| | | * @version 1.0 |
| | | */ |
| | | @Scheduled(cron = "0/5 * * * * ? ") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void complateOutStock() throws Exception { |
| | | } |
| | | } |