Commit 6ff04b0d authored by shiyu's avatar shiyu

完成订单结款计算

parent 51476920
......@@ -76,9 +76,13 @@ public class SysUserBillServiceImpl implements SysUserBillService {
long newIntroduceEntryAmount = userBill.getIntroduceEntryAmount() + introduceCost;
updateBill.setIntroduceWaitEntryAmount(newIntroduceWaitEntryAmount);
updateBill.setIntroduceEntryAmount(newIntroduceEntryAmount);
updateBill.setTotalWaitEntryAmount(orderWaitEntryAmount + newIntroduceWaitEntryAmount);
updateBill.setTotalEntryAmount(updateBill.getOrderEntryAmount() + newIntroduceEntryAmount);
} else {
//如果介绍人不是卖家自己,那原来的待入账介绍佣金和已入账介绍佣金都不用变化
updateBill.setTotalWaitEntryAmount(updateBill.getOrderWaitEntryAmount() + userBill.getIntroduceWaitEntryAmount());
updateBill.setTotalEntryAmount(updateBill.getOrderEntryAmount() + userBill.getIntroduceEntryAmount());
}
updateBill.setTotalWaitEntryAmount(updateBill.getOrderWaitEntryAmount() + updateBill.getIntroduceWaitEntryAmount());
updateBill.setTotalEntryAmount(updateBill.getOrderEntryAmount() + updateBill.getIntroduceEntryAmount());
userBillDao.updateByPrimaryKey(updateBill);
return Result.success();
} catch (Exception e) {
......
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