diff --git a/hyhproject/app/controller/UserLevel.php b/hyhproject/app/controller/UserLevel.php index b59dcc1..e5f04a7 100755 --- a/hyhproject/app/controller/UserLevel.php +++ b/hyhproject/app/controller/UserLevel.php @@ -41,7 +41,7 @@ class UserLevel extends Base $goodsType = 3; $sm = Model('common/SysSummary'); $sysData= $sm->getInfo('toPaySlow'); - $helpSaleInfo = Db::name('user_vouchers_summary')->where(['userId'=>$userId])->find(); + $helpSaleInfo = Db::name('orders')->where(compact('userId','goodsType'))->sum('goodsMoney'); $helpSaleNum = 0; if (!empty($helpSaleInfo)) { $helpSaleNum = $helpSaleInfo['helpSaleNum'];