xxx
This commit is contained in:
parent
c482d518e0
commit
4991aa6347
@ -41,11 +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('orders')->where(compact('userId','goodsType'))->where('payable', '>',0)->sum('payable');
|
$helpSaleNum = Db::name('orders')->where(compact('userId','goodsType'))->where('payable', '>',0)->sum('payable');
|
||||||
$helpSaleNum = 0;
|
|
||||||
if (!empty($helpSaleInfo)) {
|
|
||||||
$helpSaleNum = $helpSaleInfo['helpSaleNum'];
|
|
||||||
}
|
|
||||||
$zgTimes = Db::name('orders')->where(compact('userId','goodsType'))->count();
|
$zgTimes = Db::name('orders')->where(compact('userId','goodsType'))->count();
|
||||||
if ($zgTimes <= 0) $zgTimes = 1;
|
if ($zgTimes <= 0) $zgTimes = 1;
|
||||||
if ($helpSaleNum <= 0) $helpSaleNum = 1;
|
if ($helpSaleNum <= 0) $helpSaleNum = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user