Commit 98c34270 authored by shiyu's avatar shiyu

计算介绍佣金4

parent 80ec3ed7
......@@ -131,7 +131,7 @@ public class SysUserBillServiceImpl implements SysUserBillService {
UserBill updateBill = new UserBill();
long newTotalWaitEntryAmount = userBill.getTotalWaitEntryAmount() - amount;
long newIntroduceWaitEntryAmount = userBill.getIntroduceWaitEntryAmount() - amount;
long newIntroduceEntryAmount = userBill.getIntroduceWaitEntryAmount() + amount;
long newIntroduceEntryAmount = userBill.getIntroduceEntryAmount() + amount;
long newTotalEntryAmount = userBill.getTotalEntryAmount() + amount;
updateBill.setId(userBill.getId());
updateBill.setTotalWaitEntryAmount(newTotalWaitEntryAmount);
......
......@@ -137,7 +137,7 @@ public class UserBillServiceImpl implements UserBillService {
newBill.setBillId(billId);
newBill.setAccountPeriod(accountPeriod);
newBill.setUserId(userId);
newBill.setTotalWaitEntryAmount(0L);
newBill.setTotalWaitEntryAmount(amount);
newBill.setTotalEntryAmount(0L);
newBill.setOrderWaitEntryAmount(0L);
newBill.setOrderEntryAmount(0L);
......
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