|
@@ -106,7 +106,7 @@ class Good extends Base
|
|
|
if (!empty($role[DataGroupModel::$type_全部])) $where[] = ['a.createrid', 'in', $role[DataGroupModel::$type_全部]];
|
|
|
|
|
|
$company_name = isset($this->post['company_name']) && $this->post['company_name'] !== "" ? trim($this->post['company_name']) : "";
|
|
|
- if ($company_name !== "") $where[] = ["a.createrid", 'in', get_company_item_user_by_name($company_name)];
|
|
|
+ if ($company_name !== "") $where[] = ["b.createrid", 'in', get_company_item_user_by_name($company_name)];
|
|
|
|
|
|
// if(!empty($role['platform']) ){
|
|
|
// $where[]=["b.platform_code","in",$role['platform']];
|
|
@@ -175,7 +175,7 @@ class Good extends Base
|
|
|
|
|
|
//是否具有编辑权限
|
|
|
$value['is_allow_update'] = 0;
|
|
|
- if (in_array($this->roleid, [1, 33]) || in_array($value['purchase_id'], $role[DataGroupModel::$type_可编辑])) $value['is_allow_update'] = 1;
|
|
|
+ if (in_array($this->roleid, [1, 33]) || in_array($value['createrid'], $role[DataGroupModel::$type_可编辑])) $value['is_allow_update'] = 1;
|
|
|
|
|
|
$data[]=$value;
|
|
|
}
|