Commit 43139220 authored by Administrator's avatar Administrator

Merge branch 'fix-hotbugs' into 'master'

修改类名为 PaybackController

See merge request !188
parents b06977e9 81554bc8
...@@ -72,9 +72,9 @@ public class PromotionTask { ...@@ -72,9 +72,9 @@ public class PromotionTask {
promotion.setTotalCommission((int) (promotion.getTotalCommission() + totalCommission)); promotion.setTotalCommission((int) (promotion.getTotalCommission() + totalCommission));
promotion.setCommissionLastMonth((int) totalCommission); promotion.setCommissionLastMonth((int) totalCommission);
promotion.setGift(totalCommission * 0.08); promotion.setGift(totalCommission * 0.08);
if (account.getPromotion().isSale()) { /*if (account.getPromotion().isSale()) {
promotion.setGift(totalCommission * 0.1 + secondCommission * 0.02); promotion.setGift(totalCommission * 0.1 + secondCommission * 0.02);
} }*/
if (account.getPromotion().isDistributor()) { if (account.getPromotion().isDistributor()) {
promotion.setGift(totalCommission * globalFieldRepository.findAll().get(0).getDistributorRate().doubleValue()); promotion.setGift(totalCommission * globalFieldRepository.findAll().get(0).getDistributorRate().doubleValue());
...@@ -125,9 +125,9 @@ public class PromotionTask { ...@@ -125,9 +125,9 @@ public class PromotionTask {
// 4. 不同角色的人给不同的提成 // 4. 不同角色的人给不同的提成
promotion.setGift(totalCommission * 0.08); promotion.setGift(totalCommission * 0.08);
if (account.getPromotion().isSale()) { /*if (account.getPromotion().isSale()) {
promotion.setGift(totalCommission * 0.1 + secondCommission * 0.02); promotion.setGift(totalCommission * 0.1 + secondCommission * 0.02);
} }*/
if (account.getPromotion().isDistributor()) { if (account.getPromotion().isDistributor()) {
promotion.setGift(totalCommission * globalFieldRepository.findAll().get(0).getDistributorRate().doubleValue()); promotion.setGift(totalCommission * globalFieldRepository.findAll().get(0).getDistributorRate().doubleValue());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment