This commit is contained in:
Jerry Yan 2020-12-06 22:51:22 +08:00
parent 33b64c6955
commit c482d518e0

View File

@ -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'];