|
@@ -84,13 +84,7 @@ class Purchin extends Base
|
|
|
"is_del"=>0,"supplierNo"=>$supplierNo])->column("wsm_code");
|
|
|
$where[]=['a.wsm_code',"in",$wsmcode];
|
|
|
}
|
|
|
-// $role=$this->checkRole();
|
|
|
$condition="";
|
|
|
-// if(!empty($role['write'])&& $this->uid!=''){
|
|
|
-//// $condition.=["apply_id","in",$role['write']];
|
|
|
-// $condition.="a.apply_id in (".implode(",",$role['write']).") or c.contactor = {$this->uid}";
|
|
|
-// }
|
|
|
-
|
|
|
$role = $this->checkDataShare();
|
|
|
if (!empty($role[DataGroupModel::$type_全部])) $condition.="sip.personid in (".implode(",",
|
|
|
$role[DataGroupModel::$type_全部]).") or a.apply_id={$this->uid} or c.contactor = {$this->uid}";
|