Commit db177c41 authored by shiyu's avatar shiyu

计算卖家自己的介绍佣金

parent 98c34270
......@@ -335,6 +335,7 @@ public class SysFinanceServiceImpl implements SysFinanceService {
//查询平台历史收入
UserAccountDetailRequestDto queryDto = new UserAccountDetailRequestDto();
queryDto.setUserId(CommConsts.SYSTEM_ACCOUNT);
queryDto.setState(BillEnum.AccountDetailStateEnum.WAIT_ENTRY.getCode());
long totalWaitEntryAmount = userAccountDetailDao.summaryAmount(queryDto);
......
......@@ -80,7 +80,7 @@ public class UserBillServiceImpl implements UserBillService {
newBill.setTotalEntryAmount(0L);
newBill.setOrderWaitEntryAmount(sellerProfitAmount);
newBill.setOrderEntryAmount(0L);
if (distributionOrder.getShareRecordId().equals(distributionOrder.getSellerId())) {
if (distributionOrder.getShareRecordId().equals(distributionOrder.getSellerId().toString())) {
//表示介绍人是卖家自己
newBill.setIntroduceWaitEntryAmount(introduceCost);
} else {
......
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