* Filter shadow product in usage report.

This commit is contained in:
zhouxin
2023-10-09 15:43:49 +08:00
parent 8d8f2e8f29
commit 2c9bd1c929
+4 -1
View File
@@ -1804,7 +1804,10 @@ class screenModel extends model
*/
public function getActiveProductCard($year, $month)
{
$noDeletedProductList = $this->dao->select('id')->from(TABLE_PRODUCT)->where('deleted')->eq('0')->fetchPairs();
$noDeletedProductList = $this->dao->select('id')->from(TABLE_PRODUCT)
->where('deleted')->eq('0')
->andWhere('shadow')->eq(0)
->fetchPairs();
$activeProductList = $this->dao->select('distinct product')->from(TABLE_ACTION)
->where('product')->ne(',0,')