Excel:L57

This commit is contained in:
Jerry Yan 2020-12-04 13:35:38 +08:00
parent a984171a03
commit 9f5c823df3

View File

@ -151,11 +151,11 @@ class UserVouchers extends Base{
$count = (float)$_each["expectedProductNum"]; $count = (float)$_each["expectedProductNum"];
if($_each["helpSaleNum"] < 0)$count+=(float)$_each["helpSaleNum"]; if($_each["helpSaleNum"] < 0)$count+=(float)$_each["helpSaleNum"];
model('common/UserVouchers')->insertVouchersNotice($_each["userId"], 0, 0, $count*((float)dataConf("deductionRateWhennegPreCoupons")/100), model('common/UserVouchers')->insertVouchersNotice($_each["userId"], 0, 0, $count*((float)dataConf("deductionRateWhennegPreCoupons")/100),
"预获产品券为负,每天耗损预获优惠券", 0); "预获优惠券日损耗所扣", 0);
}else{ }else{
$count = (float)$_each["helpSaleNum"]; $count = (float)$_each["helpSaleNum"];
model('common/UserVouchers')->insertVouchersNotice($_each["userId"], 0, $count*((float)dataConf("deductionRateWhennegPreCoupons")/100), model('common/UserVouchers')->insertVouchersNotice($_each["userId"], 0, $count*((float)dataConf("deductionRateWhennegPreCoupons")/100),
0, "助购券为负,每天耗损预获产品券", 0); 0, "预获产品券日损耗所扣", 0);
} }
} }
Db::commit(); Db::commit();