|
|
@@ -3079,11 +3079,11 @@ class WorkOrderSpotCheck extends Api{
|
|
|
}
|
|
|
|
|
|
if (!empty($insertInventory)) {
|
|
|
- $sql = \db('物料_库存')->fetchSql(true)->insert($insertInventory);
|
|
|
+ $sql = \db('物料_库存')->fetchSql(true)->insertAll($insertInventory);
|
|
|
\db()->query($sql);
|
|
|
}
|
|
|
|
|
|
- $sql = \db('库存_出入库明细')->fetchSql(true)->insert($insertLogs);
|
|
|
+ $sql = \db('库存_出入库明细')->fetchSql(true)->insertAll($insertLogs);
|
|
|
\db()->query($sql);
|
|
|
|
|
|
\db()->commit();
|