Commit b151ce60 by 朱继来

调整多角色下搜索客服

parent a869b895
Showing with 2 additions and 0 deletions
...@@ -433,6 +433,8 @@ Class OrderController extends Controller ...@@ -433,6 +433,8 @@ Class OrderController extends Controller
$info['role'] = $res['role_id']; $info['role'] = $res['role_id'];
$res['sale_id'] && $map['sale_id'] = $res['sale_id']; $res['sale_id'] && $map['sale_id'] = $res['sale_id'];
} }
$map['order_send'] && $map['sale_id'] = $map['order_send']; // 若存在查询指定客服
} else { } else {
if (in_array($info['role'], Config('perm_args.kefu_order'))) { // 交易员、联营客服(线销一组、二组、三组客服)、自营客服、自营内部采购 if (in_array($info['role'], Config('perm_args.kefu_order'))) { // 交易员、联营客服(线销一组、二组、三组客服)、自营客服、自营内部采购
$map['sale_id'] = $request->user->userId; // 筛选自己的订单 $map['sale_id'] = $request->user->userId; // 筛选自己的订单
......
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