Merge branch 'sprint/168_sgm_fixbug' into 'sprint/168'

* Fix bug #16703.

See merge request easycorp/zentaopms!605
This commit is contained in:
李玉春
2021-11-24 05:03:12 +00:00
+1 -4
View File
@@ -2090,10 +2090,7 @@ class userModel extends model
}
$stmt = $this->dao->select("account,products")->from(TABLE_USERVIEW)->where('account')->in($users);
if($whiteList)
{
foreach($products as $productID => $product) $stmt->orWhere("CONCAT(',', products, ',')")->like("%,{$productID},%");
}
foreach($products as $productID => $product) $stmt->orWhere("CONCAT(',', products, ',')")->like("%,{$productID},%");
$userViews = $stmt->fetchPairs('account', 'products');
/* Process user view. */