Commit 07ccabd012424d08604d357903b3701b199bc6f9

Authored by 张志伟
2 parents 57b4ad7f 0b867fb9

Merge remote-tracking branch 'origin/test'

fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/cust/CustomerChangeBizService.java
... ... @@ -389,6 +389,7 @@ public class CustomerChangeBizService extends AbstractCustomerService {
389 389 if (Objects.isNull(userDTO)) {
390 390 return null;
391 391 }
  392 + AffiliationRecord entity = createEntity(customer, userDTO.getUserId(), customer.getShopId());
392 393 customer.setAdviserId(userDTO.getUserId());
393 394 customerService.updateById(customer);
394 395 DefeatReasonEnum reasonEnum = DefeatReasonEnum.OT;
... ... @@ -398,7 +399,6 @@ public class CustomerChangeBizService extends AbstractCustomerService {
398 399 if (FollowTypeEnum.RM.equals(task.getType())) {
399 400 reasonEnum = DefeatReasonEnum.RM;
400 401 }
401   - AffiliationRecord entity = createEntity(customer, userDTO.getUserId(), customer.getShopId());
402 402 entity.setReason(reasonEnum.getName());
403 403 affiliationRecordService.save(entity);
404 404 StammkundeDto stammkundeDto = new StammkundeDto();
... ...