自动化立体仓库 - WMS系统
zhangc
2024-12-11 b67e67a182969b4dbfcd7eff423dca8c27f08683
src/main/java/com/zy/asrs/task/AgvWrkMastScheduler.java
@@ -4,6 +4,7 @@
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.core.common.Cools;
import com.core.common.DateUtils;
import com.zy.asrs.entity.AgvBasDevp;
import com.zy.asrs.entity.AgvWrkMast;
import com.zy.asrs.service.AgvBasDevpService;
@@ -18,6 +19,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
@@ -44,7 +46,7 @@
    定时处理AGV工作档中工作状态为205.工作完成 且 (1.入库 || 53,拣料入库 || 57.盘点入库 || 10.空板入库 || 11.单层移库 || 12.跨层移库 || 108.自动调拨 || 109.手动调拨)的数据
     */
    //@Scheduled(cron = "0/1 * * * * ? ")
    @Scheduled(fixedDelay = 2000)
    @Scheduled(fixedDelay = 1000)
    public void excutePutwayWrk(){
        List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>()
                .eq("wrk_sts", 205)
@@ -78,7 +80,7 @@
    定时处理AGV工作档中工作状态为206.出库完成 且 (101.出库 || 110.空板出库)
     */
    //@Scheduled(cron = "0/1 * * * * ? ")
    @Scheduled(fixedDelay = 2000)
    @Scheduled(fixedDelay = 1000)
    public void excuteCarryWrk(){
        List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>()
                .eq("wrk_sts", 206)
@@ -101,7 +103,7 @@
    定时处理AGV工作档中工作状态为206.出库完成 且 (101.出库 || 110.空板出库)
     */
    //@Scheduled(cron = "0/1 * * * * ? ")
    @Scheduled(fixedDelay = 2000)
    @Scheduled(fixedDelay = 1000)
    public void excuteCarryWrk2(){
        List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>()
                .eq("wrk_sts", 208)
@@ -124,8 +126,8 @@
    定时处理AGV工作档中工作状态为201.生成入库任务ID 且(出库类型为 53.拣料再入库 || 1.入库 || 10.空板入库栽 || 57.盘点再入库)的数据
     */
    //@Scheduled(cron = "0/1 * * * * ? ")
    @Scheduled(fixedDelay = 2000)
    public void startPutwayWrk(){
    @Scheduled(fixedDelay = 3000)
    public synchronized void startPutwayWrk(){
        List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectPage(new Page<>(1, 50)
                ,new EntityWrapper<AgvWrkMast>()
                .eq("wrk_sts", 201)
@@ -159,7 +161,7 @@
    定时处理AGV工作档中工作状态为201.生成入库任务ID 且(出库类型为 53.拣料再入库 || 1.入库 || 10.空板入库栽 || 57.盘点再入库)的数据
     */
    //@Scheduled(cron = "0/1 * * * * ? ")
    @Scheduled(fixedDelay = 2000)
    @Scheduled(fixedDelay = 1000)
    public void startAllcationIn(){
        List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectPage(new Page<>(1, 50)
                ,new EntityWrapper<AgvWrkMast>()
@@ -250,7 +252,7 @@
    自动生成空板出库任务
     */
    //@Scheduled(cron = "0/1 * * * * ? ")
    @Scheduled(fixedDelay = 2000)
    @Scheduled(fixedDelay = 1000)
    public void autoEmptyOut(){
        boolean packageEmptyAutoOUt = Cools.eq("Y",Parameter.get().getPackageEmptyAutoOUt());
        boolean mateEmptyAutoOut = Cools.eq("Y",Parameter.get().getMateEmptyAutoOut());