|
@@ -3537,18 +3537,18 @@ class Sale extends Base
|
|
|
//只有level2的账号过滤数据权限
|
|
|
if ($this->level == 2) {
|
|
|
|
|
|
- //如果是供应商负责人,根据供应商筛选
|
|
|
- $person_supplier = Db::connect('mysql_sys')
|
|
|
- ->name('supplier')
|
|
|
- ->where(['is_del' => 0, 'personid' =>$this->uid])
|
|
|
- ->column('code');
|
|
|
-
|
|
|
- if(!empty($person_supplier)) $condition = "b.supNo in ('" . implode('\',\'', $person_supplier) . "')";
|
|
|
- else{
|
|
|
+// //如果是供应商负责人,根据供应商筛选
|
|
|
+// $person_supplier = Db::connect('mysql_sys')
|
|
|
+// ->name('supplier')
|
|
|
+// ->where(['is_del' => 0, 'personid' =>$this->uid])
|
|
|
+// ->column('code');
|
|
|
+//
|
|
|
+// if(!empty($person_supplier)) $condition = "b.supNo in ('" . implode('\',\'', $person_supplier) . "')";
|
|
|
+// else{
|
|
|
//不是供应商负责人,根据数据权限筛选申请人
|
|
|
$role = $this->checkDataShare();
|
|
|
if (!empty($role[DataGroupModel::$type_全部])) $condition = " a.apply_id in (" . implode(',', $role[DataGroupModel::$type_全部]) . ")";
|
|
|
- }
|
|
|
+// }
|
|
|
|
|
|
|
|
|
// $hand = resign_hand_user($this->uid, 0);
|