* [refac] Append field to data.

This commit is contained in:
朱金勇
2024-11-20 15:42:49 +08:00
parent 0637346f85
commit 56174d03da
2 changed files with 72 additions and 7 deletions
+1 -1
View File
@@ -877,7 +877,7 @@ class bugModel extends model
->page($pager)
->fetchAll();
$this->mao->use($bugs, 'product')->append(TABLE_PRODUCT, 'name AS productName, shadow');
$this->mao->select('name AS productName, shadow')->from(TABLE_PRODUCT)->into($bugs, 'product');
return $bugs;
}