Commit eefa0cc7 authored by hangjun83's avatar hangjun83

openapi

parent bba03531
......@@ -40,6 +40,12 @@ class BhProductsService
}
$chemicalsRow = current($chemicalsRow);
$dbConnect->table('products')
->where('c_id', $chemicalsRow->c_id)
->where('b_id', 10)
->update(['p_status' => 0, 'p_show' => 0, 'modifytime' => time()]);
foreach ($bideProducts as $product) {
if ($product['Weight'] > 0) {
$p_tod = '现货';
......@@ -99,11 +105,6 @@ class BhProductsService
}
}
$dbConnect->table('products')
->where('c_id', $chemicalsRow->c_id)
->where('b_id', 10)
->update(['p_status' => 0, 'p_show' => 0, 'modifytime' => time()]);
$dbConnect->commit();
app(SysLogService::class)->addApiLogs($id.' 更新成功,更新时间:'.date('Y-m-d H:i:s',time()));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment