|
@@ -47,7 +47,7 @@ class ImportOrderFromCHandleData extends Command
|
|
|
|
|
|
$c_data = $order_import_from_c_db
|
|
|
->where(['is_del' => OIFCModel::$is_del_normal, 'status' => OIFCModel::$status_wait_relation, 'id' => $c_data_id])
|
|
|
- ->lock(true)
|
|
|
+// ->lock(true)
|
|
|
->field('id,createrid,creater')
|
|
|
->find();
|
|
|
|
|
@@ -366,7 +366,7 @@ class ImportOrderFromCHandleData extends Command
|
|
|
$order = Db::name("order_num")
|
|
|
->where(["orderCode" => $orderCode, "status" => 1])
|
|
|
->where([["wsend_num", ">=", 0]])
|
|
|
- ->lock(true)
|
|
|
+// ->lock(true)
|
|
|
->find();
|
|
|
if ($order == false) throw new Exception('未找到可以发货得采购单数据');
|
|
|
$order['wsend_num'] -= $num;
|
|
@@ -656,7 +656,7 @@ class ImportOrderFromCHandleData extends Command
|
|
|
["balance_num", ">=", $outinfo['good_num']],
|
|
|
['companyNo', "=", $outinfo['companyNo']]
|
|
|
])
|
|
|
- ->lock(true)
|
|
|
+// ->lock(true)
|
|
|
->find();
|
|
|
|
|
|
if ($cgd == false) return false;
|