|
@@ -511,7 +511,7 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
|
511
|
511
|
|
512
|
512
|
@Override
|
513
|
513
|
public ChannelCustomer getMoreInfoById(String id) {
|
514
|
|
- return channelCustomerMapper.getMoreInfoById(id);
|
|
514
|
+ return channelCustomerMapper.getMoreInfoById(id, null);
|
515
|
515
|
}
|
516
|
516
|
|
517
|
517
|
@Override
|
|
@@ -608,7 +608,7 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
|
608
|
608
|
customer.setTotalCommission(intIfNvl(params.getTotalCommission()));
|
609
|
609
|
|
610
|
610
|
Integer settledCommission = intIfNvl(bkAccountRecordMapper.getTotalChargesBy(customer.getChannelCustomerId(), bizType));
|
611
|
|
- settledCommission += intIfNvl(params.getSettledCommission()); // 最新的需要加上本次结算佣金
|
|
611
|
+ settledCommission += intIfNvl(params.getCurrentCommission()); // 最新的需要加上本次结算佣金
|
612
|
612
|
recommendPerson.setSettledCommission(intIfNvl(recommendPerson.getSettledCommission()) -
|
613
|
613
|
intIfNvl(customer.getSettledCommission()) +
|
614
|
614
|
settledCommission);
|
|
@@ -621,7 +621,7 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
|
621
|
621
|
// 生成佣金记录
|
622
|
622
|
BkAccountRecord bkAccountRecord = bkAccountRecordMapper.getRecordBy(customer.getChannelCustomerId(), bizType);
|
623
|
623
|
if (bkAccountRecord != null) {
|
624
|
|
- bkAccountRecord.setCharges(params.getSettledCommission());
|
|
624
|
+ bkAccountRecord.setCharges(params.getCurrentCommission());
|
625
|
625
|
bkAccountRecordMapper.updateById(bkAccountRecord);
|
626
|
626
|
} else {
|
627
|
627
|
bkAccountRecord = new BkAccountRecord();
|
|
@@ -630,7 +630,7 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
|
630
|
630
|
bkAccountRecord.setBuildingId(taBuilding.getBuildingId());
|
631
|
631
|
bkAccountRecord.setBuildingName(StringUtils.ifNull(taBuilding.getName(), taBuilding.getBuildingName()));
|
632
|
632
|
bkAccountRecord.setCustomerName(customer.getName());
|
633
|
|
- bkAccountRecord.setCharges(intIfNvl(params.getSettledCommission()));
|
|
633
|
+ bkAccountRecord.setCharges(intIfNvl(params.getCurrentCommission()));
|
634
|
634
|
bkAccountRecord.setChargeType(1);
|
635
|
635
|
bkAccountRecord.setChargeCode(bizType);
|
636
|
636
|
bkAccountRecord.setStatus(CommConstant.STATUS_NORMAL);
|