Commit 6af1596c by mushishixian

fix

parent f3019cfb
......@@ -57,7 +57,11 @@ class SupplierContactApiController extends Controller
$query->whereRaw(DB::raw("(admin_id in $inUserIdSql)"));
}
}else{
if ($codeId) {
$query->whereRaw("(can_check_uids = $codeId or admin_id = $adminId)");
}else{
$query->whereRaw("(admin_id = $adminId)");
}
}
$list = $query->paginate($limit)->toArray();
$transformer = new SupplierContactTransformer();
......
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