浏览代码

资产明细

afa 8 月之前
父节点
当前提交
01bbbeb805
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/api/controller/Ledger.php

+ 1 - 1
application/api/controller/Ledger.php

@@ -86,7 +86,7 @@ class Ledger extends Api
                 break;
         }
         $res['data'] = $paginator->alias('a')
-        ->join('user u', 'a.id = u.from_id and a.action > 9 and a.action < 12', 'LEFT')
+        ->join('user u', 'a.from_id = u.id and a.action > 9 and a.action < 12', 'LEFT')
         ->field('a.*, u.address')
         ->where($where)
         ->order('a.id DESC')->paginate($this->pageSize);