Excel:L50,58
This commit is contained in:
parent
841ce33eb8
commit
35ae88919c
@ -37,11 +37,11 @@ class UserVouchers extends Base{
|
||||
foreach ($giveList as &$g) {
|
||||
if($g['expectedProductNum'] > 0){
|
||||
$decNum = $g['expectedProductNum'] * $monthScale;
|
||||
$this->insertVouchersNotice($g['userId'],0,$decNum,0,$desc='预获产品券月耗损',0,1);
|
||||
$this->insertVouchersNotice($g['userId'],0,$decNum,0,$desc='预获产品券月损耗所扣',0,1);
|
||||
}
|
||||
if($g['expectedCouponsNum'] > 0){
|
||||
$decNum = $g['expectedCouponsNum'] * $monthScale;
|
||||
$this->insertVouchersNotice($g['userId'],0,0,$decNum,$desc='预获优惠券月耗损',0,1);
|
||||
$this->insertVouchersNotice($g['userId'],0,0,$decNum,$desc='预获优惠券月损耗所扣',0,1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -123,15 +123,15 @@ class UserVouchers extends Base{
|
||||
|
||||
$this->insertVouchersNotice($v['userId'],0,$personAlreadyProductNum,0,$desc='分润扣减',0,0);//预获产品券减
|
||||
//加入变动记录,最后一位//1产品券2优惠券3旺旺券4现金券
|
||||
$this->insertAlreadyVouchersNotice($v['userId'],0,$personAlreadyProductNum,0,'预获产品券转换所得',1,1);
|
||||
// Model('common/LogMoneys')->addMoneyLog(0,$v['userId'],0,2,'预获产品券转换所得',1,$personAlreadyProductNum,'dayPay',1);
|
||||
$this->insertAlreadyVouchersNotice($v['userId'],0,$personAlreadyProductNum,0,'预获产品券日转换所得',1,1);
|
||||
// Model('common/LogMoneys')->addMoneyLog(0,$v['userId'],0,2,'预获产品券日转换所得',1,$personAlreadyProductNum,'dayPay',1);
|
||||
$data['alreadyProductNum'] = $v['alreadyProductNum'] + $personAlreadyProductNum;//已获产品券加
|
||||
}
|
||||
if($personAlreadyCouponsNum >= 0.01){
|
||||
$this->insertVouchersNotice($v['userId'],0,0,$personAlreadyCouponsNum,$desc='分润扣减',0,0);//预获优惠券减
|
||||
//加入变动记录,最后一位//1产品券2优惠券3旺旺券4现金券
|
||||
$this->insertAlreadyVouchersNotice($v['userId'],0,0,$personAlreadyCouponsNum,'预获优惠券转换所得',1,1);
|
||||
// Model('common/LogMoneys')->addMoneyLog(0,$v['userId'],0,2,'预获优惠券转换所得',1,$personAlreadyCouponsNum,'dayPay',2);
|
||||
$this->insertAlreadyVouchersNotice($v['userId'],0,0,$personAlreadyCouponsNum,'预获优惠券日转换所得',1,1);
|
||||
// Model('common/LogMoneys')->addMoneyLog(0,$v['userId'],0,2,'预获优惠券日转换所得',1,$personAlreadyCouponsNum,'dayPay',2);
|
||||
$data['alreadyCouponsNum'] = $v['alreadyCouponsNum'] + $personAlreadyCouponsNum;//已获优惠券加
|
||||
}
|
||||
$data['isGive'] = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user