Commit bf2563fb by 朱继来

调整获取用户信息

parent 1a9584a9
Showing with 1 additions and 1 deletions
...@@ -136,7 +136,7 @@ Class AddOrderController extends Controller ...@@ -136,7 +136,7 @@ Class AddOrderController extends Controller
$map['is_type'] = 0; // 过滤尽调数据 $map['is_type'] = 0; // 过滤尽调数据
$map[] = ['sale_id', '>', 0]; $map[] = ['sale_id', '>', 0];
$order = $OrderModel->where($map)->select('sale_id')->first(); $order = $OrderModel->where($map)->select('sale_id')->orderBy('order_id', 'desc')->first();
return $order ? $order['sale_id'] : 0; return $order ? $order['sale_id'] : 0;
} }
......
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