From 13c2be4774f4afbb34fa70be97c96802f07b15ff Mon Sep 17 00:00:00 2001 From: zyx <zyx123456> Date: 星期四, 04 七月 2024 15:35:02 +0800 Subject: [PATCH] #MES接口 --- src/main/java/com/zy/asrs/controller/AgvMobileController.java | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/asrs/controller/AgvMobileController.java b/src/main/java/com/zy/asrs/controller/AgvMobileController.java index 295a764..9f38872 100644 --- a/src/main/java/com/zy/asrs/controller/AgvMobileController.java +++ b/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鏉★紝闄愬埗鏉′欢锛歩o_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(); } -- Gitblit v1.9.1