22222
This commit is contained in:
parent
93ff2aa9e5
commit
ea9079d94b
@ -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'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user