diff --git a/hyhproject/app/controller/UserLevel.php b/hyhproject/app/controller/UserLevel.php index 1d56253..51d5918 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('orders')->where(compact('userId','goodsType'))->sum('goodsMoney'); + $helpSaleInfo = Db::name('orders')->where(compact('userId','goodsType'))->where('payable', '>',0)->sum('payable'); $helpSaleNum = 0; if (!empty($helpSaleInfo)) { $helpSaleNum = $helpSaleInfo['helpSaleNum'];