|
@@ -3302,7 +3302,7 @@ class Sale extends Base
|
|
|
if (!empty($role['write']) && $this->uid != "") {
|
|
|
// $where[]=["a.apply_id","in",$role['write']];
|
|
|
$cgdArr =\think\facade\Config::get("app");
|
|
|
- $cgdids =implode(",",$cgdArr);
|
|
|
+ $cgdids =implode(",",$cgdArr['wsm_cgder_role']);
|
|
|
$condition .= " (b.is_stock=1 and {$this->roleid} in ($cgdids)) or (b.is_stock=0 and wpo.cgder_id = {$this->uid}) or a.apply_id in (" . implode(',',
|
|
|
$role['write']) . ")";
|
|
|
}
|