自动化立体仓库 - WMS系统
lsh
2024-06-02 9e0565c5e880587b0144278206a966e4ba3f370e
#111任务堵塞
1个文件已修改
9 ■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/AgvMobileController.java 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/AgvMobileController.java
@@ -12,6 +12,8 @@
import com.zy.common.web.BaseController;
import io.swagger.models.auth.In;
import lombok.Synchronized;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
@@ -28,7 +30,7 @@
public class AgvMobileController extends BaseController  {
    private static final Logger log = LoggerFactory.getLogger(AgvMobileController.class);
    @Autowired
    private AgvMobileService agvMobileService;
    @Autowired
@@ -423,6 +425,11 @@
        if (mT.equals("unAuto")) {
            moveType = "2";
            ioType = 111;
            int count = agvWrkMastService.selectCount(new EntityWrapper<AgvWrkMast>().eq("io_type", ioType));
            if (count>3){
                log.equals("111任务堵塞,稍后再试!!!当前限制数量3条,限制条件:io_type = 111");
                throw new CoolException("111任务堵塞,稍后再试!");
            }
        } else {
            moveType = "1";
            ioType = 108;