|
|
@@ -111,7 +111,7 @@ class OrderClass extends BaseClass
|
|
|
|
|
|
//门店总订单数+1
|
|
|
$shopId = $currentShop['id'] ?? 0;
|
|
|
- $shop = Shop::findBySql('select * from xhShop where id = :id for update', ['id' => $shopId])->one();
|
|
|
+ $shop = Shop::findBySql('select * from ' . Shop::tableName() . ' where id = :id for update', ['id' => $shopId])->one();
|
|
|
if (empty($shop)) {
|
|
|
util::fail('没有找到门店');
|
|
|
}
|