自动化立体仓库 - WMS系统
zyx
2024-07-04 13c2be4774f4afbb34fa70be97c96802f07b15ff
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;
@@ -519,6 +526,9 @@
    @ManagerAuth(memo = "站点回退")
    @Synchronized
    public R doBack(@RequestBody AgvMobileStartPakin param){
        if (Cools.isEmpty(param)){
            return R.error("参数为空");
        }
        agvMobileService.doBack(param, getUserId());
        return R.ok();
    }