Commit bb483983 by 朱继来

调整

parent b059eabd
Showing with 5 additions and 3 deletions
......@@ -720,11 +720,13 @@ Class AddOrderController extends Controller
$ids = explode(',', $report_ids);
foreach ($ids as $v) {
$quote_id = DB::connection('frq')->table('inquiry_items_report')->where('id', $v)->value('quote_id');
$res = DB::connection('frq')->table('inquiry_items_report')->where('id', $v)->select('quote_id', 'inquiry_items_id')->first();
if (!$quote_id) continue;
if ($res->quote_id) {
DB::connection('frq')->table('quote')->where('id', $res->quote_id)->update(['status'=>4, 'update_time'=>time()]);
}
DB::connection('frq')->table('quote')->where('id', $quote_id)->update(['status'=>4, 'update_time'=>time()]);
DB::connection('frq')->table('inquiry_items')->where('id', $res->inquiry_items_id)->update(['status'=>10, 'update_time'=>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 sign in to comment