自动化立体仓库 - WMS系统
zhangc
2025-03-02 b13b6baf03a0860d0aa7fe7536bf2313588bf8ae
src/main/java/com/zy/asrs/task/handler/AgvWrkMastHandler.java
@@ -15,6 +15,7 @@
import com.zy.asrs.service.*;
import com.zy.asrs.task.AbstractHandler;
import com.zy.asrs.task.core.ReturnT;
import com.zy.common.service.AgvCommonService;
import lombok.Synchronized;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
@@ -114,6 +115,9 @@
    @Autowired
    private ReportDataService reportDataService;
    @Autowired
    private AgvCommonService agvCommonService;
    @Transactional
@@ -421,10 +425,27 @@
                    wrkMast.setIoTime(now);
                    //优先级
                    wrkMast.setIoPri(300.0);
                    //源站点
                    wrkMast.setSourceLocNo(agvWrkMast.getLocNo());
                    //目标站点
                    if (agvWrkMast.getLocNo().startsWith("QO") && agvWrkMast.getLocNo().endsWith("F4") && Integer.valueOf(agvWrkMast.getBarcode().substring(0, 2)) == 30) {
                        if (!agvWrkMast.getSourceLocNo().endsWith("02F1")) {
                            AgvLocMast locByFloor = agvCommonService.getLocByFloor(3, 1);
                            if (locByFloor != null) {
                                wrkMast.setLocNo(locByFloor.getLocNo());
                            } else {
                    wrkMast.setLocNo(agvWrkMast.getSourceLocNo());
                            }
                        } else {
                            wrkMast.setLocNo(agvWrkMast.getSourceLocNo());
                        }
                    } else {
                        wrkMast.setLocNo(agvWrkMast.getSourceLocNo());
                    }
                    //货架编码
                    wrkMast.setBarcode(agvWrkMast.getBarcode());
                    //货架类型