*[misc] modify dataset getBug.

This commit is contained in:
songchenxuan
2024-10-30 09:00:54 +08:00
committed by 綦新志
parent f28e782d48
commit ddf2f9954d
+2
View File
@@ -248,8 +248,10 @@ class dataset
$stmt = $this->dao->select("$fieldList, $longlife as longlife")
->from(TABLE_BUG)->alias('t1')
->leftJoin(TABLE_PRODUCT)->alias('t2')->on('t1.product=t2.id')
->leftJoin(TABLE_PROJECT)->alias('t3')->on('t1.project=t3.id')
->where('t1.deleted')->eq(0)
->andWhere('t2.deleted')->eq(0)
->andWhere('t3.deleted')->eq(0)
->andWhere('t2.shadow')->eq(0);
return $this->defaultWhere($stmt, 't2');