更新 mes_in_sct/app/action/CheckBomInfo.php

This commit is contained in:
james 2025-06-15 11:50:58 +08:00
parent 082a69eafe
commit c55e38a033

View File

@ -31,7 +31,7 @@ class CheckBomInfo
} }
$sql = "SELECT id FROM hf_mes_device WHERE code='".$device_code."'"; $sql = "SELECT id FROM hf_mes_device WHERE code='".$device_code."'";
$ret = Db::fetch($sql); $ret = Db::fetch($sql2);
if(empty($ret)){ if(empty($ret)){
throw new Exception("设备编码[$device_code]不存在",4001); throw new Exception("设备编码[$device_code]不存在",4001);
} }