Compare commits

...

2 Commits

Author SHA1 Message Date
f03d63b7d1 更新 mes_in_sct/app/action/GetBatteryInfo.php
Some checks failed
Run Unit Tests / test (pull_request) Failing after 9s
2025-06-15 15:01:23 +08:00
a856480ca0 更新 mes_in_sct/app/action/CheckBomInfo.php 2025-06-15 15:00:53 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class CheckBomInfo
//2.判断工序单元、设备编码是存在? //2.判断工序单元、设备编码是存在?
$sql = "SELECT id FROM hf_mes_process_workingsubclass WHERE code='".$workingsubclass."'"; $sql = "SELECT id FROM hf_mes_process_workingsubclass WHERE code='".$workingsubclass."'";
$ret = Db::fetch($sql); $ret = Db::fetch($sql2);
if(empty($ret)){ if(empty($ret)){
throw new Exception("工序单元[$workingsubclass]不存在",4001); throw new Exception("工序单元[$workingsubclass]不存在",4001);
} }

View File

@ -34,7 +34,7 @@ class GetBatteryInfo
WHERE battery_id='%s' ORDER BY id DESC LIMIT 1;", WHERE battery_id='%s' ORDER BY id DESC LIMIT 1;",
$battery_id $battery_id
); );
$ret = Db::fetch($sql); $ret = Db::fetch($sql2);
list($tray, $lot, $batch, $subbatch) = [ list($tray, $lot, $batch, $subbatch) = [
$ret['tray'], $ret['tray'],