|
|
@@ -3075,12 +3075,12 @@ class WorkOrderSpotCheck extends Api{
|
|
|
|
|
|
// 批量新增
|
|
|
if (!empty($insertInventory)) {
|
|
|
- Db::name('物料_库存')->insertAll($insertInventory);
|
|
|
+ Db::name('物料_库存')->fetchSql(true)->insert($insertInventory);
|
|
|
}
|
|
|
|
|
|
// 批量日志
|
|
|
if (!empty($insertLogs)) {
|
|
|
- Db::name('库存_出入库明细')->insertAll($insertLogs);
|
|
|
+ Db::name('库存_出入库明细')->fetchSql(true)->insert($insertLogs);
|
|
|
}
|
|
|
|
|
|
Db::commit();
|