This commit is contained in:
Jerry Yan 2020-12-06 22:39:53 +08:00
parent 93ff2aa9e5
commit ea9079d94b

View File

@ -41,7 +41,7 @@ class UserLevel extends Base
$goodsType = 3; $goodsType = 3;
$sm = Model('common/SysSummary'); $sm = Model('common/SysSummary');
$sysData= $sm->getInfo('toPaySlow'); $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; $helpSaleNum = 0;
if (!empty($helpSaleInfo)) { if (!empty($helpSaleInfo)) {
$helpSaleNum = $helpSaleInfo['helpSaleNum']; $helpSaleNum = $helpSaleInfo['helpSaleNum'];