From 302e59bbcf29d1ff2e5ec98126ca0fa87ab9698e Mon Sep 17 00:00:00 2001 From: james Date: Mon, 28 Jul 2025 13:54:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20mes=5Fin=5Fsct/app/action/?= =?UTF-8?q?CheckBomInfo.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mes_in_sct/app/action/CheckBomInfo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mes_in_sct/app/action/CheckBomInfo.php b/mes_in_sct/app/action/CheckBomInfo.php index c732203..7b1b28b 100644 --- a/mes_in_sct/app/action/CheckBomInfo.php +++ b/mes_in_sct/app/action/CheckBomInfo.php @@ -76,7 +76,7 @@ class CheckBomInfo $sql = "SELECT * FROM hf_mes_bkv_batch_process_log WHERE workingsubclass='".$workingsubclass."' AND item_device_code='".$device_code."' AND status=0 "; $ret = Db::fetchAll($sql); if(empty($ret)){ - throw new Exception('批次'.$batch.'下的工序单元'.$workingsubclass.',bom关系不存在in结构物料编码',4002); + throw new Exception('批次'.$batch.'下的工序单元'.$workingsubclass.',bom关系不存在in结构物料编码',4003); } $item_code = array_column($ret,"item_code"); @@ -95,7 +95,7 @@ class CheckBomInfo $diff_item_code = array_diff($bom_relationship_item_code,$item_code); if(count($diff_item_code)>0){ - throw new Exception("缺少item_code为[".implode(',',$diff_item_code)."]的物料",4002); + throw new Exception("缺少item_code为[".implode(',',$diff_item_code)."]的物料",4004); } return '';