* Fix incompatibility problem with the dm.

This commit is contained in:
tanghucheng
2023-06-02 00:49:22 +00:00
parent 596da72282
commit af471fce9f
3 changed files with 32 additions and 8 deletions
+4 -4
View File
@@ -477,10 +477,10 @@ class apiModel extends model
*/
public function getStructByQuery($libID, $pager = '', $orderBy = '')
{
return $this->dao->select('s.*,user.realname as addedName')->from(TABLE_APISTRUCT)->alias('s')
->leftJoin(TABLE_USER)->alias('user')->on('user.account = s.addedBy')
->where('s.deleted')->eq(0)
->andWhere('s.lib')->eq($libID)
return $this->dao->select('t1.*,t2.realname as addedName')->from(TABLE_APISTRUCT)->alias('t1')
->leftJoin(TABLE_USER)->alias('t2')->on('t2.account = t1.addedBy')
->where('t1.deleted')->eq(0)
->andWhere('t1.lib')->eq($libID)
->orderBy($orderBy)
->page($pager)
->fetchAll();