From 801d18d505ed7b979c2cac3872daa6b78724c504 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期二, 26 三月 2024 14:57:35 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/AgvBasDevpServiceImpl.java |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/AgvBasDevpServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/AgvBasDevpServiceImpl.java
index 38cc451..28ed908 100644
--- a/src/main/java/com/zy/asrs/service/impl/AgvBasDevpServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/AgvBasDevpServiceImpl.java
@@ -167,7 +167,11 @@
                             }
                             if(agvWrkMast.getIoType() == 53){
                                 AgvLocDetl agvLocDetl = agvLocDetlService.selectByMatnrAndBatchAndCsocodeAndisoCode(agvWrkMast.getLocNo(), agvWrkDetl.getMatnr(), agvWrkDetl.getBatch(), agvWrkDetl.getThreeCode(), agvWrkDetl.getDeadTime());
-                                agvWrkDetl.setVolume(agvLocDetl.getAnfme());
+                                if(Cools.isEmpty(agvLocDetl)){
+                                    agvWrkDetl.setVolume(0.0);
+                                }else {
+                                    agvWrkDetl.setVolume(agvLocDetl.getAnfme());
+                                }
                             }
                         }
 
@@ -268,4 +272,9 @@
         return this.baseMapper.selectAllStationCode();
     }
 
+    @Override
+    public AgvBasDevp selectByDevNo(String devNo) {
+        return this.selectOne(new EntityWrapper<AgvBasDevp>().eq("dev_no",devNo));
+    }
+
 }

--
Gitblit v1.9.1