我有一个具有两个依赖项的应用程序,starter-jdbc和stater-web。这既可以在本地运行,也可以在PCF中很好地部署。如果我添加了启动器-执行器依赖项,则会在PCF中收到以下错误,但在本地没有。知道发生了什么吗?预先感谢
$where = '';
if (!empty($this->allowedWarhouses)) {
$where = ' AND RefStruct IN (' . implode(', ', $this->allowedWarhouses) . ')';
}
$resource = $this->pohodaDatabase->query(
"SELECT S.IDS, S.RefStruct, ISNULL(S.StavZ - S.ObjedP, 0) AS quantity
FROM SKz S
WHERE S.IDS IN ('092COž01', '00XXž004', '041SE010-0240')" . $where
);
$productStocksDataWrapper = array();
var_dump($this->pohodaDatabase->rows($resource)); // int(0)
var_dump($this->pohodaDatabase->getLastQuery()); //SELECT S.IDS,S.RefStruct,ISNULL(S.StavZ - S.ObjedP, 0) AS quantity FROM SKz S WHERE S.IDS IN ('092COž01', '00XXž004', '041SE010-0240') //
while ($row = $this->pohodaDatabase->fetch_assoc($resource)) {
var_dump($row); // only 041SE010-0240
$productStocksData = new PohodaProductStocksData();
$productStocksData
->setCatnum($row['IDS'])
->setPohodaWarhouseExtId($row['RefStruct'])
->setQuantity($row['quantity']);
$productStocksDataWrapper[] = $productStocksData;
}
var_dump($productStocksDataWrapper); // just 041SE010-0240
die();